Fixed T-Beam board to work with sleep
This commit is contained in:
@@ -2,16 +2,7 @@
|
|||||||
|
|
||||||
#if defined(TBEAM_SUPREME_SX1262) || defined(TBEAM_SX1262) || defined(TBEAM_SX1276)
|
#if defined(TBEAM_SUPREME_SX1262) || defined(TBEAM_SX1262) || defined(TBEAM_SX1276)
|
||||||
|
|
||||||
#include <Wire.h>
|
// Define pin mappings BEFORE including ESP32Board.h so sleep() can use P_LORA_DIO_1
|
||||||
#include <Arduino.h>
|
|
||||||
#include "XPowersLib.h"
|
|
||||||
#include "helpers/ESP32Board.h"
|
|
||||||
#include <driver/rtc_io.h>
|
|
||||||
//#include <RadioLib.h>
|
|
||||||
//#include <helpers/RadioLibWrappers.h>
|
|
||||||
//#include <helpers/CustomSX1262Wrapper.h>
|
|
||||||
//#include <helpers/CustomSX1276Wrapper.h>
|
|
||||||
|
|
||||||
#ifdef TBEAM_SUPREME_SX1262
|
#ifdef TBEAM_SUPREME_SX1262
|
||||||
// LoRa radio module pins for TBeam S3 Supreme SX1262
|
// LoRa radio module pins for TBeam S3 Supreme SX1262
|
||||||
#define P_LORA_DIO_0 -1 //NC
|
#define P_LORA_DIO_0 -1 //NC
|
||||||
@@ -90,6 +81,13 @@
|
|||||||
// SX1276
|
// SX1276
|
||||||
// };
|
// };
|
||||||
|
|
||||||
|
// Include headers AFTER pin definitions so ESP32Board::sleep() can use P_LORA_DIO_1
|
||||||
|
#include <Wire.h>
|
||||||
|
#include <Arduino.h>
|
||||||
|
#include "XPowersLib.h"
|
||||||
|
#include "helpers/ESP32Board.h"
|
||||||
|
#include <driver/rtc_io.h>
|
||||||
|
|
||||||
class TBeamBoard : public ESP32Board {
|
class TBeamBoard : public ESP32Board {
|
||||||
XPowersLibInterface *PMU = NULL;
|
XPowersLibInterface *PMU = NULL;
|
||||||
//PhysicalLayer * pl;
|
//PhysicalLayer * pl;
|
||||||
|
|||||||
Reference in New Issue
Block a user