add method for detecting low battery

This commit is contained in:
Joey Castillo
2021-08-31 18:47:35 -04:00
parent 36322fd737
commit b22915431b
3 changed files with 44 additions and 0 deletions

View File

@@ -65,4 +65,12 @@
#include "watch_private.h"
/** @brief Returns true when the battery voltage dips below 2.5V.
* @details A CR2016 battery will have a nominal voltage between 2.9 and 3 volts for most of its lifespan. Once the battery
* discharges to about 60%, the voltage will drift slightly lower; this may manifest as a dimmer LED. By the time
* the battery voltage has fallen to 2.5 volts, it will have probably less than 10% of its capacity remaining, and
* you can expect the voltage to drop relatively quickly as the battery dies.
*/
bool watch_is_battery_low();
#endif /* WATCH_H_ */