Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.57 KB

wiring-guide-generic-2.4-spi.md

File metadata and controls

49 lines (38 loc) · 1.57 KB

Generic 2.4" & 2.8" Displays (Resistive Touch) Wiring Guide - ESP8266

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.

At this time Moddable sample code does not include display SD card support.

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 esp/moddable_zero

ESP8266 Pinout

ILI9341 Display ESP8266 ESP8266 Devboard label
SDO / MISO GPIO 12 (D6)
LED 3.3V
SCK GPIO 14 (D5)
SDI / MOSI GPIO 13 (D7)
CS GPIO 15 (D8)
DC GPIO 2 (D4)
RESET 3.3V
GND GND
VCC 3.3V
T_DO GPIO 12 (D6)
T_DIn GPIO 13 (D7)
T_CLK GPIO 14 (D5)
T_IRQ GPIO 16 (D0)
T_CS GPIO 0 (D3)

Generic 2.4"-2.8" wiring illustration