- 增加了 `ui.h` 中资源数组的大小以容纳新的 UI 元素。 - 更新了 `ui_font_chinese_16.c`,添加了更多中文字符以更好地支持本地化。 - 在 `vars.h` 中添加了用于管理火焰状态的新函数,增强了系统的监测能力。
56 lines
1.6 KiB
C
56 lines
1.6 KiB
C
#ifndef EEZ_LVGL_UI_VARS_H
|
|
#define EEZ_LVGL_UI_VARS_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// enum declarations
|
|
|
|
// Flow global variables
|
|
|
|
enum FlowGlobalVariables {
|
|
FLOW_GLOBAL_VARIABLE_NONE
|
|
};
|
|
|
|
// Native global variables
|
|
|
|
extern float get_var_temp();
|
|
extern void set_var_temp(float value);
|
|
extern float get_var_light_val();
|
|
extern void set_var_light_val(float value);
|
|
extern float get_var_humity_val();
|
|
extern void set_var_humity_val(float value);
|
|
extern const char *get_var_door_status();
|
|
extern void set_var_door_status(const char *value);
|
|
extern float get_var_ice_weight();
|
|
extern void set_var_ice_weight(float value);
|
|
extern const char *get_var_food_status();
|
|
extern void set_var_food_status(const char *value);
|
|
extern float get_var_air_quity();
|
|
extern void set_var_air_quity(float value);
|
|
extern const char *get_var_hot_status();
|
|
extern void set_var_hot_status(const char *value);
|
|
extern const char *get_var_cool_status();
|
|
extern void set_var_cool_status(const char *value);
|
|
extern const char *get_var_fan_status();
|
|
extern void set_var_fan_status(const char *value);
|
|
extern const char *get_var_light_status();
|
|
extern void set_var_light_status(const char *value);
|
|
extern const char *get_var_hum_status();
|
|
extern void set_var_hum_status(const char *value);
|
|
extern const char *get_var_local_time();
|
|
extern void set_var_local_time(const char *value);
|
|
extern const char *get_var_system_ip();
|
|
extern void set_var_system_ip(const char *value);
|
|
extern const char *get_var_fire_status();
|
|
extern void set_var_fire_status(const char *value);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /*EEZ_LVGL_UI_VARS_H*/ |