Changes

Jump to navigation Jump to search

X708-Software

45 bytes added, 16:14, 27 April 2022
5. How to reading battery voltage and percentage, this is the sample code, you can modify it by your request.
cd <span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~ $</span> cd x708v2/raspberry-pi-os/ <span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~/x708v2/raspberry-pi-os $ </span>sudo python3 bat.py
<pre>
******************
6. Testing AC power off/loss or power adapter failure detection (PLD function)
cd <span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~ $</span> cd x708v2/raspberry-pi-os/ <span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~/x708v2/raspberry-pi-os $ </span>sudo python3 pld.py 
<pre>
1.Make sure your power adapter is connected
Connection closing...Socket close.
 
8. How to programming to get ASD (automatically shut down) function on V1.2 version?
python3 /home/pi/x708/x708asd.py &
 
pi@raspberrypi:~ $ cd x708v2/raspberry-pi-os/
pi@raspberrypi:~/x708v2/raspberry-pi-os $ sudo python3 plsd.py
Testing Started---AC Power Loss OR Power Adapter Failure---
Shutdown in 5 seconds
Connection closing...Socket close.

Navigation menu