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.
New Display documentation and updates to existing documents
- Loading branch information
Showing
19 changed files
with
217 additions
and
7 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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+107 KB
.../spi_serial_2.8_inch_320x240_tft_lcd_display_module_ili9341_arduino_stm32_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+104 KB
documentation/displays/images/switch-science-LCD-relective-display.jpg
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,45 @@ | ||
# Wiring Guides for Moddable supported SPI displays | ||
|
||
Copyright 2018 Moddable Tech, Inc. | ||
Revised: January 2, 2018 | ||
|
||
|
||
## Adafruit OLED display | ||
**Part:** Adafruit Product ID: 1431 | ||
|
||
**Size:** 1.5", 128 × 128 | ||
|
||
**Type:** OLED | ||
|
||
**Interface:** SPI | ||
|
||
**Drivers:** video [SSD1351](../../documentation/drivers/ssd1351/ssd1351.md), No touch | ||
|
||
**Availability:** [1.5" OLED Breakout Board] (https://www.adafruit.com/product/1431) | ||
|
||
**Description:** Excellent color, small OLED. | ||
 | ||
|
||
**Moddable Sample code:** The Piu example [transitions](../../examples/piu/transitions/) is good for testing this display. The build command below includes the -d, debug flag. | ||
|
||
``` | ||
cd $MODDABLE/examples/piu/transitions | ||
mcconfig -d -m -r 0 -f rgb332 -p esp screen=ssd1351 touch="" | ||
``` | ||
|
||
|
||
**ESP8266 Pinout:** | ||
|
||
| Adafruit OLED | ESP8266 | ESP8266 Devboard label | ||
| --- | --- | --- | | ||
| GND | GND | | ||
| VIN | 3.3v | | ||
| 3Vo | 3.3v | | ||
| OLEDCS | GPIO 15| (D8) | ||
| RESET | 3.3v | | ||
| DC | GPIO 2 | (D4) | ||
| SCK | GPIO 14 | (D5) | ||
| MOSI | GPIO 13 | (D7) | ||
|
||
 | ||
|
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,54 @@ | ||
# Wiring Guides for Moddable supported SPI displays | ||
|
||
Copyright 2018 Moddable Tech, Inc. | ||
Revised: January 2, 2018 | ||
|
||
|
||
## Crystalfontz ePaper display | ||
**Part:** CFAP128296C0-0290 | ||
[Datasheet] (https://www.crystalfontz.com/products/document/3660/CFAP128296C0-0290DatasheetReleaseDate2017-08-14.pdf) | ||
|
||
**Size:** 2.9" 128x296 | ||
|
||
**Type:** EPD (Electronic Paper Displays) | ||
|
||
**Interface:** SPI | ||
|
||
**Drivers:** video [destm32s](../../documentation/drivers/destm32s/destm32s.md), No touch | ||
|
||
**Availability:** [128x296 ePaper Display] (https://www.crystalfontz.com/product/cfap128296c00290-128x296-epaper-display-eink) | ||
|
||
**Description:** This is a TFT active matrix electrophoretic display (ePaper/E-Ink) with 1-bit white/black full display capabilities. | ||
|
||
One benefit of this display is very low power consumption. The only time you need to provide power to this ePaper module is while updating the display. Once the image is displayed you can remove the power source and the display will continue to display the image appropriately. | ||
|
||
We used the destm32s adaptor board to interface with the display. See: Crystalfontz part CFAP128296C0-E1-1 on the [display product](https://www.crystalfontz.com/product/cfap128296c00290-128x296-epaper-display-eink) page. | ||
|
||
|
||
 | ||
|
||
**Moddable Sample code:** The Piu example [love-e-ink](../../examples/piu/love-e-ink/) is good for testing this display. The build command below includes the -d, debug flag. | ||
|
||
``` | ||
cd $MODDABLE/examples/piu/love-e-ink | ||
mcconfig -d -m -p esp -f gray256 -r 270 | ||
``` | ||
|
||
|
||
**ESP8266 Pinout:** | ||
|
||
| eInk Display | ESP8266 | ESP8266 Devboard label | ||
| --- | --- | --- | | ||
| 3 - GND | GND | | ||
| 5 - 3.3v | 3.3v | | ||
| 13 - SCK | GPIO 14 | (D5) | ||
| 14 - SDI | GPIO 13 | (D7) | ||
| 15 - DC | GPIO 2 | (D4) | ||
| 16 - CS | GPIO 15 | (D8) | ||
| 17 - BUSY | GPIO 5 | (D1) | ||
| 18 - Reset | 3.3v | | ||
| 19 - BUSSEL | GND | | ||
|
||
|
||
 | ||
|
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
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
55 changes: 55 additions & 0 deletions
55
documentation/displays/wiring-guide-generic-2.8-CPT-spi.md
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,55 @@ | ||
# Wiring Guides for Moddable supported SPI displays | ||
|
||
Copyright 2018 Moddable Tech, Inc. | ||
Revised: January 2, 2018 | ||
|
||
|
||
## BuyDisplay 2.8" CTP display | ||
**Part:** ER-TFTM028-4 LCD w/Capacitive Touch Screen Module | ||
[Datasheet](http://www.buydisplay.com/download/manual/ER-TFTM028-4_Datasheet.pdf) | ||
|
||
**Size:** 2.8", 320 x 240 | ||
|
||
**Type:** TFT LCD | ||
|
||
**Interface:** SPI | ||
|
||
**Drivers:** video [ILI9341](../../documentation/drivers/ili9341/ili9341.md), touch FT6206 | ||
|
||
**Availability:** [2.8" BuyDisplay CTP display] (http://www.buydisplay.com/default/2-8-inch-tft-touch-shield-for-arduino-w-capacitive-touch-screen-module) | ||
|
||
**Description:** This BuyDisplay screen is highly configurable and can be ordered with varying touch modules, main power voltage and connection types. This sample is for the 3.3v CTP version. | ||
|
||
This display supports many configurations. For this sample Moddable configured the display IMO settings to support 4 wire SPI. See the ER-TFTM028-4 [datasheet](http://www.buydisplay.com/download/manual/ER-TFTM028-4_Datasheet.pdf). The jumper settings below are open or closed drag solder pads on the PCB. | ||
|
||
| IMO Mode | Jumper settings | ||
| --- | --- | | ||
| 4-wire SPI Interface | J2,J3,J4,J5 Short and J1, J6, J7, J8 Open. R1-R10=0R, R19=0R, R21-R28=0R. R17, R18, R20 not soldered. | ||
|
||
|
||
 | ||
|
||
**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. | ||
|
||
``` | ||
cd $MODDABLE/examples/piu/drag | ||
mcconfig -d -m -r 0 -f rgb565le -p esp screen=ili9341 touch=ft6206 | ||
``` | ||
|
||
|
||
**ESP8266 Pinout:** | ||
|
||
| BuyDisplay CTP Display | ESP8266 | ESP8266 Devboard label | ||
| --- | --- | --- | | ||
| 1 - VSS | GND | | ||
| 2 - VDD | 3.3V | | ||
| 21 - Reset | 3.3v | | ||
| 23 - CS | GPIO 15 | (D8) | ||
| 24 - SCK | GPIO 14 | (D5) | ||
| 25 - DC | GPIO 2 | (D4) | ||
| 27 - SDI | GPIO 13 | (D7) | ||
| 28 - CPT SDL | GPIO 4 | (D2) | ||
| 31 -CPT SDA | GPIO 5 | (D1) | ||
|
||
 | ||
|
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
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
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
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,44 @@ | ||
# Wiring Guides for Moddable supported SPI displays | ||
|
||
Copyright 2018 Moddable Tech, Inc. | ||
Revised: January 2, 2018 | ||
|
||
|
||
## Switch Science reflective LCD display | ||
**Part:** 2858: JDI - REFLCD - 128 | ||
|
||
**Size:** 1.28", 176 × 176 | ||
|
||
**Type:** Color reflective LCD (no backlight) | ||
|
||
**Interface:** SPI | ||
|
||
**Drivers:** video [lpm013m126a](../../documentation/drivers/lpm013m126a/lpm013m126a.md), No touch | ||
|
||
**Availability:** [1.28" Switch Science Color reflective LCD] (https://translate.google.com/translate?hl=en&sl=ja&tl=en&u=https%3A%2F%2Fwww.switch-science.com%2Fcatalog%2F2874%2F) | ||
|
||
**Description:** Moddable purchased this display in Tokyo. [Here](https://translate.googleusercontent.com/translate_c?depth=1&hl=en&rurl=translate.google.com&sl=ja&sp=nmt4&tl=en&u=https://www.switch-science.com/catalog/2858/&usg=ALkJrhijtlYZnC4qJ2sRkLE3mkVZujVU1w) is some info on the display. | ||
|
||
 | ||
|
||
**Moddable Sample code:** The Piu example [transitions](../../examples/piu/transitions/) is good for testing this display. The build command below includes the -d, debug flag. | ||
|
||
``` | ||
cd $MODDABLE/examples/piu/transitions | ||
mcconfig -d -m -r 0 -f rgb332 -p esp screen=lpm013m126a touch="" | ||
``` | ||
|
||
|
||
**ESP8266 Pinout:** | ||
|
||
| Switch Science LCD | ESP8266 | ESP8266 Devboard label | ||
| --- | --- | --- | | ||
| 14 - SCLK | GPIO 14 | (D5) | ||
| 13 - SI | GPIO 13 | (D7) | ||
| 15 - SCS | GPIO 15 | (D8) | ||
| DISP | 3.3v | | ||
| GND | GND | | ||
| VIN | 3.3v | | ||
|
||
 | ||
|