|
|
|
@ -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
|
|
|
|
|