from machine import Pin
from time import sleep
led1 = Pin(18,Pin.OUT)
led2 = Pin(19,Pin.OUT)
led3 = Pin(20,Pin.OUT)
led4 = Pin(21,Pin.OUT)
while True:
led1.value(not led1.value())
led2.value(not led2.value())
led3.value(not led3.value())
led4.value(not led4.value())
sleep(200)
led1.value(not led1.value())
led2.value(not led2.value())
led3.value(not led3.value())
led4.value(not led4.value())
sleep(200)