|
PebbleOS v4.47.0
|
Simulated battery, full and unplugged until pbl_battery_sim_set() changes it. More...
Functions | |
| void | pbl_battery_sim_set (uint8_t percent, bool charger_connected) |
| Set the battery state. | |
| uint8_t | pbl_battery_sim_get_percent (void) |
| Get the charge percentage last set. | |
Simulated battery, full and unplugged until pbl_battery_sim_set() changes it.
| uint8_t pbl_battery_sim_get_percent | ( | void | ) |
Get the charge percentage last set.
Lets the battery service skip the lossy voltage curve round trip.
| void pbl_battery_sim_set | ( | uint8_t | percent, |
| bool | charger_connected | ||
| ) |
Set the battery state.
The voltage follows the battery curve. A charger change is reported to the connection handler.
| percent | Charge percentage, capped at 100. |
| charger_connected | Whether the charger is connected. |