Working eCO2 and TVOC sensor

Dependencies:   CCS811

Files at this revision

API Documentation at this revision

Comitter:
andcor02
Date:
Thu Oct 19 11:32:39 2017 +0000
Parent:
1:ea90319c0b28
Child:
3:13e51613b175
Commit message:
changed error in declaration in main for I2C

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:25:22 2017 +0000
+++ b/main.cpp	Thu Oct 19 11:32:39 2017 +0000
@@ -6,16 +6,12 @@
 Serial pc(USBTX, USBRX);
 
 #ifdef TARGET_K64F
-I2C i2c(I2C_SDA, I2C_SCL);
+CCS811 ccs811(I2C_SDA, I2C_SCL);
 #endif
 #ifdef TARGET_UBLOX_EVK_ODIN_W2
-I2C i2c(PF_0, PF_1);
+CCS811 ccs811(PF_0, PF_1);
 #endif
 
-
-
-CCS811 ccs811(&i2c);
-
 uint16_t eco2, tvoc;