From 0e7b756a6e53dfad1af715c9e052f9613a07cb5c Mon Sep 17 00:00:00 2001 From: makerph Date: Fri, 12 Aug 2022 01:41:14 +0800 Subject: [PATCH] Update ST7789.py change spi speed --- pwnagotchi/ui/hw/libs/pimoroni/displayhatmini/ST7789.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/ui/hw/libs/pimoroni/displayhatmini/ST7789.py b/pwnagotchi/ui/hw/libs/pimoroni/displayhatmini/ST7789.py index 650d30fb..37a53e12 100644 --- a/pwnagotchi/ui/hw/libs/pimoroni/displayhatmini/ST7789.py +++ b/pwnagotchi/ui/hw/libs/pimoroni/displayhatmini/ST7789.py @@ -91,7 +91,7 @@ class ST7789(object): """Representation of an ST7789 TFT LCD.""" def __init__(self, port, cs, dc, backlight, rst=None, width=320, - height=240, rotation=0, invert=True, spi_speed_hz=4000000, + height=240, rotation=0, invert=True, spi_speed_hz=60 * 1000 * 1000, offset_left=0, offset_top=0): """Create an instance of the display using SPI communication.