forked from lvgl/lv_micropython
-
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Very nice project! I have an issue with waking my device from sleep via the button like in examples/ttgo/axp202_pek_sleep.py. The failing line for me is probably this one: esp32.wake_on_ext1((machine.Pin(35), ), esp32.WAKEUP_ALL_LOW).
I tried to isolate the issue with some simple code:
import time
import machine
btn = machine.Pin(35, machine.Pin.IN)
def loop():
while True:
print({'btn': btn.value()})
time.sleep_ms(50)
loop()
The value is always "1"… do you have any idea what's the problem or is the example code maybe not supposed to work?
Metadata
Metadata
Assignees
Labels
No labels