diff --git a/demo_orientation.py b/demo_orientation.py index aae9f26..0001cec 100644 --- a/demo_orientation.py +++ b/demo_orientation.py @@ -13,7 +13,7 @@ def test(): # Baud rate of 40000000 seems about the max spi = SPI(1, baudrate=40000000, sck=Pin(14), mosi=Pin(13)) - display = Display(spi, dc=Pin(4), cs=Pin(5), rst=Pin(19), + display = Display(spi, dc=Pin(4), cs=Pin(16), rst=Pin(17), width=240, height=320, rotation=0) display.draw_text(0, 0, 'Espresso Dolce 18x24', espresso_dolce, color565(0, 255, 255)) @@ -21,7 +21,7 @@ def test(): color565(255, 255, 0), landscape=True) sleep(5) - display = Display(spi, dc=Pin(4), cs=Pin(5), rst=Pin(19), + display = Display(spi, dc=Pin(4), cs=Pin(16), rst=Pin(17), width=320, height=240, rotation=90) display.draw_text(0, 215, 'Espresso Dolce 18x24', espresso_dolce, color565(255, 0, 255)) @@ -29,7 +29,7 @@ def test(): color565(255, 255, 255), landscape=True) sleep(5) - display = Display(spi, dc=Pin(4), cs=Pin(5), rst=Pin(19), + display = Display(spi, dc=Pin(4), cs=Pin(16), rst=Pin(17), width=240, height=320, rotation=180) display.draw_text(0, 0, 'Espresso Dolce 18x24', espresso_dolce, color565(0, 0, 255)) @@ -37,7 +37,7 @@ def test(): color565(255, 0, 0), landscape=True) sleep(5) - display = Display(spi, dc=Pin(4), cs=Pin(5), rst=Pin(19), + display = Display(spi, dc=Pin(4), cs=Pin(16), rst=Pin(17), width=320, height=240, rotation=270) display.draw_text(0, 215, 'Espresso Dolce 18x24', espresso_dolce, color565(225, 0, 128))