```html
Fixing ESP32 Marauder 2.8" TFT Touch & Display Issue — Step-by-step
```
Fixing the ESP32 Marauder 2.8" TFT Touch & Display Issue — Step-by-step
Summary: If your ESP32 Marauder UI looks distorted or the touch doesn't register on a 2.8" ILI9341 TFT (often with XPT2046 touch controller), the problem is usually mismatched pin mapping or incorrect touch calibration.
Problem Overview
After flashing the firmware the screen sometimes shows colored noise or partial rendering on the right side. Touch also becomes inaccurate or non-responsive.
Recommended Wiring
| TFT Pin | ESP32 Pin |
|---|---|
| VCC | 3.3V |
| GND | GND |
| CS | GPIO 5 |
| RESET | GPIO 22 |
| DC | GPIO 21 |
| MOSI | GPIO 23 |
| SCK | GPIO 18 |
| T_CS | GPIO 4 |
| T_IRQ | GPIO 2 |
Code Configuration
// TFT Display #define TFT_MOSI 23 #define TFT_SCLK 18 #define TFT_CS 5 #define TFT_DC 21 #define TFT_RST 22 // Touch #define TOUCH_CS 4 #define TOUCH_IRQ 2