pub const fn estimate_percent(millivolts: u16) -> u8Expand description
Rough state of charge for a single Li-ion cell from its voltage, in %.
Piecewise-linear over a typical resting-voltage curve. It is only an estimate: it reads high while charging (the charger holds ~4.2 V) and low under heavy load (Wi-Fi bursts, speaker).