mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-03-31 03:55:46 +00:00
31 lines
607 B
C++
31 lines
607 B
C++
#include "RAK11310Board.h"
|
|
|
|
#include <Arduino.h>
|
|
#include <Wire.h>
|
|
|
|
void RAK11310Board::begin() {
|
|
// for future use, sub-classes SHOULD call this from their begin()
|
|
startup_reason = BD_STARTUP_NORMAL;
|
|
|
|
#ifdef P_LORA_TX_LED
|
|
pinMode(P_LORA_TX_LED, OUTPUT);
|
|
#endif
|
|
|
|
#ifdef PIN_VBAT_READ
|
|
pinMode(PIN_VBAT_READ, INPUT);
|
|
#endif
|
|
|
|
#if defined(PIN_BOARD_SDA) && defined(PIN_BOARD_SCL)
|
|
Wire.setSDA(PIN_BOARD_SDA);
|
|
Wire.setSCL(PIN_BOARD_SCL);
|
|
#endif
|
|
|
|
Wire.begin();
|
|
|
|
delay(10); // give sx1262 some time to power up
|
|
}
|
|
|
|
bool RAK11310Board::startOTAUpdate(const char *id, char reply[]) {
|
|
return false;
|
|
}
|