Support for RAK11310 WisBlock

This commit is contained in:
Florian Lippert 2025-12-01 21:29:03 +01:00
parent 405f703bfe
commit 07d6484b61
5 changed files with 270 additions and 0 deletions

View file

@ -0,0 +1,30 @@
#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;
}