from machine import SPI, Pin, ADC
import time
import max7219
import machine
spi = SPI(1, baudrate=1000000, polarity=1, phase=0, sck=Pin(17, Pin.OUT), mosi=Pin(2, Pin.OUT))
ss = Pin(21, Pin.OUT)
pot = ADC(Pin(15, Pin.IN))
display = max7219.Matrix8x8(spi, ss, 1)
text = input("Enter text: ")
delay = (pot.read()/2**4)/1000
while True:
delay = (pot.read()/2**4)/1000
for x in range(0, len(text) * 8, 8):
display.text(text, -x, 1, 1)
display.show()
delay = (pot.read()/2**2)/1000
time.sleep(delay)
display.text(text, -x, 1, 0)
display.show()
time.sleep(1 + delay)
esp:0
esp:2
esp:4
esp:5
esp:12
esp:13
esp:14
esp:15
esp:16
esp:17
esp:18
esp:19
esp:21
esp:22
esp:23
esp:25
esp:26
esp:27
esp:32
esp:33
esp:34
esp:35
esp:3V3
esp:EN
esp:VP
esp:VN
esp:GND.1
esp:D2
esp:D3
esp:CMD
esp:5V
esp:GND.2
esp:TX
esp:RX
esp:GND.3
esp:D1
esp:D0
esp:CLK
matrix1:V+
matrix1:GND
matrix1:DIN
matrix1:CS
matrix1:CLK
matrix1:V+.2
matrix1:GND.2
matrix1:DOUT
matrix1:CS.2
matrix1:CLK.2
pot1:VCC
pot1:SIG
pot1:GND