From 8652d016344ed91a13e4571be5a52bc4da3491ab Mon Sep 17 00:00:00 2001 From: makerph Date: Thu, 11 Aug 2022 13:39:20 +0800 Subject: [PATCH] Update ST7789.py fix: added backlight pin --- 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 9f4ab989..650d30fb 100644 --- a/pwnagotchi/ui/hw/libs/pimoroni/displayhatmini/ST7789.py +++ b/pwnagotchi/ui/hw/libs/pimoroni/displayhatmini/ST7789.py @@ -90,7 +90,7 @@ ST7789_PWCTR6 = 0xFC class ST7789(object): """Representation of an ST7789 TFT LCD.""" - def __init__(self, port, cs, dc, backlight=None, rst=None, width=320, + def __init__(self, port, cs, dc, backlight, rst=None, width=320, height=240, rotation=0, invert=True, spi_speed_hz=4000000, offset_left=0, offset_top=0):