"""
ILI9341 demo (shapes)
https://github.com/rdagger/micropython-ili9341
"""
from time import sleep
from ili9341 import Display, color565
from machine import Pin, SPI
def test():
spi = SPI(2, baudrate=32000000, sck=Pin(18), mosi=Pin(23), miso=Pin(19))
display = Display(spi, dc=Pin(33), cs=Pin(5), rst=Pin(32))
display.clear(color565(64, 0, 255))
sleep(1)
display.clear()
sleep(5)
display.cleanup()
test()