Skip to content

Instantly share code, notes, and snippets.

@jsloyer
Created February 1, 2016 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsloyer/82e3edac827cc18085b6 to your computer and use it in GitHub Desktop.
Save jsloyer/82e3edac827cc18085b6 to your computer and use it in GitHub Desktop.
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(17, GPIO.OUT)
GPIO.output(17, True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment