include/battery.h File Reference

Battery functions. More...

Go to the source code of this file.

Functions

bool battery_full (void)
bool battery_empty (void)
uint8_t battery_percentage (void)

Detailed Description

Battery functions.

Definition in file battery.h.


Function Documentation

bool battery_empty ( void  )

check if the battery is empty

Returns:
true when battery is empty
bool battery_full ( void  )

check if the battery is full.

Returns:
true when battery is full
uint8_t battery_percentage ( void  )

get charge of battery

Returns:
charge of battery in percent