#!/bin/bash
#
# a bash script making an LED blink. It uses the wiringPi gpio command
# the -g option allows to use the Broadcom pin numbers (the ones written
# on the cobbler)
#

PIN=17

gpio -g mode $PIN out

while true; do
  gpio -g write $PIN 1
  sleep 0.5
  gpio -g write $PIN 0
  sleep 0.5
done
