battery module
- battery.battery_charging()
Whether or not the battery is charging.
- Returns:
0 for not charging, 1 for charging
- Return type:
int
- Deprecated:
not applicable for the Wallaby controller
- battery.power_level()
The device’s power level.
- Returns:
The device’s current battery capacity. 0 for 0%, 1 for 100%
- Return type:
float
Note
Defaults to LiFePO4 chemistry
- battery.power_level_life()
The device’s power level (LiFePO4 chemistry).
- Returns:
The device’s current battery capacity. 0 for 0%, 1 for 100%
- Return type:
float
See also
power_level()
- battery.power_level_lipo()
The device’s power level (LiPo chemistry).
- Returns:
The device’s current battery capacity. 0 for 0%, 1 for 100%
- Return type:
float
- battery.power_level_nimh()
The device’s power level (NiMH chemistry).
- Returns:
The device’s current battery capacity. 0 for 0%, 1 for 100%
- Return type:
float