from machine import Pin
from time import sleep
a=Pin(0,Pin.OUT)
b=Pin(1,Pin.OUT)
c=Pin(2,Pin.OUT)
d=Pin(3,Pin.OUT)
e=Pin(4,Pin.OUT)
f=Pin(5,Pin.OUT)
g=Pin(6,Pin.OUT)
seg=[a,b,c,d,e,f,g]
def Disp_Num(Num):
match Num:
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
while True:
Disp_Num(0)