Loading include/driver/scd4x.h +0 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,6 @@ class SCD4x { void stop(); void startLowPower(); void stopLowPower(); void read(); }; Loading src/driver/scd4x.cc +7 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,13 @@ void SCD4x::stop() i2c.xmit(address, 2, txbuf, 0, rxbuf); } void SCD4x::startLowPower() { txbuf[0] = 0x21; txbuf[1] = 0xac; i2c.xmit(address, 2, txbuf, 0, rxbuf); } void SCD4x::read() { txbuf[0] = 0xec; Loading Loading
include/driver/scd4x.h +0 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,6 @@ class SCD4x { void stop(); void startLowPower(); void stopLowPower(); void read(); }; Loading
src/driver/scd4x.cc +7 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,13 @@ void SCD4x::stop() i2c.xmit(address, 2, txbuf, 0, rxbuf); } void SCD4x::startLowPower() { txbuf[0] = 0x21; txbuf[1] = 0xac; i2c.xmit(address, 2, txbuf, 0, rxbuf); } void SCD4x::read() { txbuf[0] = 0xec; Loading