lpc824lite 采集温湿度压强数据显示至oled12864,通w5500与用户进行TCP交互
Dependencies: mbed WIZnet_Library AM2320 BME280
Diff: main.cpp
- Revision:
- 2:82785740745d
- Parent:
- 1:cc2094da451b
diff -r cc2094da451b -r 82785740745d main.cpp --- a/main.cpp Mon May 29 00:35:16 2017 +0000 +++ b/main.cpp Sun Feb 11 00:52:50 2018 +0000 @@ -72,7 +72,7 @@ } #include "BME280.h" -BME280 sensor(I2C_SDA, I2C_SCL); +BME280 sensor(PB_9, PB_8); void bme280_dat() { snprintf(buffer3,sizeof(buffer3), "%2.2fC %6.0fPa",sensor.getTemperature(), sensor.getPressure()*100);