Class «battery»
This article is automatically translated from Russian by Google Translator.
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();
brick.battery().readVoltage();