Is there a deep sleep mode for Fire?
-
Hello all,
I'm designing a Fire application which is supposed to be work on battery, and it will be beneficial if I can deep sleep Fire when it's not being used. Is there a way to "Sleep" the unit? Or what's the most common way to reduce power consumption?
Thank you!
-
Hello @houkensjtu
yes, there is. Two functions are available for that
POWER::lightSleep()andPOWER::deepSleep()Also have a look at the sleep example, it uses
light sleepanddeep sleepfunctionality.Cheers
Felix -
Hi Felix,
Thank you for you quick answer. Looks like you're referring to the Arduino library of M5Stack.
I wonder if there is an equivalent function in UI-FLOW? I'm currently using UI-Flow to program my Fire.
I can also try to burn the Arduino firmware, but I'm worried if I can control the UI as easily as in UI-Flow.Thx,
-
Hello @houkensjtu
ok, I see. In UI-FLOW you could use an
Execute codeblock and add something like this for deep sleep:import machine #sleep for 10 seconds machine.deepsleep(10000)or light sleep:
import machine #sleep for 10 seconds machine.lightsleep(10000)BTW: I found a nice tutorial about MicroPython and sleep modes here.
Cheers
Felix
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