feat: 添加 UI 组件支持,整合界面元素和全局变量管理

This commit is contained in:
Wang Beihong
2026-03-06 20:03:31 +08:00
parent b8f33364d7
commit d532d037ab
18 changed files with 544 additions and 23 deletions

24
components/ui/fonts.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef EEZ_LVGL_UI_FONTS_H
#define EEZ_LVGL_UI_FONTS_H
#include <lvgl.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef EXT_FONT_DESC_T
#define EXT_FONT_DESC_T
typedef struct _ext_font_desc_t {
const char *name;
const void *font_ptr;
} ext_font_desc_t;
#endif
extern ext_font_desc_t fonts[];
#ifdef __cplusplus
}
#endif
#endif /*EEZ_LVGL_UI_FONTS_H*/