pemmican.power
- pemmican.power.reset_brownout()[source]
Returns
True
if the device-tree reports that a power brownout (undervolt condition) was the cause of the last reset. RaisesOSError
if the reset condition cannot be queried (e.g. if this is executed on a non-Raspberry Pi).
- pemmican.power.psu_max_current()[source]
Returns the maximum current negotiated with the PSU by the power supply in mA. Ideally this should be 5000 (indicating a power supply capable of 5V at 5A), but may be 3000 or lower. Raises
OSError
if the maximum current could not be queried (e.g. if this is executed on a non-Raspberry Pi).