want to power off m5stickC from code
-
I try these command non of them work.
-
M5.powerOFF();
when compile i get result "'class M5StickC' has no member named 'powerOFF'" -
M5.Axp.halt();
when compile i get result "'class AXP192' has no member named 'halt'" -
M5.Axp.SetSleep();
program still running and wifi still on. battery will die in a few hour. -
M5.Axp.DeepSleep();
this seem to work but when I press power/reset bnt my program not start it just on the LCD with black color.
Please help me.
Thank You. -
-
What version of the librarys are you using?
Have you checked arduino for updates. -
@ajb2k3 I using arduino version 1.8.9 (windows store 1.8.21 ) and m5stickC library 0.1.0.
-
@pattiuak What M5Stack Core library have you installed?
-
@ajb2k3 It is m5stack library V 0.2.9
-
In case anyone else is looking for the real PowerOff (and NOT deep sleep or any other sleep method), the command to use is
M5.Axp.PowerOff();
(mind the capitals)After this command you have to power your M5Stick manually by pressing the power button, but it works as a charm.
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