Skip to content

Instantly share code, notes, and snippets.

@elliottcordo
Last active October 9, 2015 13:17
Show Gist options
  • Save elliottcordo/87ad8a34ea305915b67d to your computer and use it in GitHub Desktop.
Save elliottcordo/87ad8a34ea305915b67d to your computer and use it in GitHub Desktop.
raspberry pi basic IO
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