feat(app): 添加显示模块支持ST7789V显示屏

- 新增display_module.c实现LVGL显示功能,包括标签创建和定时刷新
- 在CMakeLists.txt中添加display_module.c到应用源文件列表
- 在app.overlay中配置显示设备选择和SPI接口使能
- 增加DISPLAY、MIPI_DBI、ST7789V、LVGL等相关配置选项
- 调整pm_static.yml中的应用分区大小以适应新的固件尺寸
- 禁用MCUBOOT和MCUMGR相关配置以节省空间
This commit is contained in:
2026-03-20 17:25:57 +08:00
parent 7e0f224ec8
commit 6ca70d2580
6 changed files with 163 additions and 19 deletions

View File

@@ -1,6 +1,10 @@
#include <zephyr/dt-bindings/gpio/gpio.h>
/ {
chosen {
zephyr,display = &st7789v3;
};
zephyr,user {
vbat-en-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
io-channels = <&adc 5>, <&adc 7>;
@@ -78,3 +82,15 @@
qdec: &qdec {
status = "okay";
};
&spi2 {
status = "okay";
};
&mipi_dbi {
status = "okay";
};
&st7789v3 {
status = "okay";
};