Actually works, and with mbed os 5 latest
Dependents: CCS811-TEST Mbed-Connect-Cloud-Demo Mbed-Connect-Cloud-Demo HTTP-all-sensors ... more
Fork of CCS811 by
Diff: CCS811.h
- Revision:
- 2:64a96d555ef0
- Parent:
- 1:4acc5b63a984
--- a/CCS811.h Wed Sep 13 15:31:53 2017 +0000 +++ b/CCS811.h Thu Oct 19 11:24:59 2017 +0000 @@ -34,7 +34,7 @@ class CCS811 { public: - CCS811(I2C* i2c); + CCS811(PinName sda, PinName scl); void init(); int setMeasureMode(char mode); int readData(uint16_t *ECO2, uint16_t *TVOC); @@ -44,8 +44,7 @@ bool readmeas(); bool readerror(); protected: - I2C* m_i2c; - Serial pc; + I2C _i2c; private: };