TINKER BOARD 2S ANDROID CONTROL GPIO

TINKER BOARD 2S ANDROID CONTROL GPIO

I. Access Tinker Board 2S with root permistion

Plug USB OTG from Tinker Board 2S to PC

On Host

adb root (root access)

adb shell (Enter as root)

su

mount -o rw,remount / (for permission write access)

II. Simple control gpio on Tinker Board 2S with root permistion

Using command on terminal

cd /sys/class/leds

# Control act-led on (Led near power led)
echo "1" >> act-led/brightness
# Control act-led off (Led near power led)
echo "0" >> act-led/brightness

#!/system/bin/sh
echo 1 >> act-led/brightness

Control gpio using shell script

  • gpio_on.sh file
#!/system/bin/sh
echo 1 >> act-led/brightness

Run shell script

sh gpio_on.sh

Fanning
develop
GitHub
Homepage
Issues
Download

This Software is under the terms of MIT License.