from machine import Pin
import time
segmento_A = Pin(16, Pin.OUT)
segmento_B = Pin(17, Pin.OUT)
segmento_C = Pin(15, Pin.OUT)
segmento_D = Pin(14, Pin.OUT)
segmento_E = Pin(13, Pin.OUT)
segmento_F = Pin(21, Pin.OUT)
segmento_G = Pin(22, Pin.OUT)
contador = ["0000001", "1001111", "0010010", "0000110", "1001100", "0100100", "0100000", "0001111", "0000000", "0000100"]
while True:
for numero in contador:
segmento_A.value(int(numero[0]))
segmento_B.value(int(numero[1]))
segmento_C.value(int(numero[2]))
segmento_D.value(int(numero[3]))
segmento_E.value(int(numero[4]))
segmento_F.value(int(numero[5]))
segmento_G.value(int(numero[6]))
time.sleep(1)