add HalPowerManager

This commit is contained in:
Xuan Son Nguyen
2026-02-12 13:12:13 +01:00
parent f7b1113819
commit ea32ba0f8d
5 changed files with 82 additions and 64 deletions

View File

@@ -38,12 +38,6 @@ class HalGPIO {
bool wasAnyReleased() const;
unsigned long getHeldTime() const;
// Setup wake up GPIO and enter deep sleep
void startDeepSleep();
// Get battery percentage (range 0-100)
int getBatteryPercentage() const;
// Check if USB is connected
bool isUsbConnected() const;