[renesas][hmi-board]update lvgl config and doc.

This commit is contained in:
Rbb666 2024-05-09 13:18:41 +08:00 committed by guo
parent 1cac9e92b5
commit 5712ff1a32
5 changed files with 28 additions and 20 deletions

View File

@ -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

View File

@ -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` 生成配置相关代码

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 23 KiB