Skip to content
Permalink
Browse files

samples: display: ili9340: Get ILI9340 device by DT label.

Get ILI9340 device by DT label instead of a fixed name.

Signed-off-by: Bernard Lee <bernard.lee@nordicsemi.no>
  • Loading branch information...
leewkb4567 authored and nashif committed Mar 19, 2019
1 parent 0744adf commit 1b3b4612655a63d855d6b2f94363b971602ecba1
Showing with 1 addition and 1 deletion.
  1. +1 −1 samples/display/ili9340/src/main.c
@@ -39,7 +39,7 @@ void main(void)
size_t cnt = 0;
int h_step;

dev = device_get_binding("ILI9340");
dev = device_get_binding(DT_ILITEK_ILI9340_0_LABEL);

if (dev == NULL) {
LOG_ERR("Device not found. Aborting test.");

0 comments on commit 1b3b461

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