Files
iot-bedroom-environment-con…/components/lvgl_st7735s_use/include/ui_display.h
Wang Beihong a0febb1e5b feat: 智能家居控制系统 v1.0 初始版本
- 环境监测:温湿度/光照/空气质量传感器采集
- 智能控制:时间段/降温/通风三种自动模式
- 闹钟系统:3个闹钟+温和唤醒功能
- 远程控制:MQTT双向通信
- 本地显示:LVGL图形界面
- 双MCU架构,FreeRTOS 10任务并行
- 完整的1250行README文档
2026-02-07 23:04:28 +08:00

38 lines
900 B
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef UI_DISPLAY_H
#define UI_DISPLAY_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief 初始化UI界面
*
* 该函数负责创建LVGL的用户界面元素用于显示传感器数据
*/
void ui_display_init(void);
/**
* @brief 更新传感器数据显示
*
* 该函数用于更新LVGL界面上的传感器数据
*
* @param temperature 温度值(°C)-1.0表示无效
* @param humidity 湿度值(%)-1.0表示无效
* @param lux 光照强度(lx)-1.0表示无效
* @param ppm 空气中有害气体浓度(ppm)
* @param quality_level 空气质量等级描述
*/
void ui_update_sensor_data(float temperature, float humidity, float lux, float ppm, const char* quality_level);
/* Time page APIs */
void ui_show_time_page(void);
void ui_show_sensor_page(void);
void ui_time_update(void);
void ui_toggle_page(void);
#ifdef __cplusplus
}
#endif
#endif /* UI_DISPLAY_H */