From 8a78311b5f00f735c4e06ab7a3f902e678390b2f Mon Sep 17 00:00:00 2001 From: makerph Date: Thu, 11 Aug 2022 11:48:43 +0800 Subject: [PATCH] Update ST7789.py change screen width, height and rotation --- pwnagotchi/ui/hw/libs/pimoroni/displayhatmini/ST7789.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/ui/hw/libs/pimoroni/displayhatmini/ST7789.py b/pwnagotchi/ui/hw/libs/pimoroni/displayhatmini/ST7789.py index 1c0ae4f3..9f4ab989 100644 --- a/pwnagotchi/ui/hw/libs/pimoroni/displayhatmini/ST7789.py +++ b/pwnagotchi/ui/hw/libs/pimoroni/displayhatmini/ST7789.py @@ -90,8 +90,8 @@ ST7789_PWCTR6 = 0xFC class ST7789(object): """Representation of an ST7789 TFT LCD.""" - def __init__(self, port, cs, dc, backlight=None, rst=None, width=240, - height=240, rotation=90, invert=True, spi_speed_hz=4000000, + def __init__(self, port, cs, dc, backlight=None, rst=None, width=320, + height=240, rotation=0, invert=True, spi_speed_hz=4000000, offset_left=0, offset_top=0): """Create an instance of the display using SPI communication.