mirror of https://github.com/meshcore-dev/MeshCore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
469 B
23 lines
469 B
#include "RAK11200Board.h"
|
|
|
|
void RAK11200Board::begin() {
|
|
ESP32Board::begin();
|
|
|
|
pinMode(PIN_VBAT_READ, INPUT);
|
|
|
|
pinMode(SX126X_POWER_EN, OUTPUT);
|
|
digitalWrite(SX126X_POWER_EN, HIGH);
|
|
delay(10); // give sx1262 some time to power up
|
|
|
|
#ifdef PIN_USER_BTN
|
|
pinMode(PIN_USER_BTN, INPUT_PULLUP);
|
|
#endif
|
|
|
|
#ifdef PIN_USER_BTN_ANA
|
|
pinMode(PIN_USER_BTN_ANA, INPUT_PULLUP);
|
|
#endif
|
|
}
|
|
|
|
const char* RAK11200Board::getManufacturerName() const {
|
|
return "RAK 11200";
|
|
}
|
|
|