from machine import Pin, SPI
from max7219 import Matrix8x8
import time
spi = SPI(1, sck=Pin(18), mosi=Pin(22))
cs = Pin(5, Pin.OUT)
display = Matrix8x8(spi, cs, 4) # 4 matrices para que quepa "Hola"
display.brightness(5)
texto = " YONAHIR KATRINN MARTINEZ ROMERO"
ancho_texto = len(texto) * 8
while True:
for i in range(32, -ancho_texto, -1):
display.fill(0)
display.text(texto, i, 0 ,1)
display.show()
time.sleep(0.1)