Skip to content

Instantly share code, notes, and snippets.

@sfaxon
Created August 13, 2015 01:39
Show Gist options
  • Save sfaxon/fca2807527c8aa87dfa0 to your computer and use it in GitHub Desktop.
Save sfaxon/fca2807527c8aa87dfa0 to your computer and use it in GitHub Desktop.
Raspberry pi pin blink
import RPi.GPIO as GPIO
import time
print GPIO.VERSION
GPIO.setmode(GPIO.BOARD)
GPIO.setup(18, GPIO.OUT)
GPIO.output(18, True)
time.sleep(4)
GPIO.output(18, False)
time.sleep(4)
GPIO.output(18, True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment