diff --git a/bsp/renesas/ra6m3-hmi-board/board/Kconfig b/bsp/renesas/ra6m3-hmi-board/board/Kconfig index 0c8173f97b..aed7e63046 100644 --- a/bsp/renesas/ra6m3-hmi-board/board/Kconfig +++ b/bsp/renesas/ra6m3-hmi-board/board/Kconfig @@ -96,19 +96,26 @@ menu "Hardware Drivers Config" select BSP_USING_LCD select BSP_USING_TOUCH default n - menuconfig BSP_USING_LVGL_DEMO - bool "Enable LVGL demo for LCD" - if BSP_USING_LVGL_DEMO - config BSP_USING_LVGL_MUSIC_DEMO - bool "Enable LVGL music demo" - depends on PKG_LVGL_VER_NUM < 0x900000 - select PKG_USING_LV_MUSIC_DEMO - default n - config BSP_USING_LVGL_STRESS_DEMO - bool "Enable LVGL stress demo" - depends on PKG_LVGL_VER_NUM > 0x900000 - default n - endif + endif + + menuconfig BSP_USING_LVGL_DEMO + bool "Enable LVGL demo for LCD" + select BSP_USING_LVGL + select BSP_USING_LCD_RGB + if BSP_USING_LVGL_DEMO + config BSP_USING_LVGL_MUSIC_DEMO + bool "Enable LVGL music demo" + select PKG_USING_LV_MUSIC_DEMO + default n + help + Enable this option to include LVGL music demo. -- LVGL8.3.x + + config BSP_USING_LVGL_STRESS_DEMO + bool "Enable LVGL stress demo" + default n + depends on !BSP_USING_LVGL_MUSIC_DEMO + help + Enable this option to include LVGL stress demo. -- LVGL9.3.x endif endmenu diff --git a/bsp/renesas/ra6m3-hmi-board/docs/lvgl使用文档.md b/bsp/renesas/ra6m3-hmi-board/docs/lvgl使用文档.md index 8eac67ae65..3515e43885 100644 --- a/bsp/renesas/ra6m3-hmi-board/docs/lvgl使用文档.md +++ b/bsp/renesas/ra6m3-hmi-board/docs/lvgl使用文档.md @@ -8,17 +8,18 @@ ## RGB 屏使用配置 -在 `Hardware Drivers Config → On-chip Peripheral Drivers → Enable LVGL for LCD` 中使能 `Enable LVGL for LCD_RGB565` 选项 +在 `Hardware Drivers Config → On-chip Peripheral Drivers ` 使能 Enable LVGL demo for LCD 选项 ![](picture/lvgl/22.png) -* 进入Enable LVGL demo for LCD 中使能 LVGL stress demo +* 进入Enable LVGL demo for LCD 中使能 LVGL demo -![](picture/lvgl/23.png) + * Enable LVGL music demo 绑定的是LVGL8.3.x 版本 + * Enable LVGL stress demo 绑定的是LVGL9.x 版本 -进入 RT-Thread online packages → multimedia packages → LVGL: powerful and easy-to-use embedded GUI library中,选择配套的LVGL版本:8.3.X 或者 9.X - -![](picture/lvgl/24.png) + ![](picture/lvgl/24.png) +* 接下来进入: `RT-Thread online packages → multimedia packages → LVGL: powerful and easy-to-use embedded GUI library → LVGL (official): Light and Versatile Graphics Library` 中选择LVGL版本 + ![](picture/lvgl/23.png) 接下来退出菜单界面,输入 `pkgs --update` 命令手动联网获取 lvgl 的软件包到 `packages` 文件夹下 @@ -36,7 +37,7 @@ 我们默认在fsp中使能了屏幕和Dave2d的外设 -![](C:\Users\RTT\AppData\Roaming\Typora\typora-user-images\image-20240429162653262.png) +![](picture/lvgl/26.png) 点击 `Generate Project Content` 生成配置相关代码 diff --git a/bsp/renesas/ra6m3-hmi-board/docs/picture/lvgl/22.png b/bsp/renesas/ra6m3-hmi-board/docs/picture/lvgl/22.png index 88699a0270..5571eb69d5 100644 Binary files a/bsp/renesas/ra6m3-hmi-board/docs/picture/lvgl/22.png and b/bsp/renesas/ra6m3-hmi-board/docs/picture/lvgl/22.png differ diff --git a/bsp/renesas/ra6m3-hmi-board/docs/picture/lvgl/23.png b/bsp/renesas/ra6m3-hmi-board/docs/picture/lvgl/23.png index b039bebad9..e25e18dd61 100644 Binary files a/bsp/renesas/ra6m3-hmi-board/docs/picture/lvgl/23.png and b/bsp/renesas/ra6m3-hmi-board/docs/picture/lvgl/23.png differ diff --git a/bsp/renesas/ra6m3-hmi-board/docs/picture/lvgl/24.png b/bsp/renesas/ra6m3-hmi-board/docs/picture/lvgl/24.png index efd01200ef..889747bdc5 100644 Binary files a/bsp/renesas/ra6m3-hmi-board/docs/picture/lvgl/24.png and b/bsp/renesas/ra6m3-hmi-board/docs/picture/lvgl/24.png differ