This library is for ESP32
- begin
- maxVolt input Volt => 3V (max: 3.3V)
- maxBatteryVolt Battery Volt => 12V
- return 0 -> Battery_ERROR, 1 -> Battery_OK.
begin(float maxVolt, float maxBatteryVolt);
- getBatteryVolt
- Get Battery Volt => (ex: 7V)
- return Battery Volt
getBatteryVolt();
- getBatteryPercentage
- Get Battery Percentage => (ex: 56%)
- return Battery Percentage
getBatteryPercentage();
- getBatteryValue
getBatteryValue();