PTM:GetBatteryLevel: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Approx battery levels |
||
| Line 26: | Line 26: | ||
=Output Values= | =Output Values= | ||
These values are only reliable when [[PTM:GetAdapterState|no external power is connected]]. | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
! Value | ! Value | ||
! | ! State of charge | ||
|- | |- | ||
| 5 | | 5 | ||
| | | 100~61% (4 bars) | ||
|- | |- | ||
| 4 | | 4 | ||
| | | 60~31% (3 bars) | ||
|- | |||
| 3 | |||
| 30~11% (2 bars) | |||
|- | |||
| 2 | |||
| 10~6% (1 bar) | |||
|- | |||
| 1 | |||
| 5~1% ([[PTMSYSM:SetBatteryEmptyLEDPattern|notification LED blinks]]) | |||
|- | |||
| 0 | |||
| 0% (as above?) | |||
|} | |} | ||
Revision as of 14:19, 27 April 2016
Request
| Index Word | Description |
|---|---|
| 0 | Header code [0x00070000] |
Response
| Index Word | Description |
|---|---|
| 0 | Header code |
| 1 | Result code |
| 2 | u8 output |
Output Values
These values are only reliable when no external power is connected.
| Value | State of charge |
|---|---|
| 5 | 100~61% (4 bars) |
| 4 | 60~31% (3 bars) |
| 3 | 30~11% (2 bars) |
| 2 | 10~6% (1 bar) |
| 1 | 5~1% (notification LED blinks) |
| 0 | 0% (as above?) |