-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: subsys: display: lvgl: add wio_terminal board
Add Wio Terminal configuration to the LVGL sample with button and keypad overlay. Signed-off-by: Joel Guittet <[email protected]>
- Loading branch information
1 parent
e6da1f3
commit 3a071d1
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
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 @@ | ||
CONFIG_INPUT=y |
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,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>; | ||
}; | ||
}; |