From 5cfb8c5a8a84bcbd5a5c46e2e65c5dcacbae84a5 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Thu, 9 Feb 2023 15:55:27 +0000 Subject: [PATCH] Add ESP32 S3 Box Lite (#2390) * Add esp32-s3-box-lite display configuration (#2386) * Update Setup208_ESP32_S3_Box_Lite.h * Add ESP32 S3 Box Lite setup --------- Co-authored-by: nebulous --- User_Setup_Select.h | 2 ++ User_Setups/Setup208_ESP32_S3_Box_Lite.h | 32 ++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 User_Setups/Setup208_ESP32_S3_Box_Lite.h diff --git a/User_Setup_Select.h b/User_Setup_Select.h index 8477297..b0f6941 100644 --- a/User_Setup_Select.h +++ b/User_Setup_Select.h @@ -131,6 +131,8 @@ //#include //#include +//#include // For the ESP32 S3 Box Lite (may also work with ESP32 S3 Box) + //#include // Setup file for Bw16-based boards with ST7735 160 x 80 TFT //#include // Template file for a setup diff --git a/User_Setups/Setup208_ESP32_S3_Box_Lite.h b/User_Setups/Setup208_ESP32_S3_Box_Lite.h new file mode 100644 index 0000000..a25e4ea --- /dev/null +++ b/User_Setups/Setup208_ESP32_S3_Box_Lite.h @@ -0,0 +1,32 @@ +// Display configuration for ST7789-based ESP32-S3-Box-Lite + +#define USER_SETUP_ID 208 +#define USER_SETUP_INFO "ESP32-S3-BOX-LITE" + +#define ST7789_DRIVER +#define TFT_RGB_ORDER TFT_BGR + +#define TFT_WIDTH 240 +#define TFT_HEIGHT 320 + +#define TFT_BL 45 +#define TFT_BACKLIGHT_ON LOW + +#define TFT_CS 5 +#define TFT_DC 4 +#define TFT_RST 48 + +#define TFT_MOSI 6 +#define TFT_SCLK 7 + +#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