// Drop-in TFT_eSPI setup for Waveshare ESP32-S3-Touch-LCD-1.28
// (Amazon B0CM68M8LR, GC9A01 240x240 round).
//
// Arduino IDE: copy these defines into TFT_eSPI/User_Setup.h
//   or select Setup302 in User_Setup_Select.h and add USE_HSPI_PORT.
// PlatformIO: this file is included via build_flags (do not edit the library).

#pragma once

#define USER_SETUP_ID 302
#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

#define USE_HSPI_PORT

#define LOAD_GLCD
#define LOAD_FONT2
#define SMOOTH_FONT

#define SPI_FREQUENCY       40000000
#define SPI_READ_FREQUENCY  20000000
#define SPI_TOUCH_FREQUENCY  2500000
