#Library
from gpiozero import LED
from time import sleep
#Component setup
green_led = LED(18)
red_led = LED(14)
#Algorith
red_led.on()
sleep(10)
red_led.off()
green_led.on()
sleep(10)
green_led.blink(on_time=0.5, off_time=0.5, n=5)
sleep(5)
green_led.off()
red_led.on()
No comments:
Post a Comment