Commit 080067b5 authored by Daniel Friesel's avatar Daniel Friesel
Browse files

scd4x: implement startLowPower, remove unsupported stopLowPower

parent 055c0473
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ class SCD4x {
		void stop();

		void startLowPower();
		void stopLowPower();

		void read();
};
+7 −0
Original line number Diff line number Diff line
@@ -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;