Difference between revisions of "PTM:GetBatteryLevel"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x00070000] |} =Response= {| class="wikitable" border="1" |- ! Index Word ! Des...")
 
(Clarify battery state output and behavior)
 
(2 intermediate revisions by 2 users not shown)
Line 22: Line 22:
 
|-
 
|-
 
| 2
 
| 2
| u8 output: 4 = "full" battery(4 of 4 battery bars in home-menu), ...
+
| u8 output
 +
|}
 +
 
 +
=Output Values=
 +
 
 +
These values are only reliable when [[PTM:GetAdapterState|no external power is connected]].
 +
 
 +
{| class="wikitable" border="1"
 +
|-
 +
!  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 & [[PTMSYSM:SetBatteryEmptyLEDPattern|notification LED]] both blink)
 +
|-
 +
| 0
 +
| 0% (system shutdown)
 
|}
 
|}

Latest revision as of 08:34, 26 January 2023

Request[edit]

Index Word Description
0 Header code [0x00070000]

Response[edit]

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

Output Values[edit]

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)