add power save timer

This commit is contained in:
Terrence
2024-11-19 08:50:47 +08:00
parent 6bfe2719a8
commit 874adc80b8
7 changed files with 74 additions and 29 deletions

View File

@@ -7,9 +7,13 @@ class Axp2101 : public I2cDevice {
public:
Axp2101(i2c_master_bus_handle_t i2c_bus, uint8_t addr);
bool IsCharging();
bool IsDischarging();
bool IsChargingDone();
int GetBatteryLevel();
void PowerOff();
private:
int GetBatteryCurrentDirection();
};
#endif