This is an automated email from the ASF dual-hosted git repository.

btashton pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 852aa8a  examples/lvgldemo: Make input options depend on enabled 
drivers
852aa8a is described below

commit 852aa8a51162f361e220242a6fbd48dec800bbd3
Author: Gustavo Henrique Nihei <gustavo.ni...@espressif.com>
AuthorDate: Mon Apr 5 18:13:09 2021 -0300

    examples/lvgldemo: Make input options depend on enabled drivers
---
 examples/lvgldemo/Kconfig | 25 +++++++++++++++++--------
 1 file changed, 17 insertions(+), 8 deletions(-)

diff --git a/examples/lvgldemo/Kconfig b/examples/lvgldemo/Kconfig
index 8ccf76b..5e0e40f 100644
--- a/examples/lvgldemo/Kconfig
+++ b/examples/lvgldemo/Kconfig
@@ -11,13 +11,6 @@ menuconfig EXAMPLES_LVGLDEMO
 
 if EXAMPLES_LVGLDEMO
 
-config EXAMPLES_LVGLDEMO_CALIBRATE
-       bool "Calibrate touchscreen"
-       default y
-       ---help---
-               Calibrate touchscreen before demo start, but some touchscreen
-               don't need it, like capacitive touchscreen.
-
 config EXAMPLES_LVGLDEMO_BUFF_SIZE
        int "Display buffer size (in line)"
        default 20
@@ -80,6 +73,19 @@ config EXAMPLES_LVGLDEMO_STACKSIZE
        int "lvgldemo stack size"
        default 16384
 
+comment "Input configuration options"
+       depends on INPUT_TOUCHSCREEN || INPUT_MOUSE
+
+config EXAMPLES_LVGLDEMO_CALIBRATE
+       bool "Calibrate touchscreen"
+       default y
+       depends on INPUT_TOUCHSCREEN || INPUT_MOUSE
+       ---help---
+               Calibrate touchscreen before demo start, but some touchscreen
+               don't need it, like capacitive touchscreen.
+
+if INPUT_TOUCHSCREEN
+
 config EXAMPLES_LGVLDEMO_MINOR
        int "Touchscreen minor device number"
        default 0
@@ -95,11 +101,14 @@ config EXAMPLES_LGVLDEMO_DEVPATH
                The path to the touchscreen device.  This must be consistent 
with
                EXAMPLES_LGVLDEMO_MINOR. Default: "/dev/input0"
 
+endif # INPUT_TOUCHSCREEN
+
 config EXAMPLES_LGVLDEMO_MOUSE
        bool "Mouse interface"
        default n
+       depends on INPUT_MOUSE
        ---help---
                The LittleVGL demo can also be configured to work with a mouse
                driver by setting this option.
 
-endif
+endif # EXAMPLES_LVGLDEMO

Reply via email to