Battery

Class Documentation

class compLib.Battery.Battery

Used to interact with the battery

static percent() → int

Get battery percentage

Returns

Percentage between 0 and 100

Return type

int

Examples

Printing percentage

from compLib.Battery import Battery

print(Battery.percent())