Files
MeshCore/variants/dfrobot_lorawan_esp32s3/DFRobotLoRaBoard.cpp
T
Martin-hub1 c2f65e5f7f Add DFRobot LoRaWAN ESP32-S3 Companion BLE firmware
Add a board variant for the DFRobot DFR1195 (ESP32-S3-WROOM-1-N4, SX1262, 80x160 ST7735S) and a Companion BLE environment. The display and radio use separate SPI controllers: the SX1262 is on FSPI and the ST7735 is on HSPI. ST7735Display selects that HSPI bus and the 160x80 init sequence only when DFROBOT_LORAWAN_ESP32S3 is defined.
2026-10-22 17:53:57 +08:00

21 lines
499 B
C++

#include "DFRobotLoRaBoard.h"
void DFRobotLoRaBoard::begin() {
// SX1262 module power. Held high for the whole boot; Companion does not
// drop into deep sleep, so the pin does not need an RTC hold.
pinMode(LORA_POWER_EN, OUTPUT);
digitalWrite(LORA_POWER_EN, HIGH);
delay(10);
periph_power.begin();
pinMode(PIN_LED, OUTPUT);
digitalWrite(PIN_LED, HIGH);
ESP32Board::begin();
}
const char* DFRobotLoRaBoard::getManufacturerName() const {
return "DFRobot LoRaWAN ESP32-S3";
}