![Seli MOD503 Скачать руководство пользователя страница 7](http://html1.mh-extra.com/html/seli/mod503/mod503_manual_1237008007.webp)
print "******************"
print "Voltage:%5.2fV" % readVoltage(bus)
print "Battery:%5i%%" % readCapacity(bus)
if readCapacity(bus) == 100:
print "Battery FULL"
if readCapacity(bus) < 20:
print "Battery LOW"
print "******************"
time.sleep(2)
Create a new Bat.py file, and then run the command in the terminal:
sudo python Bat.py
Now you get the battery power percentage and battery voltage information.
FAQ