mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
build fix to support RTC detection code
This commit is contained in:
parent
027b7d83cb
commit
c1faaf5e82
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue