build fix to support RTC detection code

此提交包含在:
taco
2025-03-11 09:34:52 +11:00
父節點 027b7d83cb
當前提交 c1faaf5e82
+7
查看文件
@@ -2,6 +2,7 @@
#include <MeshCore.h>
#include <Arduino.h>
#include <Wire.h>
#define P_LORA_NSS D13 //P1.13 45
#define P_LORA_DIO_1 D11 //P0.10 10
@@ -30,6 +31,12 @@ public:
pinMode(PIN_VBAT_READ, INPUT);
#if defined(PIN_BOARD_SDA) && defined(PIN_BOARD_SCL)
Wire.begin(PIN_BOARD_SDA, PIN_BOARD_SCL);
#else
Wire.begin();
#endif
pinMode(SX126X_POWER_EN, OUTPUT);
digitalWrite(SX126X_POWER_EN, HIGH);
delay(10); // give sx1262 some time to power up