Fire getBatteryLevel()
-
Hi,
I'm trying to read the battery level from a Fire controller but even the init code is not working. Is this function not supported for Fire controllers? In the schematic I see that a IP5306 power controller is used in the hardware. So I don't understand why canControl() returns false.
M5.begin(); M5.Power.begin(); if (M5.Power.canControl()) { Serial.println("Power canControl OK"); } else { Serial.println("Power canControl ERROR"); }I'm always getting the ERROR message.
Thanks, Roger
-
Hello @Veto6017
hmm, with an M5Stack Fire (HW: 2018.2A) running your code I get "Power canControl OK".
Have you tried to run I2C_Tester.ino? The I2C scan finds 0x10 (BMM150), 0x68 (MPU6886) and 0x75 (IP5306).
Thanks
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