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
import time | |
import RPi.GPIO as GPIO | |
# We are going to use the BCM numbering | |
GPIO.setmode(GPIO.BCM) | |
# Set pin 26 as input using pull up resistor | |
GPIO.setup(26, GPIO.IN, pull_up_down=GPIO.PUD_UP) |