Created
September 26, 2012 04:03
-
-
Save ryanmcgreevy/3785928 to your computer and use it in GitHub Desktop.
raspberry pi led blink
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
import RPi.GPIO as GPIO | |
import time | |
# to use Raspberry Pi board pin numbers | |
GPIO.setmode(GPIO.BOARD) | |
# set up GPIO output channel | |
GPIO.setup(26, GPIO.OUT) | |
while 1: | |
# set RPi board pin 26 high | |
GPIO.output(26, True) | |
time.sleep(.5) | |
GPIO.output(26, False) | |
time.sleep(.5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment