-
Notifications
You must be signed in to change notification settings - Fork 0
MiP_Battery
github-actions[bot] edited this page Aug 10, 2026
·
16 revisions
MiP_Battery provides one function only, to report MiP's cached battery voltage.
Signature: MiP_Battery(MiP &mip)
Summary: Constructs the battery manager.
Parameters:
| Parameter | Description |
|---|---|
mip |
A reference to the main MiP object to access core services. |
Signature: float readVoltage()
Summary: Reads MiP's cached battery voltage. The voltage is read from MiP's periodic status updates and is never more than 30 seconds old.
Details:
Reads the most recent cached value of MiP's battery voltage.
Returns: Battery voltage, typically 4.0V (low) to 6.4V (full).
- MiP
- MiPChestLED
- MiPClapSettings
- MiPDebug
- MiPHardwareInfo
- MiPHeadLEDs
- MiPIRDongleCode
- MiPSoftwareVersion
- MiPStatus
- MiP_Battery
- MiP_ChestLED
- MiP_Clap
- MiP_EEPROM
- MiP_Gesture
- MiP_HeadLEDs
- MiP_Infrared
- MiP_Mode
- MiP_Motion
- MiP_Odometer
- MiP_Position
- MiP_Radar
- MiP_Serial
- MiP_Shake
- MiP_Sound
- MiP_Version
- MiP_Weight
- MiP_WiFi