35 lines
764 B
C
35 lines
764 B
C
#pragma once
|
|
|
|
// LilyGO T-Display-S3-Pro: ST7796, 222 x 480, SPI.
|
|
// TFT_eSPI automatically includes this project-local file before its default
|
|
// setup, keeping the board configuration independent of external libraries.
|
|
#define USER_SETUP_LOADED
|
|
#define USER_SETUP_ID 214
|
|
|
|
#define ST7796_DRIVER
|
|
#define TFT_WIDTH 222
|
|
#define TFT_HEIGHT 480
|
|
#define CGRAM_OFFSET
|
|
#define TFT_RGB_ORDER TFT_BGR
|
|
#define TFT_INVERSION_ON
|
|
|
|
#define TFT_MISO 8
|
|
#define TFT_MOSI 17
|
|
#define TFT_SCLK 18
|
|
#define TFT_CS 39
|
|
#define TFT_DC 9
|
|
#define TFT_RST 47
|
|
#define TFT_BL 48
|
|
#define TFT_BACKLIGHT_ON HIGH
|
|
|
|
#define LOAD_GLCD
|
|
#define LOAD_FONT2
|
|
#define LOAD_FONT4
|
|
#define LOAD_FONT6
|
|
#define LOAD_FONT7
|
|
#define LOAD_FONT8
|
|
#define LOAD_GFXFF
|
|
#define SMOOTH_FONT
|
|
|
|
#define SPI_FREQUENCY 40000000
|