diff options
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/scd4x.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/driver/scd4x.cc b/src/driver/scd4x.cc index c0901e8..3d52975 100644 --- a/src/driver/scd4x.cc +++ b/src/driver/scd4x.cc @@ -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; |