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
Also, I might add that maybe you can allow (sleep) to be called with no arguments, which means indefinite sleep -- on esp32 it just directly calls esp_light_sleep_start(), on AVR it calls sleep_enable(); sleep_cpu(); without enabling the watchdog for interrupts, etc.
The text was updated successfully, but these errors were encountered:
Right now the
(sleep)
function doesn't actually put the CPU to sleep, it just burns time in a delay() loop.However, the ESP32 does have a light-sleep function that preserves the state - care to try it out?
Also, I might add that maybe you can allow
(sleep)
to be called with no arguments, which means indefinite sleep -- on esp32 it just directly callsesp_light_sleep_start()
, on AVR it callssleep_enable(); sleep_cpu();
without enabling the watchdog for interrupts, etc.The text was updated successfully, but these errors were encountered: