public
anonymous / gist:4728721
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# Blinkly Script
# This script will blink a LED ON and OFF again.
#
# Created on Feb 2, 2013 by Steven Smethurst
# Version: 1.00
#
# Directions
# Connect a LED between Pin 6 ( Ground) and pin 12 (GPIO18)
#
 
from time import sleep
import RPi.GPIO as GPIO
 
# print about info
print "Blinky script, v1.0"
 
GPIO.setmode(GPIO.BOARD)
GPIO.setup(12, GPIO.OUT )
while 1:
GPIO.output(12, GPIO.HIGH )
sleep(1)
GPIO.output(12, GPIO.LOW )
sleep(1)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.