Andrea Corrado
/
CCS811-TEST
Working eCO2 and TVOC sensor
Diff: main.cpp
- Revision:
- 3:13e51613b175
- Parent:
- 2:f0800e58f4b0
--- a/main.cpp Thu Oct 19 11:32:39 2017 +0000 +++ b/main.cpp Thu Oct 19 12:30:01 2017 +0000 @@ -5,12 +5,12 @@ Serial pc(USBTX, USBRX); -#ifdef TARGET_K64F +#ifdef TARGET_UBLOX_EVK_ODIN_W2 +CCS811 ccs811(PF_0, PF_1); +#else CCS811 ccs811(I2C_SDA, I2C_SCL); #endif -#ifdef TARGET_UBLOX_EVK_ODIN_W2 -CCS811 ccs811(PF_0, PF_1); -#endif + uint16_t eco2, tvoc;