From f57c68c3a2eff7673d033a009a3ff95a1299d7e6 Mon Sep 17 00:00:00 2001 From: IrvingGao <1729854488@qq.com> Date: Thu, 30 May 2024 01:59:18 +0800 Subject: [PATCH] [bug] short button --- takway/board/orangepi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/takway/board/orangepi.py b/takway/board/orangepi.py index e4da1c8..b869625 100644 --- a/takway/board/orangepi.py +++ b/takway/board/orangepi.py @@ -70,6 +70,7 @@ class OrangePi(BaseHardware): self.start_status_light() while True: button_status_1 = True if wiringpi.digitalRead(self.BUTTON_PIN_1) == 0 else False + print(f"{datetime.now()}: BUTTON_PIN_1: {wiringpi.digitalRead(self.BUTTON_PIN_1)}") if not button_status_1 and last_status_1: press_time_1 = datetime.now() elif button_status_1 and not last_status_1: