zephyr/samples/display/st7789v/nrf52_pca10040.overlay
Marc Reilly 40a3e600a9 samples: display: add a simple sample for st7789v display
This adds a basic app which puts some rectangles on the display

It's hard to write an equivalent README to the rest of the sample
documentation, as the LCD I have uses a custom board thrown together for
testing. (ie other LCDs have publicly available modules)

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
2019-08-08 10:11:47 -05:00

25 lines
442 B
Text

/*
* Copyright (c) 2019 Creative Product Design
*
* SPDX-License-Identifier: Apache-2.0
*/
&spi0 {
status = "okay";
sck-pin = <3>;
mosi-pin = <5>;
miso-pin = <26>;
cs-gpios = <&gpio0 27 0>;
st7789v@0 {
compatible = "sitronix,st7789v";
label = "DISPLAY";
spi-max-frequency = <20000000>;
reg = <0>;
cmd-data-gpios = <&gpio0 25 0>;
reset-gpios = <&gpio0 2 0>;
width = <320>;
height = <170>;
y-offset = <35>;
};
};