Skip to content

This is not an issue! User_Setup.h for (ESP-2432S032C-i, ST7789, 240x320) #3864

@f41ardu

Description

@f41ardu

To whom it may concern. This is my setup code for ESP-2432S032C-i, ST7789, 240x320.
Just bought from Amazon (Germany). Unfortunately it is deliverd without documentation.

But after some reverse engineering I make it work ;->
Plattform: Arduino IDE

Touch not tested with TFT_eSPI

// =====================
// User_Setup.h  (ESP-2432S032C-i, ST7789, 240x320)
// for TFT_eSPI Library
// =====================

#define USER_SETUP_INFO "ESP32-2432S032C-i ST7789 240x320"

// ---- Display-Driver + Resolution ----
#define ST7789_DRIVER
#define TFT_WIDTH  240
#define TFT_HEIGHT 320

// Color settings
#define TFT_RGB_ORDER TFT_BGR
#define TFT_INVERSION_ON

// ---- ESP32 SPI-Pins (Board-internal connection) ----
#define TFT_MOSI 13
#define TFT_SCLK 14

// no MISO for ST7789 required, but doesn't matter so just in case! 
//#define TFT_MISO 19
#define TFT_CS   15     // Chip Select
#define TFT_DC    2     // Data/Command
#define TFT_RST  -1     // Reset an Board-Reset; -1 = not connected

// ---- Backlight (LED) ----
#define TFT_BL   27
#define TFT_BACKLIGHT_ON HIGH  // BL is aktiv-High

// ---- Fonts / Optionen ----
#define LOAD_GLCD
#define LOAD_FONT2
#define LOAD_FONT4
#define LOAD_FONT6
#define LOAD_FONT7
#define LOAD_FONT8
#define LOAD_GFXFF
#define SMOOTH_FONT

// ---- SPI Frequenzen ----
// 27 MHz is conservative and stable for most ST7789 modules. 
// 40 MHz can be tested, but 80 MHz is often unreliable.
#define SPI_FREQUENCY       40000000  // fine on my board
#define SPI_READ_FREQUENCY  20000000
#define SPI_TOUCH_FREQUENCY 2500000

/*
// ---- Touch Screen ----  still testing, currently added to test ino 
// for TAMC_GT911 Library 
#define TOUCH_SDA  33
#define TOUCH_SCL  32
#define TOUCH_INT 21
#define TOUCH_RST 25
#define TOUCH_WIDTH  320
#define TOUCH_HEIGHT 240
*/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions