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:
Wang Beihong
2026-03-29 02:31:29 +08:00
parent 8c33fe7411
commit f0ac50642d
50 changed files with 15494 additions and 3282 deletions

35
main/app_state.h Normal file
View 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