Skip to content

Instantly share code, notes, and snippets.

@sobuildit
Created July 4, 2020 20:52
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 sobuildit/e362a410d0072e24986ebbcc4135b848 to your computer and use it in GitHub Desktop.
Save sobuildit/e362a410d0072e24986ebbcc4135b848 to your computer and use it in GitHub Desktop.
GPIO Setup
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