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

ESP32: Expose ext1 wakeup status #6981

Open
daisylb opened this issue Mar 2, 2021 · 3 comments
Open

ESP32: Expose ext1 wakeup status #6981

daisylb opened this issue Mar 2, 2021 · 3 comments

Comments

@daisylb
Copy link

daisylb commented Mar 2, 2021

Hello! I'm trying to build a battery-powered button panel that has four buttons on it, and comes out of sleep and does a bunch of network IO when one button is pressed.

At the moment I'm using esp32.wake_on_ext1 to get the machine to wake when one of the buttons is pressed, and then I'm just reading from the pins the buttons are wired to. Unfortunately a brief press on the button seems to take less time than MicroPython does to wake, so the pin is no longer high at that point.

The ESP-IDF has a function esp_sleep_get_ext1_wakeup_status which returns a bit mask of all the pins that triggered an EXT1 wake, which it looks like should do the trick—can this be added to the MicroPython esp32 module?

@brendenriggs
Copy link

Seconded. This is the only thing holding me back from using MP for my company's next project.

@karfas
Copy link

karfas commented Oct 16, 2021

Is currently discussed in the forum: https://forum.micropython.org/viewtopic.php?f=18&t=11272
There they propose (and build) all kind of funny external devices to overcome this software limitation.

@hueyy
Copy link

hueyy commented Nov 22, 2022

See #7990

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

4 participants