ESP32-S3-LCD-1.28
https://www.waveshare.com/wiki/ESP32-S3-LCD-1.28 Firmware: ESP32_GENERIC/firmware_16MiB.bin
tft_configs/ESP32-S3-LCD-1.28/tft_config.py
1"""ESP32-S3-LCD-1.28
2https://www.waveshare.com/wiki/ESP32-S3-LCD-1.28
3Firmware: ESP32_GENERIC/firmware_16MiB.bin
4"""
5
6from machine import Pin, SPI
7import gc9a01
8
9TFA = 0
10BFA = 0
11WIDE = 0
12TALL = 1
13
14def config(rotation=0, buffer_size=0, options=0):
15 spi = SPI(1, baudrate=60000000, sck=Pin(10), mosi=Pin(11))
16
17 return gc9a01.GC9A01(
18 spi,
19 240,
20 240,
21 reset=Pin(12, Pin.OUT),
22 cs=Pin(9, Pin.OUT),
23 dc=Pin(8, Pin.OUT),
24 backlight=Pin(40, Pin.OUT),
25 rotation=rotation,
26 options=options,
27 buffer_size= buffer_size)