26 lines
403 B
C++
26 lines
403 B
C++
#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);
|
|
|
|
} // namespace init
|
|
} // namespace esp32
|
|
|
|
#endif // INIT_H
|