mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Fixed T-Beam board to work with sleep
This commit is contained in:
parent
0d11a02e71
commit
def1902688
1 changed files with 8 additions and 10 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue