Changes

Jump to navigation Jump to search

X728-script

224 bytes added, 22 March
'''[NOTE]:'''
1. The script now supports the Raspberry Pi OS '''BOOKWORM ''' version. You just need to '''uninstall''' the original script and '''reinstall''' it. Please refer to the following: OPen ternimal window, do then run the following to support bookwormcommand:
<pre>
1. First go back to the directory where you originally installed mv x728-script, you can see the x728-script folder-old2git clone https://github. Then run the following command:com/geekworm-com/x728-script
cd x728-script
rm x728-softsd.sh x728-v1.x-softsd.sh x728-v2.x-softsd.sh -f
git pull origin
chmod +x *.sh
sudo cp -f . /x728-v1.x-softsd.sh /usr/local/bin/sudo cp -f . /x728-v2.x-softsduninstall.sh /usr/local/bin/sudo reboot
</pre>
Then just follow the installation process below.
 
2. The current installation script also supports Raspberry Pi 5 hardware.
==OS that has been tested==
x728off
===Uninstall===
Run the following command to uninstall all:
./uninstall.sh
===Set and Read the RTC time===
Refer to [[How to enable RTC]]
 
==How to Use GPIO16 to control battery charging==
1. This feature is only newly added from '''Version 2.5'''
<pre style="color:blue">
# Sample shell command
 GPIO=16 # Read the /sys/kernel/debug/gpio file to get the actual GPIO pinGPIO=$(cat /sys/kernel/debug/gpio | grep "GPIO$GPIO" | awk -F'gpio-' '{print $2}' | awk -F' ' '{print $1}')echo "16$GPIO" > /sys/class/gpio$GPIO/exportecho "out" > /sys/class/gpio/gpio16gpio$GPIO/direction
# Enable charging
echo "1" > /sys/class/gpio/gpio16gpio$GPIO/value
# Disable charging
echo "0" > /sys/class/gpio/gpio16gpio$GPIO/value
</pre>

Navigation menu