// TFT_eSPI_Setup.h
// Tells the TFT_eSPI screen library which pins this board uses.
//
// PlatformIO: loaded automatically (see build_flags in platformio.ini).
// Arduino IDE: open your Arduino/libraries/TFT_eSPI folder and replace the
//              contents of User_Setup.h with this file.
#pragma once
#define USER_SETUP_INFO "Waveshare ESP32-S3-Touch-LCD-1.28"

#define GC9A01_DRIVER
#define TFT_WIDTH  240
#define TFT_HEIGHT 240

#define TFT_MISO 12
#define TFT_MOSI 11
#define TFT_SCLK 10
#define TFT_CS    9
#define TFT_DC    8
#define TFT_RST  14
#define TFT_BL    2
#define TFT_BACKLIGHT_ON HIGH

// The ESP32-S3 needs the HSPI port, otherwise the screen stays black.
#define USE_HSPI_PORT

#define LOAD_GLCD
#define LOAD_FONT2
#define LOAD_FONT4
#define LOAD_FONT7
#define LOAD_GFXFF
#define SMOOTH_FONT

#define DISABLE_ALL_LIBRARY_WARNINGS

#define SPI_FREQUENCY      80000000
#define SPI_READ_FREQUENCY 20000000
