forked from Moddable-OpenSource/moddable
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial display documentation - for generic 2.4" displays
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Wiring Guides for Moddable supported SPI displays | ||
|
||
Copyright 2018 Moddable Tech, Inc. | ||
Revised: January 2, 2018 | ||
|
||
|
||
## Generic 2.4" & 2.8" displays (with resistive touch) | ||
**Size:** 2.4" & 2.8", 320 x 240 | ||
|
||
**Type:** TFT LCD | ||
|
||
**Drivers:** video [ILI9341](../../documentation/drivers/ili9341/ili9341.md), touch XPT2046 | ||
|
||
**Availability:** [Generic SPI Displays on eBay] (https://www.ebay.com/sch/i.html?_odkw=spi+display+2.4&_osacat=0&_from=R40&_trksid=p2045573.m570.l1313.TR0.TRC0.H0.Xspi+display+2.4+touch.TRS0&_nkw=spi+display+2.4+touch&_sacat=0) | ||
|
||
**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 Sample code:** The Piu example [Drag](../../examples/piu/drag/) is good for testing this display. The build command below includes the -d, debug flag so requries XSBug to be launched to run. | ||
|
||
``` | ||
cd $MODDABLE/examples/piu/drag | ||
mcconfig -d -m -r 0 -f rgb565le -p esp screen=ili9341 touch=xpt2046 | ||
``` | ||
At this time Moddable sample code does not include display SD card support. | ||
|
||
**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) | ||
|
||
 | ||
|