Detect When M5 is Powered by Battery?
-
I know we can’t read the charge level on the M5 core, but is there any way to detect if the power source is battery vs USB? Even adding some custom circuit?
-
@jeremyjh There are sample programs for this. Do you want arduino code or micropython?
-
@lukasmaximus Thanks so much for your reply! Sorry I missed it. I found the Arduino sample and confirmed it works. Somehow I had been led to believe from issues on Github that it was only supported on Fire, but the battery sample works on my M5 Basic (black).
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