mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Update ST7789.py
change spi speed
This commit is contained in:
@ -91,7 +91,7 @@ class ST7789(object):
|
|||||||
"""Representation of an ST7789 TFT LCD."""
|
"""Representation of an ST7789 TFT LCD."""
|
||||||
|
|
||||||
def __init__(self, port, cs, dc, backlight, 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=60 * 1000 * 1000,
|
||||||
offset_left=0,
|
offset_left=0,
|
||||||
offset_top=0):
|
offset_top=0):
|
||||||
"""Create an instance of the display using SPI communication.
|
"""Create an instance of the display using SPI communication.
|
||||||
|
Reference in New Issue
Block a user