Home » Programming (API) » Programming the MRPi1 with python » battery()

battery()

Description

Read the battery voltage (V).

Syntax

battery()

Parameters

None.

Returns

Voltage value in volt (float type)

Exemple

from mrpiZ_lib import *
import time

#read the battery voltage

Volt = battery()

print Volt