Created
September 19, 2014 21:24
-
-
Save lesp/dd8f2e0cdeac6397600f to your computer and use it in GitHub Desktop.
Setup inputs
This file contains hidden or 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
GPIO.setup(r13,GPIO.IN, pull_up_down = GPIO.PUD_DOWN) | |
GPIO.setup(r39,GPIO.IN, pull_up_down = GPIO.PUD_DOWN) | |
GPIO.setup(r67,GPIO.IN, pull_up_down = GPIO.PUD_DOWN) | |
GPIO.setup(r72,GPIO.IN, pull_up_down = GPIO.PUD_DOWN) | |
GPIO.setup(s38,GPIO.IN, pull_up_down = GPIO.PUD_DOWN) | |
GPIO.setup(s47,GPIO.IN, pull_up_down = GPIO.PUD_DOWN) | |
GPIO.setup(s68,GPIO.IN, pull_up_down = GPIO.PUD_DOWN) | |
GPIO.setup(s99,GPIO.IN, pull_up_down = GPIO.PUD_DOWN) | |
GPIO.setup(button,GPIO.IN, pull_up_down = GPIO.PUD_DOWN) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See my fork for a shorter version, using a list of inputs to handle repetition.