PTM:GetBatteryLevel

Revision as of 07:34, 26 January 2023 by EvilFlight (talk | contribs) (Clarify battery state output and behavior)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RequestEdit

Index Word Description
0 Header code [0x00070000]

ResponseEdit

Index Word Description
0 Header code
1 Result code
2 u8 output

Output ValuesEdit

These values are only reliable when no external power is connected.

Value State of charge
5 100~61% (4 blue bars)
4 60~31% (3 blue bars)
3 30~11% (2 blue bars)
2 10~6% (1 red bar)
1 5~1% (1 red bar & notification LED both blink)
0 0% (system shutdown)