Internal Interface: battery handling.
More...
Go to the source code of this file.
Internal Interface: battery handling.
- Author
- Paolo Masetti paolo.nosp@m..mas.nosp@m.etti@.nosp@m.itlu.nosp@m.g.org
Definition in file battery.h.
◆ BATTERY_LOW_THRESHOLD_MV
#define BATTERY_LOW_THRESHOLD_MV 6300 |
◆ BATTERY_NORMAL_THRESHOLD_MV
#define BATTERY_NORMAL_THRESHOLD_MV 6700 |
◆ battery_refresh()
void battery_refresh |
( |
void |
| ) |
|
|
extern |
cause the battery voltage sensor value to be refreshed
◆ get_battery_mv()
get current battery voltage
- Returns
- int voltage in millivolts
Referenced by Battery::get().