CCS811 dumb library
Dependents: Mt05_MtSense02 embernet-sensor-test
Diff: CCS811.h
- Revision:
- 1:57eb62ded32d
- Parent:
- 0:b5dbfc21185d
--- a/CCS811.h Tue Jun 27 05:17:02 2017 +0000
+++ b/CCS811.h Fri Apr 27 09:51:20 2018 +0000
@@ -34,7 +34,7 @@
class CCS811 {
public:
- CCS811(I2C& i2c);
+ CCS811(I2C& i2c, Serial &pc);
void init();
int setMeasureMode(char mode);
int readData(uint16_t *ECO2, uint16_t *TVOC);
@@ -42,7 +42,7 @@
bool softRest();
protected:
I2C m_i2c;
- Serial pc;
+ Serial m_pc;
private:
};
MtM+