Last active
October 9, 2015 13:17
-
-
Save elliottcordo/87ad8a34ea305915b67d to your computer and use it in GitHub Desktop.
raspberry pi basic IO
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 | |
from time import sleep | |
GPIO.setmode(GPIO.BOARD) | |
GPIO.setup(7, GPIO.OUT) | |
while True: | |
sleep(.5) | |
GPIO.output(7,True) | |
sleep(.5) | |
GPIO.output(7,False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment