Skip to content
Display Engineer
Sunton · Display dev board

ESP32-2432S024 display: specs, driver revisions & setup

A 2.4-inch 240×320 SPI TFT ESP32 board from the Sunton Cheap Yellow Display family, sold as N (no touch), R (XPT2046 resistive) and C (capacitive, CST816S / CST820). Published board configs drive an ILI9341 on HSPI with the backlight on GPIO 27, not GPIO 21 as on the 2.8-inch CYD.

Updated Nov 16, 2026

ESP32-2432S024 display specifications

MCUESP32 (ESP32-WROOM, 4 MB flash, no PSRAM)
Display2.4″ · 240×320
Display busSPI (HSPI)
Driver ICILI9341 or ST7789
TouchXPT2046 resistive (R version) or CST816S / CST820 capacitive (C version); the N version has no touch

Which ESP32-2432S024 revision do you have?

Boards sold under the same name ship with different display driver ICs. Code written for one revision shows a white screen, wrong colours or nothing at all on the other, so identify yours first.

RevisionDriver ICHow to identifyLibrary settings
ILI9341 versionILI9341Works with ILI9341_2_DRIVER; this is what all three published board configs useTFT_eSPI: ILI9341_2_DRIVER, TFT_INVERSION_OFF, backlight GPIO 27. The rzeldent esp_lcd config sets BGR colour order and mirrors X
ST7789 version (reported)ST7789White or blank screen with the ILI9341 setupTFT_eSPI: ST7789_DRIVER, same pins. Reported for some batches; the article we cited for it is no longer online and we could not re-check it

ESP32-2432S024 display and touch pins

SignalGPIONotes
TFT MOSI13HSPI; shared with XPT2046 on the R version
TFT MISO12HSPI; shared with XPT2046 on the R version
TFT SCLK14HSPI; shared with XPT2046 on the R version
TFT CS15
TFT DC2
TFT RST-1Not connected to a GPIO
Backlight27Active high. GPIO 21 on the 2.8″ CYD; do not copy that setting
Touch CS (R)33XPT2046, on the display SPI bus
Touch IRQ (R)36XPT2046; input-only pin
Touch SDA (C)33I2C, address 0x15
Touch SCL (C)32I2C, 400 kHz in both configs
Touch RST (C)25
Touch INT (C)21
SD card CS / MOSI / SCLK / MISO5 / 23 / 18 / 19Separate from the display bus (rzeldent)
RGB LED red4Common anode, active low (openHASP)
RGB LED green / blue16 / 17 or 17 / 16rzeldent: green 16, blue 17. openHASP: green 17, blue 16. Test which is which on your board
Light sensor (CDS)34Analog input (rzeldent)
Speaker26rzeldent

Same display spec for volume production

Prototyped on the ESP32-2432S024? These modules from our direct factories share the panel size and resolution, come with a datasheet and a fixed driver IC per production lot, and are available from 1 pc samples. MOQ and lead time are agreed per project.

From ESP32-2432S024 prototype to production

Dev boards are ideal for proving a UI, but their panels are bought on the open market: the controller can change between batches (as it already has on this board), there is rarely a datasheet, and lifetime is not guaranteed. For a product, specify a module with a fixed driver IC per production lot, a datasheet and a lifecycle commitment.

Our direct factories build modules with the same 2.4″ 240×320 format. Samples start at 1 pc; MOQ and lead time are agreed per project with our sales team.

Before you debug code

  1. Confirm which revision you have (table above): driver IC changes are the most common cause of a white screen.
  2. Check the backlight pin is not reused in your sketch.
  3. Change one setting at a time (driver, inversion, colour order), and keep a known-good example to compare against.

Configuration examples

TFT_eSPI build flags: ILI9341 version (from the CYD repository's Variants page)c
#define ILI9341_2_DRIVER
#define TFT_WIDTH  240
#define TFT_HEIGHT 320
#define TFT_MISO 12
#define TFT_MOSI 13
#define TFT_SCLK 14
#define TFT_CS   15
#define TFT_DC    2
#define TFT_RST  -1
#define TFT_BL   27
#define TFT_BACKLIGHT_ON HIGH
#define TFT_INVERSION_OFF
#define SPI_FREQUENCY      55000000
#define SPI_READ_FREQUENCY 20000000
// the rzeldent esp_lcd config runs the same panel at 24 MHz; drop to that if the picture is unstable
Reference· Community configuration (see sources)
TFT_eSPI: ST7789 version (driver block, same pins)c
#define ST7789_DRIVER
#define TFT_WIDTH  240
#define TFT_HEIGHT 320
#define TFT_BL 27   // backlight is GPIO 27 in every published config for this board
Reference· Community configuration (see sources)
R version: XPT2046 touch on the shared SPI bus (openHASP values)c
#define TOUCH_CS   33
#define TOUCH_SCLK 14
#define TOUCH_MOSI 13
#define TOUCH_MISO 12
#define TOUCH_IRQ  36
#define SPI_TOUCH_FREQUENCY 2500000
Reference· Community configuration (see sources)
C version: capacitive touch pins (I2C)c
#define TOUCH_SDA 33
#define TOUCH_SCL 32
#define TOUCH_RST 25
#define TOUCH_INT 21
#define TOUCH_I2C_ADDR 0x15   // openHASP notes "or 0x14"
#define TOUCH_I2C_FREQ 400000
// rzeldent uses the CST816S driver, openHASP the CST820 driver
Reference· Community configuration (see sources)

Guides & comparisons

Frequently asked questions

Is the ESP32-2432S024 the same as the CYD?

It belongs to the same Sunton family but has a 2.4-inch panel and is not pin-compatible in software with the 2.8-inch CYD. Published configs put the backlight on GPIO 27 instead of 21, and the touch wiring is different.

What do the N, R and C suffixes mean?

N has no touch panel, R has resistive touch (XPT2046) and C has capacitive touch.

Which touch controller does the ESP32-2432S024C use?

Published configs disagree on the name: the rzeldent board definition uses a CST816S driver and openHASP uses a CST820 driver. Both use I2C address 0x15 on SDA 33 and SCL 32, with reset on GPIO 25 and interrupt on GPIO 21.

Why does touch not work with my 2.8-inch CYD code on the R version?

On the 2.8-inch CYD the XPT2046 has its own SPI pins (25, 32, 33, 39). On the ESP32-2432S024R it shares the display bus (MOSI 13, MISO 12, SCLK 14) and only has its own chip select on GPIO 33, with the interrupt on GPIO 36. Point the touch library at the display's SPI bus and set the touch chip select to 33.

How fast can the SPI clock run?

Published configurations differ: the rzeldent board definition uses 24 MHz, while openHASP and the CYD repository's Variants page use 55 MHz. Start at 24 MHz and raise it once the picture is stable. A full 240×320 RGB565 frame is 153,600 bytes.

Does the ESP32-2432S024 have PSRAM?

No. Board configs describe an ESP32-WROOM module with 4 MB of flash and no PSRAM. The rzeldent definition allocates an LVGL draw buffer of a quarter of the screen (19,200 pixels) in internal RAM rather than a full frame buffer.

Sources

  1. rzeldent/platformio-espressif32-sunton, esp32-2432S024C.json (commit e49cbfed)
  2. rzeldent/platformio-espressif32-sunton, esp32-2432S024R.json (commit e49cbfed)
  3. rzeldent/platformio-espressif32-sunton, esp32-2432S024N.json (commit e49cbfed)
  4. openHASP, user_setups/esp32/esp32-2432s024.ini (commit c4fb5a78)
  5. witnessmenow/ESP32-Cheap-Yellow-Display, Variants/README.md (commit a744659e)
  6. witnessmenow/ESP32-Cheap-Yellow-Display, PINS.md (2.8″ CYD pin map, for comparison)
  7. F1ATB: ESP32-2432S028 / S024 configurations (page offline when checked on 2026-11-16)

Not sure which display fits your design?

Send us your size, interface and host processor. A display engineer replies within 12 hours with 2–3 options, datasheets and init code. Samples from 1 pc.