Core2 for AWS IoT EduKit BSP 1.5.1
Core2ForAWS_PMU_GetBatCurrent
float Core2ForAWS_PMU_GetBatCurrent(void)
Gets the battery current draw with the AXP192.
Definition: core2forAWS.c:164

Gets the battery current draw with the AXP192.

EXAMPLE Get the current battery current in the variable named battery_current and print the current to the serial output.

float battery_current = Core2ForAWS_PMU_GetBatCurrent();
printf("Battery Current: %0.3f", battery_current);
Returns
The current draw of the battery.