Skip to content

MiP_Battery

github-actions[bot] edited this page Aug 10, 2026 · 16 revisions

Class MiP_Battery

MiP_Battery provides one function only, to report MiP's cached battery voltage.

Members & Functions

Type Signature Description
variable MiP & m_mip A private variable that stores a reference to the main MiP class.
function MiP_Battery(MiP &mip) Constructs the battery manager.
function float readVoltage() Reads MiP's cached battery voltage. The voltage is read from MiP's periodic status updates and is never more than 30 seconds old.

Clone this wiki locally