Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
|
Functions | |
void | initBattmon (gpio_num_t gpio) |
Initialize a oneshot analog-to-digital unit to read the battery voltage. | |
void | deinitBattmon (void) |
Deinitialize the analog-to-digital unit used to read the battery voltage. | |
void | powerDownBattmon (void) |
Power down the battery monitor. | |
void | powerUpBattmon (void) |
Power up the battery monitor. | |
int | readBattmon (void) |
Read and return the battery voltage. | |
void initBattmon | ( | gpio_num_t | gpio | ) |
Initialize a oneshot analog-to-digital unit to read the battery voltage.
gpio | The GPIO to initialize the ADC on |
void deinitBattmon | ( | void | ) |
Deinitialize the analog-to-digital unit used to read the battery voltage.
void powerDownBattmon | ( | void | ) |
Power down the battery monitor.
void powerUpBattmon | ( | void | ) |
Power up the battery monitor.
int readBattmon | ( | void | ) |
Read and return the battery voltage.