from machine import Pin
from time import sleep as s
t = 1
a = Pin(2, Pin.OUT)
b = Pin(4, Pin.OUT)
c = Pin(5, Pin.OUT)
d = Pin(12, Pin.OUT)
e = Pin(13, Pin.OUT)
f = Pin(14, Pin.OUT)
g = Pin(15, Pin.OUT)
dp = Pin(0, Pin.OUT)
letras = [a, b, c, d, e, f, g, dp]
def apagar():
for i in letras:
i.on()
s(t)
def estagio1():
for i in letras:
i.off()
s(t)
def estagio2():
for i in letras:
i.on()
s(t)
while True:
apagar()
estagio1()
estagio2()