Skip to content

Commit fec0a3e

Browse files
authored
Update Power_capabilities.md
1 parent 766187c commit fec0a3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/Power_capabilities.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Document v0.1
44

55
The power management capabilities are provided by the IP5306 power controller, specifically the IP5306_I2C version of the controller,
6-
that can be accessed on the I2C bus at address 0x75. Access is possible using the `POWER` class,
7-
located in `Power.h` and `Power.cpp`, automatically included with `#include "M5Stack.h"`.
6+
that can be accessed on the I2C bus at address 0x75. Access is possible via M5.Power, which is implemented in
7+
`src/utility/Power.h` and `src/utility/Power.cpp`, and becomes available with `#include "M5Stack.h"`.
88

99
### Capabilities
1010

@@ -15,7 +15,7 @@ located in `Power.h` and `Power.cpp`, automatically included with `#include "M5S
1515
No, since it doesn't have a real-time clock chip (RTC), but ESP32 sleep modes may provide a suitable alternative.
1616
- **Can it tell if it is running on external versus battery power?** If `isCharging()` or `isChargeFull()` true, probably on external power.
1717
- **Can it detect the rate of charge or discharge?** *probably not, but inference can probably be made by comparing `isChargeFull()` to the charge full current cutoff*
18-
- **Can it tell if a battery is present or absent?** *possibly, but not formally*
18+
- **Can it tell if a battery is present or absent?** *possibly, but not formally... an absent battery seems to always be reported as "charging", having a level of "100%", and never becomes "charge full"*
1919
- **Can it tell the state of charge of the battery?** Yes, using `getBatteryLevel()`, which returns one of: 0, 25, 50, 75, 100 (representing a percentage), or -1 (if unable to read)
2020
- **Can it read its battery voltage?** Not possible to read the voltage level directly, only the approximate percentage of 0/25/50/75/100.
2121
- **Can communication with the IP5306 power controller be tested and confirmed?** Yes, with `canControl()`

0 commit comments

Comments
 (0)