From e6df9f55f157b130c0ba08319a7fa67e32b4a3e5 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Wed, 7 Apr 2021 12:08:01 -0300 Subject: [PATCH] examples/lvgldemo: Add config to enable Slideshow mode for Widgets demo --- examples/lvgldemo/Kconfig | 11 +++++++++++ examples/lvgldemo/lv_ex_conf.h | 8 ++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/examples/lvgldemo/Kconfig b/examples/lvgldemo/Kconfig index 2b2344d4c..8ccf76bcc 100644 --- a/examples/lvgldemo/Kconfig +++ b/examples/lvgldemo/Kconfig @@ -61,6 +61,17 @@ config EXAMPLES_LVGLDEMO_WIDGETS endchoice +if EXAMPLES_LVGLDEMO_WIDGETS + +config EXAMPLES_LVGLDEMO_WIDGETS_SLIDESHOW + bool "Enable Slideshow mode for Widgets example" + default n + ---help--- + Slideshow mode consists of a non-interactive demonstration of the + Widgets example. + +endif # EXAMPLES_LVGLDEMO_WIDGETS + config EXAMPLES_LVGLDEMO_PRIORITY int "lvgl task priority" default 100 diff --git a/examples/lvgldemo/lv_ex_conf.h b/examples/lvgldemo/lv_ex_conf.h index 4d8c606d2..78cedf96a 100644 --- a/examples/lvgldemo/lv_ex_conf.h +++ b/examples/lvgldemo/lv_ex_conf.h @@ -1,5 +1,5 @@ /**************************************************************************** - * examples/lvgldemo/lv_ex_conf.h + * apps/examples/lvgldemo/lv_ex_conf.h * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -45,7 +45,11 @@ #define LV_USE_DEMO_WIDGETS 1 #if LV_USE_DEMO_WIDGETS -#define LV_DEMO_WIDGETS_SLIDESHOW 0 +#ifdef CONFIG_EXAMPLES_LVGLDEMO_WIDGETS_SLIDESHOW +#define LV_DEMO_WIDGETS_SLIDESHOW CONFIG_EXAMPLES_LVGLDEMO_WIDGETS_SLIDESHOW +#else +#define LV_DEMO_WIDGETS_SLIDESHOW 0 +#endif #endif /* Printer demo, optimized for 800x480 */