new: disable ppg light by default on startup
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
This commit is contained in:
parent
a7c3e68f25
commit
6a67d9bf9f
3 changed files with 3 additions and 0 deletions
|
@ -101,6 +101,7 @@ try:
|
||||||
accel = BMA421(i2c)
|
accel = BMA421(i2c)
|
||||||
boot_msg("Init HRS3300")
|
boot_msg("Init HRS3300")
|
||||||
hrs = HRS3300(i2c)
|
hrs = HRS3300(i2c)
|
||||||
|
hrs.disable()
|
||||||
boot_msg("Init touch")
|
boot_msg("Init touch")
|
||||||
touch = TouchButton(Pin('TP_INT', Pin.IN),
|
touch = TouchButton(Pin('TP_INT', Pin.IN),
|
||||||
Pin('TP_RST', Pin.OUT, value=0), _callback)
|
Pin('TP_RST', Pin.OUT, value=0), _callback)
|
||||||
|
|
|
@ -90,6 +90,7 @@ try:
|
||||||
i2c = I2C(1, scl='I2C_SCL', sda='I2C_SDA')
|
i2c = I2C(1, scl='I2C_SCL', sda='I2C_SDA')
|
||||||
accel = BMA421(i2c)
|
accel = BMA421(i2c)
|
||||||
hrs = HRS3300(i2c)
|
hrs = HRS3300(i2c)
|
||||||
|
hrs.disable()
|
||||||
touch = CST816S(i2c,
|
touch = CST816S(i2c,
|
||||||
Pin('TP_INT', Pin.IN), Pin('TP_RST', Pin.OUT, value=0),
|
Pin('TP_INT', Pin.IN), Pin('TP_RST', Pin.OUT, value=0),
|
||||||
_callback)
|
_callback)
|
||||||
|
|
|
@ -92,6 +92,7 @@ try:
|
||||||
i2c = I2C(1, scl='I2C_SCL', sda='I2C_SDA')
|
i2c = I2C(1, scl='I2C_SCL', sda='I2C_SDA')
|
||||||
accel = BMA421(i2c)
|
accel = BMA421(i2c)
|
||||||
hrs = HRS3300(i2c)
|
hrs = HRS3300(i2c)
|
||||||
|
hrs.disable()
|
||||||
touch = CST816S(i2c,
|
touch = CST816S(i2c,
|
||||||
Pin('TP_INT', Pin.IN), Pin('TP_RST', Pin.OUT, value=0),
|
Pin('TP_INT', Pin.IN), Pin('TP_RST', Pin.OUT, value=0),
|
||||||
_callback)
|
_callback)
|
||||||
|
|
Loading…
Reference in a new issue