Nuvoton
/
NuMaker-mbed-Sensor-BME680-example
NuMaker Env. Sensor BME680 example
Revision 1:cd153d864ea3, committed 2020-06-16
- Comitter:
- cyliang
- Date:
- Tue Jun 16 06:15:33 2020 +0000
- Parent:
- 0:a0e92a018ff2
- Child:
- 2:a6f7e53da71c
- Commit message:
- Change I2C object name to be compatible with BME680 lib
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r a0e92a018ff2 -r cd153d864ea3 main.cpp --- a/main.cpp Tue Jun 09 02:35:34 2020 +0000 +++ b/main.cpp Tue Jun 16 06:15:33 2020 +0000 @@ -2,9 +2,9 @@ #include "mbed_bme680.h" #if TARGET_NUMAKER_IOT_M263A -I2C sensor_i2c(PD_4, PD_5); +I2C i2c(PD_4, PD_5); #else -I2C sensor_i2c(I2C_SDA, I2C_SCL); // Used inside the BME680 Mbed Lib. +I2C i2c(I2C_SDA, I2C_SCL); // Used inside the BME680 Mbed Lib. #endif BME680 bme680(0x76 << 1);