Cheap Aliexpress displays, tested with an ESP32-C3 Super Mini, Arduino IDE 2.3.2 and TFT_eSPI 2.5.43
Board Package : esp32 3.0.3 ( or esp32 2.0.14 )
Arduino IDE
- Board : "Nologo ESP32-C3 Super Mini" or "ESP32-C3 Dev Module"
- USB CDC On Boot : Enabled (for serial monitor)
- Upload problem :
- Method 1: Press and hold BOOT while connecting.
- Method 2: Press and hold the BOOT button then press the RESET button.
There is a manual for the ESP32-C3 Super Mini.
are discussed here :
GPIO | TFT | Description |
---|---|---|
7 | CS | CS |
6 | SDA | MOSI |
5 | --- | MISO ( not used ) |
4 | SCL | SCLK |
2 | DC | DC |
3 | RST | Reset |
1 | BLK | 3.3V or PWM-Pin |
VCC | 3.3V | |
GND | GND |
Arduino IDE Board : "Nologo ESP32C3 Super Mini" or "ESP32C3 Dev Module", USB CDC On Boot : Enabled
Edit or copy the setup file Setup424_C3_SM_ST7789_170x320.h , Setup425_C3_SM_ST7789_240x280.h or Setup426_C3_SM_ST7789_240x320.h :
#define USER_SETUP_ID 424 // 425 // 426
// Driver
#define ST7789_DRIVER // Configure all registers
#define TFT_WIDTH 170 // 240 // 240
#define TFT_HEIGHT 320 // 280 // 320
//#define TFT_RGB_ORDER TFT_BGR // only for display 240x320
//#define TFT_INVERSION_ON // only for display 240x320
// Pins ESP32 C3
#define TFT_CS 7
#define TFT_MOSI 6
#define TFT_MISO 5
#define TFT_SCLK 4
#define TFT_RST 3
#define TFT_DC 2
//#define TFT_BL 1
// Fonts
#define LOAD_GLCD
#define LOAD_FONT2
#define LOAD_FONT4
#define LOAD_FONT6
#define LOAD_FONT7
#define LOAD_FONT8
//#define LOAD_FONT8N
#define LOAD_GFXFF
#define SMOOTH_FONT
// Other options
//#define SPI_FREQUENCY 27000000 // 80/3 MHz
//#define SPI_FREQUENCY 40000000 // 80/2 MHz
#define SPI_FREQUENCY 80000000 // 80/1 MHz
Edit or copy the file Arduino/libraries/TFT_eSPI/User_Setup_Select.h
All files can be found above in the folder Arduino.