Changes

Jump to navigation Jump to search

X728-script

808 bytes added, 2 April
sed -i 's/xPWR.sh 0 5 12/xPWR.sh 4 5 12/g' x728-pwr.service
sed -i 's/xSoft.sh 0 26/xSoft.sh 4 26/g' install-sss.sh
sed -i 's/xSoft.sh 0 16/xSoft.sh 4 16/g' install-sss-v.xv1.sh
===Create the x728-pwr service===
* for x728 v2.5 v2.3 v2.2 v2.1 v2.0
./install-sshsss.sh
* for x728 v1.2 v1.3
./install-sshsss-v1.sh
Then you can run <code>x728off</code> to execute software shutdown as follows
===Sample Files===
The example programs are only suitable for advanced players, and you can construct your own usage scenarios according to the example programs.
 
'''[PS]'''
 
The old example code uses the RPi.GPIO library, which is currently not supported in kernel 6.6.x, so you may encounter an error when running the following code
sudo python3 sample/x728-v2.x-plsd.py
 
Note that you need to provide a different gpiochip number on Pi 0,1,2,3,4 ('''0''') and Pi 5 ('''4''').
 
We recommend that you change your example program to use the libgpiod library, and libgpiod is officially recommended, and we also provide ONLY ONE example using the libgpiod library ('''x728-v2.x-plsd-gpiod.py'''), which you can run as follows:
 
sudo python3 sample/x728-v2.x-plsd-libgpiod.py
 
For other example programs that use the RPi.GPIO library, it is recommended that you change to the libgpiod version if it runs incorrectly.
 
In fact, you can change those sample program to shell
Each example program demonstrates a different function:

Navigation menu