Raspberry Pi - gpiozero Library
Which of the following is the correct way to set up a GPIO pin as input for a PIR sensor in Python using RPi.GPIO?
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
# What goes here?
Which of the following is the correct way to set up a GPIO pin as input for a PIR sensor in Python using RPi.GPIO?
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
# What goes here?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions