Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
Loading...
Searching...
No Matches
hdw-battmon.h
Go to the documentation of this file.
1#ifndef _HDW_BATTMON_H_
2#define _HDW_BATTMON_H_
3
32#include <soc/gpio_num.h>
33
34void initBattmon(gpio_num_t gpio);
35void deinitBattmon(void);
36int readBattmon(void);
37
38#endif
int readBattmon(void)
Read and return the battery voltage.
Definition hdw-battmon.c:102
void initBattmon(gpio_num_t gpio)
Initialize a oneshot analog-to-digital unit to read the battery voltage.
Definition hdw-battmon.c:50
void deinitBattmon(void)
Deinitialize the analog-to-digital unit used to read the battery voltage.
Definition hdw-battmon.c:83