You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Power_capabilities.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,17 @@ located in `Power.h` and `Power.cpp`, automatically included with `#include "M5S
13
13
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.
14
14
-**Can it wake itself back up after a pre-determined delay or at a specific time?**
15
15
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*
18
18
-**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.
21
21
-**Can communication with the IP5306 power controller be tested and confirmed?** Yes, with `canControl()`
22
22
-**What other capabilities?***(to be answered -- translation of Chinese-language datasheet is difficult to understand)*
23
23
-*auto shutoff settings - voltage low for how long causes a shutoff*
24
24
-*inhibit the power button, report it as an event?*
25
25
-*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*
27
27
-*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