Skip to content

Commit c8bcf51

Browse files
phoddiemkellner
authored andcommitted
add chris's doc on ESP8266 SPI wiring
1 parent de925fc commit c8bcf51

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Connecting a SPI display to ESP8266
2+
3+
####Copyright 2017 Moddable Tech, Inc.
4+
5+
####Revised: October 12, 2017
6+
7+
8+
9+
## Overview
10+
11+
Many Moddable examples include screen and touch UI. These demos have been developed with inexpensive resistive SPI touch displays readily available on eBay and other sources. The displays are 240 x 320 resolution and come in 2.4" and 2.8" sizes.
12+
13+
Any SPI based screen should work. We have brought up samples and products on many screens including LCD, OLED, eInk. There are a number of display and touch drivers in the Moddable SDK repository. See: modules/drivers/
14+
15+
These inexpensive red resistive displays use the ILI9341 display IC/driver and the XPT2046 IC/driver.
16+
17+
![](./../../assets/moddable_zero/spi-touch-display.jpg)
18+
19+
## Wiring
20+
21+
When wired to an ESP8266 development board as shown below any of the Moddable examples with screen UI will utilize the screen.
22+
23+
| ILI9341 Display | ESP8266 | Devboard label
24+
| --- | --- | --- |
25+
| SDO / MISO | GPIO 12 | (D6)
26+
| LED | 3.3V |
27+
| SCK | GPIO 14 | (D5)
28+
| SDI / MOSI | GPIO 13 | (D7)
29+
| DC | GPIO 2 | (D4)
30+
| RESET | 3.3V |
31+
| GND | GND |
32+
| VCC | 3.3V |
33+
| T_DO | GPIO 12 | (D6)
34+
| T_DIn | GPIO 13 | (D7)
35+
| T_CLK | GPIO 14 | (D5)
36+
| T_IRQ | GPIO 16 | (D0)
37+
| T_CS | GPIO 0 | (D3)
38+
39+
<br>
40+
<br>
41+
42+
![](./../../assets/moddable_zero/esp-display-wiring.png)
43+
44+
![](./../../assets/moddable_zero/esp-breadboard-display.png)

0 commit comments

Comments
 (0)