帮助
This commit is contained in:
+3
-3
@@ -9,10 +9,10 @@ namespace ad7606 {
|
||||
|
||||
// 数据/控制引脚
|
||||
static const int PIN_AD_MISO = 8; // DOUTA -> ESP32 MISO
|
||||
static const int PIN_AD_CS = 12; // CS_N
|
||||
static const int PIN_AD_CS = 39; // CS_N
|
||||
static const int PIN_AD_CONVST = 13; // CONVST(CO-A/CO-B 共用)
|
||||
static const int PIN_AD_RESET = 5; // RESET
|
||||
static const int PIN_AD_BUSY = 14; // BUSY
|
||||
static const int PIN_AD_RESET = 40; // RESET
|
||||
static const int PIN_AD_BUSY = 38; // BUSY
|
||||
|
||||
// 可选:过采样和模式引脚(-1 表示不配置/已硬件固定)
|
||||
static const int PIN_AD_OS0 = -1;
|
||||
|
||||
+2
-1
@@ -2,6 +2,7 @@
|
||||
#define INIT_H
|
||||
|
||||
#include <Adafruit_ST7735.h>
|
||||
#include <U8g2_for_Adafruit_GFX.h>
|
||||
#include <Arduino.h>
|
||||
|
||||
namespace esp32 {
|
||||
@@ -17,7 +18,7 @@ bool loadSettings();
|
||||
void connectWiFi();
|
||||
|
||||
// 初始化系统
|
||||
void initSystem(Adafruit_ST7735& tft);
|
||||
void initSystem(Adafruit_ST7735& tft, U8G2_FOR_ADAFRUIT_GFX& u8g2);
|
||||
|
||||
// 获取后端接口 URL(来自 settings.json)
|
||||
const String& getBackendUrl();
|
||||
|
||||
Reference in New Issue
Block a user