完成初代的雏形设计
This commit is contained in:
34
components/ui/vars.h
Normal file
34
components/ui/vars.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#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_AIR_TEMPERATURE = 0,
|
||||
FLOW_GLOBAL_VARIABLE_AIR_HUMIDITY = 1,
|
||||
FLOW_GLOBAL_VARIABLE_LIGHT_INTENSITY = 2
|
||||
};
|
||||
|
||||
// Native global variables
|
||||
|
||||
extern const char *get_var_air_temperature();
|
||||
extern void set_var_air_temperature(const char *value);
|
||||
extern const char *get_var_air_humidity();
|
||||
extern void set_var_air_humidity(const char *value);
|
||||
extern const char *get_var_light_intensity();
|
||||
extern void set_var_light_intensity(const char *value);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /*EEZ_LVGL_UI_VARS_H*/
|
||||
Reference in New Issue
Block a user