Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions User_Setup_Select.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@

//#include <User_Setups/Setup71_ESP32_S2_ST7789.h> // Setup file for ESP32 S2 with ST7789
//#include <User_Setups/Setup72_ESP32_ST7789_172x320.h> // Setup file for ESP32 with ST7789 1.47" 172x320
//#include <User_Setups/Setup73_ESP32_S3_ST7789V.h> // Setup file for ESP32 S3 with ST7789V 240x320

//#include <User_Setups/Setup77_ST7796U_ESP32_32E.h> // Setup file for ESP32-32E with ST7796 3.5" 320x480

Expand Down
41 changes: 41 additions & 0 deletions User_Setups/Setup73_ESP32_S3_ST7789V.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Setup for the ESP32-S3 with ST7789V 240x320 display
// Tested with Freenove ESP32-S3-WROOM (N8R8) and Waveshare 2" SPI LCD
#define USER_SETUP_ID 73

#define ST7789_DRIVER

#define TFT_WIDTH 240
#define TFT_HEIGHT 320

// Typical board default pins (tested)
#define TFT_MOSI 11 // 11 or 35 (FSPI D)
#define TFT_SCLK 12 // 12 or 36 (FSPI CLK)
#define TFT_CS 10 // 10 or 34 (FSPI CS0)
#define TFT_MISO -1

// Use pins in range 0-31
#define TFT_DC 14
#define TFT_RST 21

// #define TFT_BL -1 // Backlight control pin, set to -1 if not used
// #define TFT_BACKLIGHT_ON HIGH

// #define TFT_INVERSION_ON // Uncomment if colours are inverted
#define TFT_RGB_ORDER TFT_BGR // Colour order Blue-Green-Red

// FSPI port (SPI2) used unless following defined
// On Arduino ESP32 Core 3.x, enable USE_HSPI_PORT and reduce
// SPI_FREQUENCY to 20000000 to avoid crashes and corruption
// #define USE_HSPI_PORT

#define SPI_FREQUENCY 40000000

#define LOAD_GLCD
#define LOAD_FONT2
#define LOAD_FONT4
#define LOAD_FONT6
#define LOAD_FONT7
#define LOAD_FONT8
#define LOAD_GFXFF

#define SMOOTH_FONT