Home » DEVELOPERS » Programming the MRduino with Arduino » battery() – API arduino

battery()

Description

read the battery voltage (V).

Syntax

battery()

Parameters

None.

Returns

Voltage value in volt (float type)

Exemple

# read the battery level
level = battery();