From 080067b5ee69d9d9a7524b7eac249c158506e9bd Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 15 Apr 2021 11:32:42 +0200 Subject: scd4x: implement startLowPower, remove unsupported stopLowPower --- src/driver/scd4x.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/driver') 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; -- cgit v1.2.3