[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.