CYD WEB SERVER PINOUT
Cheap Yellow Display // 3.5" ST7796 // ESP32-WROOM-32E
GPIO PINOUT
LCD DISPLAY (ST7796)
| Chip Select | IO15 |
| Data/Command | IO2 |
| SPI Clock | IO14 |
| SPI MOSI | IO13 |
| SPI MISO | IO12 |
| Reset | EN |
| Backlight | IO27 |
RESISTIVE TOUCH (XPT2046)
| Chip Select | IO33 |
| Interrupt | IO36 |
SD CARD
| Chip Select | IO5 |
| SPI Clock | IO18 |
| SPI MOSI | IO23 |
| SPI MISO | IO19 |
RGB LED
| Red | IO22 |
| Green | IO16 |
| Blue | IO17 |
AUDIO
| Enable | IO4 |
| DAC Output | IO26 |
I2C INTERFACE
| SCL | IO25 |
| SDA | IO32 |
SERIAL UART
| RXD0 | IO3 |
| TXD0 | IO1 |
OTHER
| Battery ADC | IO34 |
| Peripheral CS | IO21 |
| Boot Button | IO0 |
SCREEN SPECIFICATIONS
Resolution
320 x 480
Driver
ST7796
Interface
SPI (4-line)
Colors
262K (RGB666)
Touch
Resistive (XPT2046)
MCU
ESP32-WROOM-32E
Power Input
5V (USB Type-C)
Battery
3.7V LiPo Supported
IMPORTANT NOTES
- All-in-One Board: The CYD includes display, touch, SD card slot, RGB LED, and audio all integrated on one PCB.
- Shared SPI: Display and SD card share the HSPI bus. Use proper chip select management.
- Backlight Control: GPIO 27 controls backlight brightness via PWM.
- Input-Only GPIOs: IO34, IO35, IO36, IO39 are input-only pins.
- No External Wiring: Unlike the Super Mini builds, the CYD requires no wiring - just plug and program.
- USB-C Power: Powers via USB Type-C connector. Battery charging circuit included.