-
Notifications
You must be signed in to change notification settings - Fork 82
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 up by ulp from deep sleep? #2696
Comments
@JunfengJia With a little bit of luck, you may not need the ULP to trigger this. Here is an example of using a GPIO pin trigger for waking up from deep sleep: https://github.com/toitlang/toit/blob/master/examples/triggers/gpio.toit. |
Thanks a bunch, @kasperl! The GPIO works for me in some cases, like when the user presses a button. I’ll do more testing for other scenarios. I also created a small ulp + c program that works for the basic idea, but I’m not sure if it can also work with ULP+toit. ULP, check condition, if true, wakeup esp32, then C code do some work, then deep sleep, and ULP checking again. Do you think there’s a way to do it in ULP + toit? |
We haven't implemented support for ULP yet. Once implemented, your use case should be possible. |
Hey @floitsch, thanks for getting back to me! For now, I’ll use sleep/check as a solution. Thanks again for working on it! Please let me know once it's available for test, so I can improve my design. |
My application is power-hungry, so I’m looking for a way to put the ESP32 into deep sleep and wake it up using a pin or some other logic running in the ULP. Any ideas?
The text was updated successfully, but these errors were encountered: