【已解决】rgb_panel 示例中 运行组件里的lvgl的demos
Posted: Fri Jul 28, 2023 3:21 am
我刚接触esp32,用的是esp32s3,n16r8;环境是vscode+idf5.1;
esp-idf/examples/peripherals/lcd/rgb_panel,示例已经成功运行,现在想运行rgb_panel示例里lvgl组件的demo,
(路径是managed_components\lvgl__lvgl\demos)
ESP-IDF SDK Configuration Editor (menuconfig)里已经配置,LVGL configuration.demos里已经选勾,
如图: 无法找到lv_demo_widgets();
强行输入lv_demo_widgets();
编译提示
error: implicit declaration of function 'lv_demo_widgets' [-Werror=implicit-function-declaration]
加了
#include "../managed_components/lvgl__lvgl/demos/lv_demos.h"
编译提示
D:/t/rgb_panel/main/rgb_lcd_example_main.c:253: undefined reference to `lv_demo_widgets'
打开
managed_components\lvgl__lvgl\demos\widgets\lv_demo_widgets.c lv_demo_widgets.c文件里的#if LV_USE_DEMO_WIDGETS 是0
请问有什么好办法,我主要想知道,怎么调用managed_components/下面组件的demo,
先谢谢大家了
esp-idf/examples/peripherals/lcd/rgb_panel,示例已经成功运行,现在想运行rgb_panel示例里lvgl组件的demo,
(路径是managed_components\lvgl__lvgl\demos)
ESP-IDF SDK Configuration Editor (menuconfig)里已经配置,LVGL configuration.demos里已经选勾,
如图: 无法找到lv_demo_widgets();
强行输入lv_demo_widgets();
编译提示
error: implicit declaration of function 'lv_demo_widgets' [-Werror=implicit-function-declaration]
加了
#include "../managed_components/lvgl__lvgl/demos/lv_demos.h"
编译提示
D:/t/rgb_panel/main/rgb_lcd_example_main.c:253: undefined reference to `lv_demo_widgets'
打开
managed_components\lvgl__lvgl\demos\widgets\lv_demo_widgets.c lv_demo_widgets.c文件里的#if LV_USE_DEMO_WIDGETS 是0
请问有什么好办法,我主要想知道,怎么调用managed_components/下面组件的demo,
先谢谢大家了