mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-11-21 22:47:05 +00:00
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.
21 lines
499 B
C++
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";
|
|
}
|