from max7219 import Matrix8x8
from machine import Pin, SPI
from utime import sleep
sleep(0.1) # Wait for USB to become ready
print("Hello, Pi Pico!")
din = Pin(11, Pin.OUT)
cs = Pin(5, Pin.OUT)
clk = Pin(10, Pin.OUT)
spi = SPI(1, baudrate=10000000, polarity=1, phase=0, sck=clk, mosi=din)
display = Matrix8x8(spi, cs, 16)
display.text(' 12345678',0,0,1)
display.show()
while True:
sleep(1)