from machine import Pin, SPI
import max7219
import time
spi = SPI(0, baudrate=10000000, polarity=1, phase=0, sck=Pin(2), mosi=Pin(3))
ss = Pin(5, Pin.OUT)
display = max7219.Matrix8x8(spi, ss, 1)
display.brightness(1)
scrolling_message = "HELLO CLAY I'M ANOUSHKA !!"
length = len(scrolling_message)
column = (length * 8)
display.fill(0)
display.show()
time.sleep(1)
while True:
for x in range(32, -column, -1):
display.fill(0)
display.text(scrolling_message ,x,0,1)
display.show()
time.sleep(0.05)