How to make M5StickC go into light sleep?
-
Battery runs out fast with current drain at about 50mAh if Get VBus Current is accurate. Looking to make it last longer with regular sleep intervals. How can this be done either in Python or UiFlow?
-
UIFlow does not currently provide this feature.
-
@m5stack can you confirm there is no python module/ library today that support this?
-
This API in the official mainline is provided. but currently UIFlow has not integrated this API. so if you want the use this function , you could use official mpy firmware. you could refer this docs
http://docs.micropython.org/en/latest/esp32/quickref.html#deep-sleep-mode
-
@m5stack Did a quick machine.deepsleep(10000) test and it seems to work! Will add more code to see how this extends battery life.
Thanks!