from machine import Pin
import time
g1 =Pin(0,Pin.OUT)
g2 =Pin(3,Pin.OUT)
g3 =Pin(8,Pin.OUT)
g4 =Pin(11,Pin.OUT)

y1 =Pin(1,Pin.OUT)
y2 =Pin(4,Pin.OUT)
y3 =Pin(7,Pin.OUT)
y4 =Pin(10,Pin.OUT)

r1 =Pin(2,Pin.OUT)
r2 =Pin(5,Pin.OUT)
r3 =Pin(6,Pin.OUT)
r4 =Pin(9,Pin.OUT)

a=Pin(16,Pin.OUT)
b=Pin(17,Pin.OUT)
c=Pin(18,Pin.OUT)
d=Pin(19,Pin.OUT)
e=Pin(20,Pin.OUT)
g=Pin(21,Pin.OUT)
f=Pin(22,Pin.OUT)

def one():
    a.value(0)
    b.value(1)
    c.value(1)
    d.value(0)
    e.value(0)
    f.value(0)
    g.value(0)
def two():
    a.value(1)
    b.value(1)
    c.value(0)
    d.value(1)
    e.value(1)
    f.value(0)
    g.value(1)
def three():
    a.value(1)
    b.value(1)
    c.value(1)
    d.value(1)
    e.value(0)
    f.value(0)
    g.value(1)

while True:
    r2.on()
    r3.on()
    r4.on()
    r1.off()
    g1.value(1)
    three()
    time.sleep(1)
    two()
    time.sleep(1)
    one()
    time.sleep(1)
    g1.off()
    y1.value(1)
    two()
    time.sleep(1)
    one()
    time.sleep(1)
    y1.off()
    r1.value(1)
    three()
    time.sleep(1)
    two()
    time.sleep(1)
    one()
    time.sleep(1)
$abcdeabcde151015202530354045505560fghijfghij
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT
pico:GP0
pico:GP1
pico:GND.1
pico:GP2
pico:GP3
pico:GP4
pico:GP5
pico:GND.2
pico:GP6
pico:GP7
pico:GP8
pico:GP9
pico:GND.3
pico:GP10
pico:GP11
pico:GP12
pico:GP13
pico:GND.4
pico:GP14
pico:GP15
pico:GP16
pico:GP17
pico:GND.5
pico:GP18
pico:GP19
pico:GP20
pico:GP21
pico:GND.6
pico:GP22
pico:RUN
pico:GP26
pico:GP27
pico:GND.7
pico:GP28
pico:ADC_VREF
pico:3V3
pico:3V3_EN
pico:GND.8
pico:VSYS
pico:VBUS
led1:A
led1:C
led2:A
led2:C
led3:A
led3:C
sevseg1:COM.1
sevseg1:COM.2
sevseg1:A
sevseg1:B
sevseg1:C
sevseg1:D
sevseg1:E
sevseg1:F
sevseg1:G
sevseg1:DP