2025-11-15 15:22:29 +08:00

29 lines
487 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 INIT_H
#define INIT_H
#include <Adafruit_ST7735.h>
#include <Arduino.h>
namespace esp32 {
namespace init {
// 在屏幕上打印日志
void tftLog(const char* msg, uint16_t color);
// 读取并解析配置文件
bool loadSettings();
// 连接 WiFi
void connectWiFi();
// 初始化系统
void initSystem(Adafruit_ST7735& tft);
// 获取后端接口 URL来自 settings.json
const String& getBackendUrl();
} // namespace init
} // namespace esp32
#endif // INIT_H