Battery battery
Definition Battery.cpp:37
Class to measure battery level and status.
Definition Battery.h:11
bool USB()
Check if the Pico is being powered from the USB port.
Definition Battery.cpp:33
float chargePercent()
Estimates the current battery charge.
Definition Battery.cpp:16
float readVoltage()
Reads the current battery voltage.
Definition Battery.cpp:7
bool charged()
Check the battery charge status.
Definition Battery.cpp:25
Battery(byte pin=BAT_PIN, int r1=BAT_R1, int r2=BAT_R2)
Definition Battery.h:13
#define BAT_R2
Definition definitions.h:28
#define BAT_R1
Definition definitions.h:27
#define BAT_PIN
Definition definitions.h:26