then
sudo reboot
You can get the following python file in /home/pi/ fold:
x728bat.py # Reading battery voltage
x728pld.py # Testing AC power off/loss or power adapter failure detection
5. Set and Read the RTC time
6. How to reading battery voltage and percentage, this is the sample code, you can modify it by your request.
sudo python x728bat_v1.2.pyor sudo pyton /home/pi/x728bat_v1.2.py You can get the following python file in /home/pi/ fold: x728bat.py # Reading battery voltage x728pld.py # Testing AC power off/loss or power adapter failure detection
User Guide: https://github.com/geekworm-com/x728 to know more details;