Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 20 lines (12 sloc) 0.45 kb
#!/bin/bash
set -e
echo 17 > /sys/class/gpio/unexport 2> /dev/null || /bin/true
echo 17 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio17/direction
echo 21 > /sys/class/gpio/unexport 2> /dev/null || /bin/true
echo 21 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio21/direction
echo 22 > /sys/class/gpio/unexport 2> /dev/null || /bin/true
echo 22 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio22/direction
echo Done
Jump to Line
Something went wrong with that request. Please try again.