Go to the source code of this file.
Defines | |
#define | BATTERY_NORMALV 154 |
Normal battery voltage. (6 V). | |
#define | BATTERY_CHARINGV 179 |
Charging battery voltage. (7 V). | |
#define | BATTERY_LOWV 152 |
Low battery voltage. ( < 6 V). | |
Functions | |
int | battery8 (void) |
Read the battery voltage. | |
int | battery (void) |
Read the battery voltage in deciVolts. | |
char | battery_low (void) |
Check if the battery is low. | |
int | battery8_avg (int n_samples) |
get an average battery voltage reading. |
Contains definitions for checking the voltage of the battery.