Skip to content

Commit

Permalink
samples: subsys: display: lvgl: add wio_terminal board
Browse files Browse the repository at this point in the history
Add Wio Terminal configuration to the LVGL sample with button and
keypad overlay.

Signed-off-by: Joel Guittet <[email protected]>
  • Loading branch information
joelguittet committed Jan 24, 2024
1 parent e6da1f3 commit 3a071d1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions samples/subsys/display/lvgl/boards/wio_terminal.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_INPUT=y
23 changes: 23 additions & 0 deletions samples/subsys/display/lvgl/boards/wio_terminal.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright (c) 2024 Joel Guittet
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <zephyr/dt-bindings/lvgl/lvgl.h>

/ {
lvgl_button_input {
compatible = "zephyr,lvgl-button-input";
input = <&buttons>;
input-codes = <INPUT_KEY_0>;
coordinates = <160 120>;
};

lvgl_keypad_input {
compatible = "zephyr,lvgl-keypad-input";
input = <&joystick>;
input-codes = <INPUT_KEY_ENTER INPUT_KEY_DOWN INPUT_KEY_UP INPUT_KEY_LEFT INPUT_KEY_RIGHT>;
lvgl-codes = <LV_KEY_ENTER LV_KEY_DOWN LV_KEY_UP LV_KEY_LEFT LV_KEY_RIGHT>;
};
};

0 comments on commit 3a071d1

Please sign in to comment.