Working eCO2 and TVOC sensor

Dependencies:   CCS811

Files at this revision

API Documentation at this revision

Comitter:
andcor02
Date:
Thu Oct 19 12:30:01 2017 +0000
Parent:
2:f0800e58f4b0
Commit message:
changed defines for global

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;