[Solved]sleep mode on MircoPython?
-
We can use DeepSleep mode on MicroPython as described here:
https://github.com/loboris/MicroPython_ESP32_psRAM_LoBoIs there any way (modules) to handle light sleep mode in MicroPython?
Other version of ESP32's MicroPython provides machine.lightsleep().
http://vcc-gnd.com/rtd/html/esp32/quickref.html?fbclid=IwAR3ChQc9samG9iNG9IFTRGypX_zqD43d8QweAeWI5OUKRuCgGxvKaHxDXE8 -
@akita11 Yes, as http://vcc-gnd.com told, use the following code
import machine machine.lightsleep()will enter light sleep mode
-
@m5-docs No, I'm using the newest MicroPython on M5stack, but "machine" has no member of "lightsleep()".
-
Hello @akita11
Which version are you using? Here's mine.

-
@m5-docs Thanks, mine's version is: "MicroPython ESP32_LoBo_v3.2.24 - 2018-09-06 on M5Stack with ESP32", that is distributed for UI flow 1.2.3.
I burned UI flow 1.3.0-beta, and found machine.lightsleep() is available.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login