# Program control matrice 8x8 cu controler # Max 7219 # Conexiuni pini # SCK=GP 14 DIN =GP 15 cs=GP 13 SPI 1 # Se utilizeaza libraria max7219.py # Import MicroPython libraries of PIN and SPI from machine import Pin, SPI import time import max7219 spi = SPI(1, baudrate=400000, polarity=1, phase=0, sck=Pin(14), mosi=Pin(15)) ss = Pin(13, Pin.OUT) # Create matrix display instant, which has four MAX7219 devices. display = max7219.Matrix8x8(spi, ss, 3) # nr celule display.brightness(5) mesaj = "Sisteme cu Microprocesoare" length = len(mesaj) column = (length * 8) display.fill(0) display.show() time.sleep(1) while 1: for i in range(32, -column, -1): display.fill(0) display.text(mesaj ,i,0,1) display.show() time.sleep(0.1)