HT-TEAM
/
Sensor-BME680_works
worked
Revision 1:6dd878905b5c, committed 2020-06-16
- Comitter:
- morgandu
- Date:
- Tue Jun 16 05:47:24 2020 +0000
- Parent:
- 0:a0e92a018ff2
- Commit message:
- Fixed i2c declaration for BME680 library
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Jun 09 02:35:34 2020 +0000 +++ b/main.cpp Tue Jun 16 05:47:24 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);