Created
February 7, 2013 05:10
-
-
Save anonymous/4728721 to your computer and use it in GitHub Desktop.
Raspberry PI blinky script http://www.abluestar.com/blog/raspberry-pi-and-the-gpio-pins/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment