Update ST7789.py

change spi speed
This commit is contained in:
makerph
2022-08-12 01:41:14 +08:00
committed by GitHub
parent c3ead8462d
commit 0e7b756a6e

View File

@ -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.