kopia lustrzana https://github.com/pimoroni/pimoroni-pico
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
rodzic
07a5aac48f
commit
a6e35e207d
|
@ -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():
|
||||
|
|
Ładowanie…
Reference in New Issue