Inky Frame: Check current button state in woken_by_button.

Makes it easier to test wakeup logic in Thonny by holding a button when hitting "Run."
docs/inky73
Phil Howard 2023-03-03 15:19:35 +00:00
rodzic 07a5aac48f
commit a6e35e207d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -59,7 +59,7 @@ def woken_by_ext_trigger():
def woken_by_button():
return bool(SHIFT_STATE & 0b11111000)
return bool(sr.read() & 0b11111000) or bool(SHIFT_STATE & 0b11111000)
def pico_rtc_to_pcf():