from machine import Pin
from time import sleep
Led = Pin(1, Pin.OUT)
Led2 = Pin(5, Pin.OUT)
Led3 = Pin(9, Pin.OUT)
def show_light(active_pin, duration):
Led.value(0)
Led2.value(0)
Led3.value(0)
active_pin.value(1)
sleep(duration)
while True:
show_light(Led3, 3.0)
show_light(Led2, 1.0)
show_light(Led, 1.5)
Led.value(1)
Led2.value(1)
sleep(1.0)