Class «battery»

Provides access to information about the battery or power supply unit.

readVoltage

Returns the current-voltage of the battery (or power supply) in volts.

Syntax

brick.battery().readVoltage();

Last updated

Was this helpful?