mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 14:58:12 +00:00
Added getIRQGpio to return DIO0 for Lilygo T3S3 SX1276
This commit is contained in:
10
variants/lilygo_t3s3_sx1276/LilygoT3S3SX1276Board.h
Normal file
10
variants/lilygo_t3s3_sx1276/LilygoT3S3SX1276Board.h
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <helpers/ESP32Board.h>
|
||||||
|
|
||||||
|
class LilygoT3S3SX1276Board : public ESP32Board {
|
||||||
|
public:
|
||||||
|
uint32_t getIRQGpio() override {
|
||||||
|
return P_LORA_DIO_0; // default for SX1276
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include "target.h"
|
#include "target.h"
|
||||||
|
|
||||||
ESP32Board board;
|
LilygoT3S3SX1276Board board;
|
||||||
|
|
||||||
#if defined(P_LORA_SCLK)
|
#if defined(P_LORA_SCLK)
|
||||||
static SPIClass spi;
|
static SPIClass spi;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
#define RADIOLIB_STATIC_ONLY 1
|
#define RADIOLIB_STATIC_ONLY 1
|
||||||
#include <RadioLib.h>
|
#include <RadioLib.h>
|
||||||
#include <helpers/radiolib/RadioLibWrappers.h>
|
#include <helpers/radiolib/RadioLibWrappers.h>
|
||||||
#include <helpers/ESP32Board.h>
|
#include <LilygoT3S3SX1276Board.h>
|
||||||
#include <helpers/radiolib/CustomSX1276Wrapper.h>
|
#include <helpers/radiolib/CustomSX1276Wrapper.h>
|
||||||
#include <helpers/AutoDiscoverRTCClock.h>
|
#include <helpers/AutoDiscoverRTCClock.h>
|
||||||
#include <helpers/SensorManager.h>
|
#include <helpers/SensorManager.h>
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
#include <helpers/ui/MomentaryButton.h>
|
#include <helpers/ui/MomentaryButton.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern ESP32Board board;
|
extern LilygoT3S3SX1276Board board;
|
||||||
extern WRAPPER_CLASS radio_driver;
|
extern WRAPPER_CLASS radio_driver;
|
||||||
extern AutoDiscoverRTCClock rtc_clock;
|
extern AutoDiscoverRTCClock rtc_clock;
|
||||||
extern SensorManager sensors;
|
extern SensorManager sensors;
|
||||||
|
|||||||
Reference in New Issue
Block a user