Skip to content
Snippets Groups Projects
Commit 080067b5 authored by Daniel Friesel's avatar Daniel Friesel
Browse files

scd4x: implement startLowPower, remove unsupported stopLowPower

parent 055c0473
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,6 @@ class SCD4x {
void stop();
void startLowPower();
void stopLowPower();
void read();
};
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment