CYD ESP32 2.8 Inch Resistive Touch Display
The E32R28T combines an ESP32 microcontroller with a 2.8-inch, 240 × 320 pixel TFT display and resistive touch input. Built-in Wi-Fi and Bluetooth, a MicroSD card slot, an RGB status LED, a speaker interface and GPIO connections provide an integrated platform for embedded display projects.
Hardware revision notice: Display controllers and some board features vary between versions. Identify the fitted display controller before configuring the software. Purchase date and USB connector arrangement alone do not reliably identify the controller.
Quick Spec
- Product code: E32R28T
- CYD board family: ESP32-2432S028 / ESP32-2432S028R
- Microcontroller: ESP32-WROOM-32 family; confirm the exact module suffix from the fitted module marking
- Wireless connectivity: Wi-Fi and Bluetooth
- Display: 2.8-inch TFT with resistive touch
- Resolution: 240 × 320 pixels; 320 × 240 in landscape orientation
- Display controller: ILI9341 or ST7789, depending on hardware version; identify before configuration
- Display interface: Onboard 4-wire SPI connection to the ESP32
- Colour format for the CYD setup below: 16-bit RGB565: 65,536 colours
- Touch controller: XPT2046, with separate SPI connections
- USB connections: Micro-USB and USB Type-C on the dual-USB version; connector arrangement varies by revision
- Power input: 5 V via USB
- Status indicator: RGB LED
- Storage expansion: MicroSD card slot
- Additional connections: GPIO, UART/power and speaker connections on the ESP32-2432S028 CYD board
The setup and pin assignments below apply to the ESP32-2432S028 CYD family
Quick Setup
Step 1 – Add ESP32 Board Support for Arduino IDE
Install Arduino IDE and open File → Preferences.
Add the following address to Additional Boards Manager URLs:
https://espressif.github.io/arduino-esp32/package_esp32_index.json
Step 2 – Boards Manager
Open Boards Manager, search for esp32, and install esp32 by Espressif Systems.
Select ESP32 Dev Module as the board.
Connect the module using a USB data cable and select its serial/COM port. For initial setup of the dual-USB CYD, use the Micro-USB connection.
ESP32 Arduino installation instructions · CYD setup guide and USB-serial driver information
Step 3 – Determine Which Display Driver the Module Uses
Read the display identification registers before selecting an ILI9341 or ST7789 configuration. The diagnostic reports its results through Serial Monitor and does not require a working graphics configuration.
Note: Uploading the diagnostic replaces the program currently installed on the module.
- Open the spi_lcd_read GitHub repository and select Code → Download ZIP.
- In Arduino IDE, select Sketch → Include Library → Add .ZIP Library and choose the downloaded archive.
- Open File → Examples → spi_lcd_read → read_registers. The example already specifies the standard CYD display pins: SCK 14, MISO 12, MOSI 13, CS 15 and DC 2.
- Upload the example, open Serial Monitor, select 115200 baud, and press RESET.
- Compare the register output with the reference readings below.
- ST7789 on CYD2USB:
RDDID (0x04), sequential result85 85 52 - ILI9341 on the original CYD:
ID4 (0xD3), indexed result41 00 93 41
These are reference readings from tested boards, not an exhaustive list of every controller revision. If all registers return 00 or FF, identification is inconclusive: readback requires a working display MISO connection. An unfamiliar result requires further identification; it should not automatically be classified as ST7789 or ILI9341.
Diagnostic example · Reference register readings
Other variants: ILI9342 versions are also documented within the CYD family. If a different controller is confirmed, use a configuration for that controller and PCB. CYD controller variants in ESPHome.
Step 4 – Select the Appropriate Manual and Configuration
If ILI9341 Is Confirmed
ILI9341 on ESP32-2432S028 / ESP32-2432S028R
- Documentation: Original ESP32-2432S028R user manual (PDF)
CYD Arduino setup guide - TFT_eSPI configuration: ILI9341 CYD User_Setup.h
EnablesILI9341_2_DRIVER, an alternative ILI9341 driver.
If ST7789 Is Confirmed
ST7789 on ESP32-2432S028 CYD2USB
- Documentation: CYD Arduino setup guide
CYD2USB variant instructions
Community setup documentation for this board family. - TFT_eSPI configuration: ST7789 CYD2USB User_Setup.h
EnablesST7789_DRIVER, BGR colour order and inversion off.
LCDWIKI E32R28T-1 only: When the board is confirmed to match the LCDWIKI E32R28T-1 hardware, use its
ST7789P3 user manual (PDF) and
Arduino demo instructions (PDF)
. That is a separate PCB design; an ST7789 controller alone does not establish compatibility. Its Arduino instructions include replacement files for both
User_Setup.h and TFT_Drivers/ST7789_Init.h. Use those replacements only with the matching LCDWIKI hardware and example package.
Step 5 – Library Manager
Open Arduino IDE's Library Manager, search for TFT_eSPI, and install the library by Bodmer.
Step 6 – Configure User_Setup.h
- Locate the active TFT_eSPI library folder. It is commonly inside the sketchbook's libraries folder; the sketchbook location is shown in Arduino IDE Preferences.
- Back up the existing
User_Setup.h. - Download the complete configuration file for the confirmed driver from the driver-specific links above, using GitHub's Download raw file control. Replace the library's
User_Setup.hwith that file. Do not save the GitHub webpage as a header file. - Confirm that
User_Setup_Select.hselects#include <User_Setup.h>and that no other setup-file include is active. - Recompile and upload the display test below.
Special Note
Configuration location: Driver and pin definitions must be available when TFT_eSPI itself is compiled. Adding them only at the top of an Arduino sketch does not configure the separately compiled library.
Alternative setup-file selection: Store a complete configuration under a separate filename in TFT_eSPI/User_Setups/ and select that file in User_Setup_Select.h, with the default setup include disabled. Keep exactly one setup-file include active. Back up custom configurations because library updates can overwrite files inside the library folder.
TFT_eSPI documentation · Setup selection reference
CYD Display Pin Assignments
The display is already connected to the ESP32 on the PCB. These are software configuration values; no external display wiring is required.
TFT_MISO: 12 // Display read data, where connectedTFT_MOSI: 13 // Display write dataTFT_SCLK: 14 // Display SPI clockTFT_CS: 15 // Display chip selectTFT_DC: 2 // Data/command selectionTFT_RST: -1 // No separate GPIO-controlled display reset in this configurationTFT_BL: 21 // Backlight controlTFT_BACKLIGHT_ON: HIGH // Backlight enabled at a high level
The ESP32 supports configurable SPI pin routing. Use the CYD assignments above instead of assuming the default pins from a generic ESP32 example. The selected complete setup file must also provide the correct driver, SPI options and display settings.
Sample Code — Display Test
Upload this sketch after selecting the correct TFT_eSPI configuration. It draws red, green and blue bars from left to right, with white text on a black background. This test uses the display only; touch and MicroSD are configured separately.
#include <Arduino.h>
#include <TFT_eSPI.h>
TFT_eSPI tft;
void setup() {
// Select the matching driver and pins in TFT_eSPI before uploading.
tft.init();
tft.setRotation(1);
tft.fillScreen(TFT_BLACK);
const int width = tft.width();
const int height = tft.height();
const int barWidth = width / 3;
const int barHeight = height - 40;
tft.fillRect(0, 0, barWidth, barHeight, TFT_RED);
tft.fillRect(barWidth, 0, barWidth, barHeight, TFT_GREEN);
tft.fillRect(2 * barWidth, 0, width - 2 * barWidth,
barHeight, TFT_BLUE);
tft.setTextFont(1);
tft.setTextSize(2);
tft.setTextColor(TFT_WHITE, TFT_BLACK);
tft.setCursor(10, height - 28);
tft.println("CYD display test");
}
void loop() {
}
Correct colours and complete screen coverage help validate the working configuration. They do not, by themselves, prove an exact controller model or suffix.
Touch Setup
The XPT2046 touch controller uses different SPI pins from the display. Configure touch separately. Adding only a touch chip-select definition does not configure those separate connections.
- Clock: GPIO 25
- MOSI / DIN: GPIO 32
- MISO / DOUT: GPIO 39
- Chip select: GPIO 33
- Interrupt: GPIO 36
One supported approach is the XPT2046_Bitbang_Slim library. Follow the CYD touch/button example after selecting the matching display configuration. Calibrate touch coordinates for the individual module and screen orientation.
Troubleshooting and Operating Notes
- No serial/COM port: Use a USB data cable, check the selected port and install the USB-to-serial driver required by the fitted bridge chip. The standard CYD setup guide covers CH340.
- Upload fails: Confirm ESP32 Dev Module and the correct port. Try an upload speed of 115200 baud. If automatic download mode fails, follow Espressif's upload troubleshooting instructions.
- USB-C connection does not power the board: Try Micro-USB or a USB-A-to-USB-C cable. Some documented CYD2USB boards do not operate from a USB-C-to-USB-C connection.
- Blank, white or incorrectly drawn display: Recheck the identified controller, selected setup file, GPIO assignments and backlight GPIO21. Recompile after configuration changes.
- Red and blue exchanged, or black and white inverted: Check colour order and inversion against the matching complete driver configuration. A colour issue alone does not identify the controller.
- Graphics work but touch does not: Check the separate XPT2046 wiring, touch library and coordinate calibration.
- Configuration diagnostic: TFT_eSPI's
Read_User_Setupexample reports the compiled software settings. It does not detect the physical display controller. - Battery operation: The standard ESP32-2432S028 CYD design requires external circuitry for battery power and charging. Use battery-related instructions from another board's manual only when that exact PCB and its battery circuit have been confirmed.
- Header functions: Check the connector labels and pin reference before connecting peripherals. GPIO21 is also used by the display backlight, and GPIO35 is input-only on the standard CYD.
Resources
- E32R28T practical information and code examples — check the display driver selected by each example/configuration before use.
- CYD community documentation and examples
- CYD pin and connector reference
- Original ESP32-2432S028R specification (PDF) — describes the original ILI9341 hardware.
- CYD troubleshooting
- Espressif upload troubleshooting
- TFT_eSPI compiled-configuration diagnostic
Contributions
- Thank you to our client, Mr Clive Gerber, for highlighting display-controller differences between CYD board versions.
Shipping List
- 1 × E32R28T display
- 1 × Touch pen
- 1 × USB-C cable
- 1 × Interface cable
CYD ESP32 2.8 Inch Resistive Touch Display
- Product Code: E32R28T
- Product Status : Active
Stock
| Warehouse | Stock Status | Location |
|---|---|---|
| Centurion | In Stock | UF047+UF048 |
| Stellenbosch | In Stock | D4018 |
We ship free of charge between branches to complete your order.
-
R298.00 (Inc Tax: R342.70)
Related Products
DF Robot 3.5Inch IPS Cap Touch Display - Chipset ST7365P
DF Robot 3.5 Inch IPS Capacitive Touch Display (480×320, SPI/GDI) - Chipset ST7365P The DFRobot 3.5" IPS Capacitive Touch Display is a high-clarity 480×320 HVGA screen designed for seamless i..
R498.00 (Inc Tax: R572.70)
CYD ESP32 4-Inch Resistive Touch Display
CYD ESP32 4-Inch Resistive Touch Display This ESP32 display module combines a four-inch colour touchscreen with wireless connectivity. Its resistive touch input, USB-C connection and MicroSD slot..
R415.00 (Inc Tax: R477.25)
Tags: ESP32, display, cyd, 2.8 Inch, touch display





