Back to Parent
import RPi.GPIO as GPIO
import sys, os, time
from subprocess import PIPE, Popen
GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP)
input_state = GPIO.input(18)
if input_state == False:
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment.