Created
July 4, 2020 20:52
-
-
Save sobuildit/e362a410d0072e24986ebbcc4135b848 to your computer and use it in GitHub Desktop.
GPIO Setup
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 | |
# GPIO setup for front panel button | |
panelButton = 14 | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setup(panelButton, GPIO.IN, pull_up_down=GPIO.PUD_UP) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment