Raspberry Pi - gpiozero Library
Identify the error in this code that tries to blink an LED on pin 5:
from gpiozero import LED from time import sleep led = LED(5) led.blink(on_time=0.5, off_time=0.5) sleep(2) led.off()
Identify the error in this code that tries to blink an LED on pin 5:
from gpiozero import LED from time import sleep led = LED(5) led.blink(on_time=0.5, off_time=0.5) sleep(2) led.off()
led.close() to free GPIO pins after use.led.close() to clean GPIO -> Option B15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions