You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP) #input pin is normally pulled up to 3.3V so after reading the input value, FALSE will be returned if switch is pressed