Skip to content
Permalink
Browse files

samples: display: ili9340: Add 2 Arduino shield sample configurations.

Add 2 Arduino shield sample configurations.
1. nRF52 DK (PCA10040) with Seeed 2.8" TFT Touch Shield v2.0.
2. nRF52840 DK (PCA10056) with Adafruit 2.8" TFT Touch Shield (1947).

Signed-off-by: Bernard Lee <bernard.lee@nordicsemi.no>
  • Loading branch information...
leewkb4567 authored and nashif committed Mar 19, 2019
1 parent 3d2b994 commit 591ed2677d99bc835e79b0667837ffeca84ceca1
@@ -0,0 +1,2 @@
CONFIG_SPI_1=y
CONFIG_SPI_1_NRF_SPI=y
@@ -0,0 +1,5 @@
CONFIG_SPI_1=y
CONFIG_SPI_1_NRF_SPI=y

CONFIG_ILI9340_RGB565=y
CONFIG_ILI9340_LCD_SEEED_TFTV2=y
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

&spi1 {
status = "ok";
sck-pin = <47>;
mosi-pin = <45>;
miso-pin = <46>;
cs-gpios = <&gpio1 12 0>;

ili9340@0 {
compatible = "ilitek,ili9340";
label = "DISPLAY";
spi-max-frequency = <10000000>;
reg = <0>;
cmd-data-gpios = <&gpio1 11 0>;
};
};
@@ -0,0 +1,22 @@
/*
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

&spi1 {
status = "ok";
sck-pin = <25>;
mosi-pin = <23>;
miso-pin = <24>;
cs-gpios = <&gpio0 16 0>;

ili9340@0 {
compatible = "ilitek,ili9340";
label = "DISPLAY";
spi-max-frequency = <10000000>;
reg = <0>;
reset-gpios = <&gpio0 21 0>;
cmd-data-gpios = <&gpio0 17 0>;
};
};
@@ -4,5 +4,5 @@ sample:
tests:
sample.display.ili9340:
build_only: true
platform_whitelist: nucleo_l476rg
platform_whitelist: nucleo_l476rg nrf52_pca10040 nrf52840_pca10056
tags: display

0 comments on commit 591ed26

Please sign in to comment.
You can’t perform that action at this time.