欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136
標題:
STM32_BMP280資料+源代碼
[打印本頁]
作者:
569099575
時間:
2019-4-12 15:33
標題:
STM32_BMP280資料+源代碼
STM32_BMP280
0.png
(6.92 KB, 下載次數: 90)
下載附件
2019-4-13 02:36 上傳
單片機源程序如下:
#include "sys.h"
#include "delay.h"
#include "usart.h"
#include "led.h"
#include "myiic.h"
#include "bme280.h"
int main(void)
{
float bmp280_temp;
float bmp280_press;
float bmp280_humi;
float high;
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2); //設置中斷優先級分組2
uart_init(9600); //初始化USART
LED_Init(); //初始化LED
IIC_Init();
delay_init();
bme280Init();
while(1)
{
bme280GetData(&bmp280_press,&bmp280_temp,&bmp280_humi,&high);
delay_ms(1500);
LED0=!LED0;
printf("bmp280_press:%f\r\n",bmp280_press);
delay_ms(100);
printf("bmp280_temp :%f\r\n",bmp280_temp);
delay_ms(100);
printf("bmp280_humidity :%f\r\n",bmp280_humi);
delay_ms(100);
printf("bmp280_high :%f\r\n\r\n",high);
}
}
復制代碼
所有資料51hei提供下載:
BME280_STM32.zip
(2.88 MB, 下載次數: 488)
2019-4-12 15:32 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
歡迎光臨 (http://www.raoushi.com/bbs/)
Powered by Discuz! X3.1