VBATT on pysense and pytrack
-
Hi Folks, i just received some pytrack and pysense baords, they work great!
I am just wondering whether there is also a line connected from the charging circuit to one of the GPIOs with the battery voltage (as it was on the expansion board). This would be very handy, since the deepsleep mode is also available on these boards.
Cheers
Chris
-
Use pytrack.py from https://github.com/pycom/pycom-libraries/tree/master/pytrack/lib.
Copy pytrack.py to /flash/lib.Test:
import pytrack
py = pytrack.Pytrack()
print( '{}V'.format(py.read_battery_voltage()))Dispaly is 4.686702V
hope it's help you.