12345678910111213141516171819202122232425262728293031323334 |
- #ifndef _POWER_H_
- #define _POWER_H_
- #include <Arduino.h>
- #include <M5Stack.h>
- class PowerClass {
- public:
-
- void begin();
-
- void adaptChargeMode();
-
-
- int8_t getBatteryLevel();
- private:
-
- bool canControl = false;
- };
- extern PowerClass Power;
- #endif
|