Raspberry Pi - Platform
Identify the error in this Python code for Raspberry Pi GPIO:
import RPi.GPIO as GPIO GPIO.setup(18, GPIO.OUT) GPIO.output(18, True)
import RPi.GPIO as GPIO GPIO.setup(18, GPIO.OUT) GPIO.output(18, True)
GPIO.setup()>, you must set the pin numbering mode with GPIO.setmode().GPIO.setmode(GPIO.BCM) or GPIO.setmode(GPIO.BOARD).15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions