Skip to content

Commit 766187c

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

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/Power_capabilities.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,17 @@ located in `Power.h` and `Power.cpp`, automatically included with `#include "M5S
1313
these actions (including the deep sleep mode) will give the appearance and effect of being powered off. Pressing the power/reset button turns it back on.
1414
- **Can it wake itself back up after a pre-determined delay or at a specific time?**
1515
No, since it doesn't have a real-time clock chip (RTC), but ESP32 sleep modes may provide a suitable alternative.
16-
- **Can it tell if it is running on external versus battery power?**
17-
- **Can it tell if the battery is being charged or discharged?**
16+
- **Can it tell if it is running on external versus battery power?** If `isCharging()` or `isChargeFull()` true, probably on external power.
17+
- **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*
1818
- **Can it tell if a battery is present or absent?** *possibly, but not formally*
19-
- **Can it tell the state of charge of the battery?** Yes, using `getBatteryLevel()`, which returns one of: 25, 50, 75, 100 (representing a percentage), or -1 (if unable to read)
20-
- **Can it read its battery voltage?** Not possible to read the voltage level directly, only the approximate percentage of 25/50/75/100.
19+
- **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)
20+
- **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()`
2222
- **What other capabilities?** *(to be answered -- translation of Chinese-language datasheet is difficult to understand)*
2323
- *auto shutoff settings - voltage low for how long causes a shutoff*
2424
- *inhibit the power button, report it as an event?*
2525
- *setting the charging voltage and current*
26-
- *distinguish between a software/hardware/watchdog/poweron reset*
26+
- *distinguish between a software/hardware/watchdog/sleep/poweron reset*
2727
- *maintain any of the settings across power cycles and/or complete loss of all power*
28+
- *how does setAutoBootOnLoad() work? when enabled, it seems the device can be powered back on simply by connecting a load -- such as
29+
connecting another M5Stack controller to be powered from PORTA -- if done before the shutdown_8s time expires*

0 commit comments

Comments
 (0)