1
0
Fork 0

new: disable ppg light by default on startup

Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
This commit is contained in:
thiswillbeyourgithub 2022-10-04 18:35:56 +02:00 committed by Daniel Thompson
parent a7c3e68f25
commit 6a67d9bf9f
3 changed files with 3 additions and 0 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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)