You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
esp32/modmachine.c Added RTC object
esp32/modmachine.h Added RTC object
Just enough code for this to work on ESP32:
import machine
rtc = machine.RTC() # Need to implement this first!
rtc.irq(trigger=rtc.ALARM0, wake=machine.DEEPSLEEP) # syntactic sugar to match, probably a NOP
rtc.alarm(rtc.ALARM0, 10000) # calls esp_deep_sleep_enable_timer_wakeup() in IDF
machine.deepsleep() # calls esp_deep_sleep_start() in IDF
0 commit comments