|
|
|
@ -22,7 +22,7 @@ def test():
|
|
|
|
|
dc_pin = Pin(4)
|
|
|
|
|
rst_pin = Pin(17)
|
|
|
|
|
# Baud rate of 40000000 seems about the max
|
|
|
|
|
spi = SPI(2, baudrate=40000000, sck=Pin(18), mosi=Pin(23))
|
|
|
|
|
spi = SPI(1, baudrate=40000000, sck=Pin(14), mosi=Pin(13))
|
|
|
|
|
|
|
|
|
|
# Create the ILI9341 display:
|
|
|
|
|
display = Display(spi, dc=dc_pin, cs=cs_pin, rst=rst_pin)
|
|
|
|
@ -33,12 +33,12 @@ def test():
|
|
|
|
|
display.fill_rectangle(0, 168, 239, 151, color565(220, 27, 72))
|
|
|
|
|
|
|
|
|
|
# Load Marquee image
|
|
|
|
|
display.draw_image('images\Rototron128x26.raw', 56, 120, 128, 26)
|
|
|
|
|
display.draw_image('images/Rototron128x26.raw', 56, 120, 128, 26)
|
|
|
|
|
|
|
|
|
|
# Set up scrolling
|
|
|
|
|
display.set_scroll(top=100, bottom=152)
|
|
|
|
|
display.set_scroll(top=152, bottom=100)
|
|
|
|
|
|
|
|
|
|
spectrum = list(range(100, 153)) + list(reversed(range(100, 153)))
|
|
|
|
|
spectrum = list(range(152, 221)) + list(reversed(range(152, 220)))
|
|
|
|
|
while True:
|
|
|
|
|
for y in spectrum:
|
|
|
|
|
display.scroll(y)
|
|
|
|
|