Batería#

capacidad()#

The capacity(units) method reports the remaining capacity of the battery.

Parámetros

Descripción

unidades

The only valid unit is percent.

Devuelve: La capacidad restante de la batería como porcentaje.

Voltaje()#

The voltage(units) method reports the voltage of the battery.

Parámetros

Descripción

unidades

A valid voltageUnits type. The default is volt.

Devuelve: El voltaje en las unidades suministradas.