#!/bin/bash # GPIO configurator for ENER314. # Script by Thomas Galea. # galeatd@gmail.com # tdgalea.co.uk for pin in 17 22 23 24 25 27;do echo "$pin">/sys/class/gpio/export sleep 0.05 echo "out">/sys/class/gpio/gpio$pin/direction done exit 0