from machine import Pin,Timer
from time import sleep
LED_RED=Pin(0,Pin.OUT)
LED_GREEN=Pin(1,Pin.OUT)
LED_PURPLE=Pin(9,Pin.OUT)
LED_YELLOW=Pin(13,Pin.OUT)
i=0
while True:
    if i%2==0:
        LED_RED.toggle()
        sleep(0.2)
        LED_RED.toggle()
        LED_GREEN.toggle()
        sleep(0.3)
        LED_GREEN.toggle()
        i+=1
    else:
        sleep(0.5)
        LED_PURPLE.toggle()
        sleep(0.5)
        LED_PURPLE.toggle()
        LED_YELLOW.toggle()
        sleep(0.5)
        LED_YELLOW.toggle()
        i+=1











'''
single led blink
while True:
    LED.toggle()
    sleep(0.5)
'''



'''
tim=Timer()
def Flash_LED(timer):
    global LED
    LED.toggle()
tim.init(freq=2.0,mode=Timer.PERIODIC,callback=Flash_LED)
'''
Loading
pi-pico-w