from machine import Pin
from time import sleep
Plist = [Pin(0,Pin.OUT),
Pin(1,Pin.OUT),
Pin(2,Pin.OUT),
Pin(3,Pin.OUT),
Pin(4,Pin.OUT),
Pin(5,Pin.OUT),
Pin(6,Pin.OUT)]
Slist =["1111110","0110000","1101101","1111001","0110011"
,"1011011","1011111","1110000","1111111","1111011"]
def s7(number):
for i in range(7):
Plist[i].value(int(Slist[number][i]))
while True:
for i in range(10):
s7(i)
sleep(1)
for i in range(10):
s7(8-i)
sleep(1)
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
sevseg1:COM.1
sevseg1:COM.2
sevseg1:A
sevseg1:B
sevseg1:C
sevseg1:D
sevseg1:E
sevseg1:F
sevseg1:G
sevseg1:DP