From 2cf88b26eebfc34705116bf091289bca81d8520d Mon Sep 17 00:00:00 2001 From: Matthias Blankertz Date: Sat, 27 Dec 2025 15:23:41 +0100 Subject: [PATCH] fix: button 0 to shutdown device when in error state Signed-off-by: Matthias Blankertz --- software/src/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/software/src/main.py b/software/src/main.py index f968997..1af8e3c 100644 --- a/software/src/main.py +++ b/software/src/main.py @@ -150,6 +150,8 @@ def builddb(): def error_blink(): while True: + if machine.Pin(hwconfig.BUTTONS[0], machine.Pin.IN, machine.Pin.PULL_UP).value() == 0: + machine.reset() np.fill((led_max, 0, 0)) np.write() time.sleep_ms(500)