From 6a67d9bf9f19a4a7f640aeb7e59823032932a889 Mon Sep 17 00:00:00 2001 From: thiswillbeyourgithub Date: Tue, 4 Oct 2022 18:35:56 +0200 Subject: [PATCH] new: disable ppg light by default on startup Signed-off-by: thiswillbeyourgithub --- wasp/boards/k9/watch.py.in | 1 + wasp/boards/p8/watch.py.in | 1 + wasp/boards/pinetime/watch.py.in | 1 + 3 files changed, 3 insertions(+) diff --git a/wasp/boards/k9/watch.py.in b/wasp/boards/k9/watch.py.in index 6748279..e67003f 100644 --- a/wasp/boards/k9/watch.py.in +++ b/wasp/boards/k9/watch.py.in @@ -101,6 +101,7 @@ try: accel = BMA421(i2c) boot_msg("Init HRS3300") hrs = HRS3300(i2c) + hrs.disable() boot_msg("Init touch") touch = TouchButton(Pin('TP_INT', Pin.IN), Pin('TP_RST', Pin.OUT, value=0), _callback) diff --git a/wasp/boards/p8/watch.py.in b/wasp/boards/p8/watch.py.in index 1993a58..574d122 100644 --- a/wasp/boards/p8/watch.py.in +++ b/wasp/boards/p8/watch.py.in @@ -90,6 +90,7 @@ try: i2c = I2C(1, scl='I2C_SCL', sda='I2C_SDA') accel = BMA421(i2c) hrs = HRS3300(i2c) + hrs.disable() touch = CST816S(i2c, Pin('TP_INT', Pin.IN), Pin('TP_RST', Pin.OUT, value=0), _callback) diff --git a/wasp/boards/pinetime/watch.py.in b/wasp/boards/pinetime/watch.py.in index 91c59c3..d96de06 100644 --- a/wasp/boards/pinetime/watch.py.in +++ b/wasp/boards/pinetime/watch.py.in @@ -92,6 +92,7 @@ try: i2c = I2C(1, scl='I2C_SCL', sda='I2C_SDA') accel = BMA421(i2c) hrs = HRS3300(i2c) + hrs.disable() touch = CST816S(i2c, Pin('TP_INT', Pin.IN), Pin('TP_RST', Pin.OUT, value=0), _callback)