With the Fire using the function M5.Power.getBatteryLevel(); gives you the battery level. With Core2 it is not clear to me. I have used a number of functions connected and not connected to the USB. I detail them below:
USB:
float batVol = M5.Axp.GetBatVoltage(); // 4.21
float batCur = M5.Axp.GetBatCurrent(); // 14.00
float batPow = M5.Axp.GetBatPower(); // 0.00
float batCha = M5.Axp.GetBatChargeCurrent(); // 14.00
bool charging = M5.Axp.isCharging(); // 1
Without USB:
float batVol = M5.Axp.GetBatVoltage(); // 4.16
float batCur = M5.Axp.GetBatCurrent(); // -88.5
float batPow = M5.Axp.GetBatPower(); // 462.39
float batCha = M5.Axp.GetBatChargeCurrent(); // 0.00
bool charging = M5.Axp.isCharging(); // 0
I see very different values depending on whether it is connected or not. Can someone explain to me if this is correct or if there is a problem with the unit?
Thanks in advance