mirror of
https://git.beihong.wang/wangbeihong/iot-bedroom-environment-controller.git
synced 2026-04-23 20:43:04 +08:00
refactor(display): migrate from ST7735S to ST7789 driver
- Rename component directory from lvgl_st7735s_use to lvgl_st7789_use - Update CMakeLists.txt to register new source files - Add comprehensive README documentation for ST7789 configuration - Add time_alarm module with SNTP synchronization and alarm management - Add sensors header for sensor abstraction layer
This commit is contained in:
35
main/app_state.h
Normal file
35
main/app_state.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef APP_STATE_H
|
||||
#define APP_STATE_H
|
||||
|
||||
#include "common.h"
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/semphr.h"
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern SemaphoreHandle_t xSensorDataMutex;
|
||||
extern SemaphoreHandle_t xMqttMessageMutex;
|
||||
extern SemaphoreHandle_t xTimePeriodMutex;
|
||||
extern SemaphoreHandle_t xControlFlagMutex;
|
||||
|
||||
extern bool servo_control_flag;
|
||||
extern bool fan_control_flag;
|
||||
extern bool buzzer_control_flag;
|
||||
extern bool light_source_control_flag;
|
||||
extern uint8_t led_brightness_value;
|
||||
extern bool led_backlight_on;
|
||||
|
||||
extern device_message_t g_device_message;
|
||||
extern float g_temperature_threshold;
|
||||
extern bool g_cooling_mode_enabled;
|
||||
extern bool g_high_temp_alerted;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // APP_STATE_H
|
||||
Reference in New Issue
Block a user