Files
ESP32_dass2/include/lvgl_demo.h
T
2026-06-12 17:03:10 +08:00

27 lines
448 B
C

#ifndef LVGL_DEMO_H
#define LVGL_DEMO_H
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief 初始化 LVGL + TFT 显示驱动,并启动 Demo UI
*
* 内部步骤:
* 1. lv_init()
* 2. 添加 SPI TFT 设备 (ST7789 / ST7735)
* 3. 注册 LVGL flush 回调
* 4. 创建 Demo UI 对象
* 5. 启动周期性 LVGL 刷新 Task
*/
esp_err_t lvgl_demo_start(void);
#ifdef __cplusplus
}
#endif
#endif /* LVGL_DEMO_H */