Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wake from sleep issue #9

Open
saibotd opened this issue Jan 31, 2021 · 0 comments
Open

Wake from sleep issue #9

saibotd opened this issue Jan 31, 2021 · 0 comments

Comments

@saibotd
Copy link

saibotd commented Jan 31, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant