Raspberry Pi - LED and Button Projects
What will be the output behavior of this Python code controlling two LEDs on GPIO pins 18 and 23?
import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.OUT) GPIO.setup(23, GPIO.OUT) GPIO.output(18, GPIO.HIGH) time.sleep(1) GPIO.output(23, GPIO.HIGH) time.sleep(1) GPIO.output(18, GPIO.LOW) time.sleep(1) GPIO.output(23, GPIO.LOW)
