summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/driver/scd4x.h1
-rw-r--r--src/driver/scd4x.cc7
2 files changed, 7 insertions, 1 deletions
diff --git a/include/driver/scd4x.h b/include/driver/scd4x.h
index 19ba20d..d99c4fc 100644
--- a/include/driver/scd4x.h
+++ b/include/driver/scd4x.h
@@ -24,7 +24,6 @@ class SCD4x {
void stop();
void startLowPower();
- void stopLowPower();
void read();
};
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;