![Teguar TP-RC55-08 Quick Installaion Manual Download Page 12](http://html1.mh-extra.com/html/teguar/tp-rc55-08/tp-rc55-08_quick-installaion-manual_1075462012.webp)
Installation Guide TP-RC55-08
www.teguar.com
Page 12
Appendix
The light bar control script is located on the root file system and the software
programmer can use those script command to control light bar behavior.
Here are the script and sample code for control method.
GreenOn.sh
#!/bin/sh
echo "<------- ibase light bar config start ------->"
export PATH="/sbin:/system/sbin:/system/bin:/system/xbin"
echo $PATH
#until cat /mnt/sdcard/ib_led/GreenOn > /dev/null; do
until cat /data/data/com.example.hellojni/files/GreenOn.txt > /dev/null; do
echo "check internal storage..."
sleep 1
done
cd /sys/class/gpio/
echo 198 > export
cd gpio198
echo out > direction
echo 0 > value
echo 1 > value
echo 0 > value
rm /data/data/com.example.hellojni/files/GreenOn.txt
echo "Green On done"
GrenOff.sh
#!/bin/sh
echo "<------- ibase light bar config start ------->"
export PATH="/sbin:/system/sbin:/system/bin:/system/xbin"
echo $PATH
# using internal storage
until cat /data/data/com.example.hellojni/files/GreenOff.txt > /dev/null; do
# using external storage
# until cat /mnt/sdcard/ib_led/GreenOff > /dev/null; do
# echo "check /mnt/sdcard/ib_led/GreenOff..."