- 从vars.c和vars.h中移除了空气温度整型变量及其相关的获取/设置函数 - 更新了FlowGlobalVariables枚举,移除了空气温度整型常量 - 修改了main.c中的UI任务,实现了每3秒切换屏幕的机制 - 清理了app_main函数,移除了空气温度整型的设置,仅保留字符串表示形式
29 lines
537 B
C
29 lines
537 B
C
#ifndef EEZ_LVGL_UI_IMAGES_H
|
|
#define EEZ_LVGL_UI_IMAGES_H
|
|
|
|
#include <lvgl.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern const lv_img_dsc_t img_temp;
|
|
extern const lv_img_dsc_t img_humi;
|
|
extern const lv_img_dsc_t img_mois;
|
|
extern const lv_img_dsc_t img_light;
|
|
|
|
#ifndef EXT_IMG_DESC_T
|
|
#define EXT_IMG_DESC_T
|
|
typedef struct _ext_img_desc_t {
|
|
const char *name;
|
|
const lv_img_dsc_t *img_dsc;
|
|
} ext_img_desc_t;
|
|
#endif
|
|
|
|
extern const ext_img_desc_t images[4];
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /*EEZ_LVGL_UI_IMAGES_H*/ |