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, 4)
display.brightness(1)
scrolling_message = "Next Station : Thane, Destination CSMT !!"
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)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT