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