Generic 2.4" & 2.8" Displays (Resistive Touch) Wiring Guide - ESP32
Copyright 2018 Moddable Tech, Inc.
Revised: October 23, 2018
Specs
|
|
Size |
2.4" & 2.8", 320 x 240 |
Type |
TFT LCD |
Interface |
SPI |
Drivers |
video ILI9341, touch XPT2046 |
Availability |
Generic SPI Displays on eBay |
Description |
These inexpensive displays are available on eBay and other resources.
Note: They are available in touch and non-touch versions which appear very similar. |
Moddable example code
The drag example is good for testing this display. To run a debug build, use the following build command:
cd $MODDABLE/examples/piu/drag
mcconfig -d -m -p esp32/moddable_zero
ESP32 Pinout
ILI9341 Display |
ESP32 |
SDO / MISO |
GPIO 12 |
LED |
3.3V |
SCK |
GPIO 14 |
SDI / MOSI |
GPIO 13 |
CS |
GPIO 15 |
DC |
GPIO 2 |
RESET |
3.3V |
GND |
GND |
VCC |
3.3V |
T_DO |
GPIO 12 |
T_DIn |
GPIO 13 |
T_CLK |
GPIO 14 |
T_IRQ |
GPIO 23 |
T_CS |
GPIO 18 |