mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Update ST7789.py
fix: added backlight pin
This commit is contained in:
@ -90,7 +90,7 @@ ST7789_PWCTR6 = 0xFC
|
|||||||
class ST7789(object):
|
class ST7789(object):
|
||||||
"""Representation of an ST7789 TFT LCD."""
|
"""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,
|
height=240, rotation=0, invert=True, spi_speed_hz=4000000,
|
||||||
offset_left=0,
|
offset_left=0,
|
||||||
offset_top=0):
|
offset_top=0):
|
||||||
|
Reference in New Issue
Block a user