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!
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