Added T-Beam PMU support

This commit is contained in:
Mark Qvist 2022-10-30 22:27:30 +01:00
parent 3b0658aaf5
commit 8059204050
2 changed files with 63 additions and 7 deletions

View file

@ -296,8 +296,11 @@
#define BATTERY_STATE_DISCHARGING 0x01
#define BATTERY_STATE_CHARGING 0x02
#define BATTERY_STATE_CHARGED 0x03
bool battery_installed = false;
bool external_power = false;
float battery_voltage = 0.0;
float battery_percent = 0.0;
// float auxillary_temperature = 0.0;
uint8_t battery_state = 0x00;
// Boot flags