Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ###
- ## download and make https://github.com/6by9/rpi3-gpiovirtbuf
- ## put into PATH or fill in below
- RPI3_GPIOVIRTBUF=/home/pi/rpi3-gpiovirtbuf/rpi3-gpiovirtbuf2
- if which rpi3-gpiovirtbuf 2>&1 > /dev/null; then
- RPI3_GPIOVIRTBUF=rpi3-gpiovirtbuf
- elif [ ! -f "$RPI3_GPIOVIRTBUF" ]; then
- echo "Cant find rpi3-gpiovirtbuf - download from https://github.com/6by9/rpi3-gpiovirtbuf"
- exit 1
- fi
- if [ "x$1" == "x" ]; then
- echo "Ussage: $0 on or $0 off"
- exit 1
- fi
- if [ "$1" == "1" ] || [ "$1" == "ON" ] || [ "$1" == "On" ] || [ "$1" == "on" ]; then
- $RPI3_GPIOVIRTBUF g 134 1 1 0 1
- else
- $RPI3_GPIOVIRTBUF g 134 0 1 0 1
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement