from machine import Pin
import time
 
ledr = Pin(23, Pin.OUT)
ledy = Pin(22, Pin.OUT)
ledg = Pin(21, Pin.OUT)

Leds = [ledr, ledy, ledg]

for led in Leds:
    led.value(0)

delays = [2,0.5,1]

while True:
    for i in range(3):
        led_on  = Leds[i]
        led_off = Leds[i-1]
        led_on.value(1)
        led_off.value(0)
        time.sleep(delays[i])

esp:VIN
esp:GND.2
esp:D13
esp:D12
esp:D14
esp:D27
esp:D26
esp:D25
esp:D33
esp:D32
esp:D35
esp:D34
esp:VN
esp:VP
esp:EN
esp:3V3
esp:GND.1
esp:D15
esp:D2
esp:D4
esp:RX2
esp:TX2
esp:D5
esp:D18
esp:D19
esp:D21
esp:RX0
esp:TX0
esp:D22
esp:D23
led1:A
led1:C
led2:A
led2:C
led3:A
led3:C