【已解决】rgb_panel 示例中 运行组件里的lvgl的demos

yueyueyue
Posts: 6
Joined: Fri Jul 28, 2023 2:48 am

【已解决】rgb_panel 示例中 运行组件里的lvgl的demos

Postby yueyueyue » 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里已经选勾,
如图:
20230728110612.png
20230728110612.png (16.28 KiB) Viewed 2089 times
无法找到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
20230728111518.png
20230728111518.png (45.21 KiB) Viewed 2089 times
lv_demo_widgets.c文件里的#if LV_USE_DEMO_WIDGETS 是0

请问有什么好办法,我主要想知道,怎么调用managed_components/下面组件的demo,
先谢谢大家了

ESP_Xuxin
Posts: 83
Joined: Thu Sep 22, 2022 3:35 am

Re: rgb_panel 示例中 运行组件里的lvgl的demos

Postby ESP_Xuxin » Tue Aug 01, 2023 10:42 am

https://github.com/espressif/esp-dev-ki ... lvgl_demos
可以这个 demo,已经将工程调用好了,也是依赖的 LVGL 组件

yueyueyue
Posts: 6
Joined: Fri Jul 28, 2023 2:48 am

Re: rgb_panel 示例中 运行组件里的lvgl的demos

Postby yueyueyue » Tue Aug 01, 2023 1:40 pm

谢谢你的建议,后来我又新建工程,用组件管理器方式安装lvgl8.3.8,,
然后复制rgb_panel 示例的:
sdkconfig.ci.single_fb_with_bb,
sdkconfig.defaults,
sdkconfig.defaults.esp32s3
再删除了sdkconfig,让vscode自动生成,
然后复制rgb_panel 示例的代码,编译就没有报错了,就可以运行lvgl的demo了,
但是开启双缓存的模式的话,运行lv_demo_music();(开启了自动运行)会闪白屏,,帧率提高满多,单缓存就不会

Who is online

Users browsing this forum: No registered users and 48 guests