view py/setup_gpio.sh @ 264:205809a8872f

integer division
author Matt Johnston <matt@ucc.asn.au>
date Sat, 13 Jun 2015 21:56:51 +0800
parents 659953f2ee03
children 4632018d1c80
line wrap: on
line source

#!/bin/sh

# this must run as root

PINS="17"

for PIN in $PINS; do
    echo $PIN > /sys/class/gpio/export
done