Update ST7789.py

fix: added backlight pin
This commit is contained in:
makerph
2022-08-11 13:39:20 +08:00
committed by GitHub
parent 8a78311b5f
commit 8652d01634

View File

@ -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):