Files
MeshCore-Solo/variants/lilygo_tbeam_SX1276/target.h
T

30 lines
847 B
C
Raw Normal View History

2025-06-22 17:46:30 -07:00
#pragma once
#define RADIOLIB_STATIC_ONLY 1
//#include <RadioLib.h>
#include <helpers/radiolib/RadioLibWrappers.h>
2025-06-22 17:46:30 -07:00
#include <helpers/esp32/TBeamBoard.h>
#include <helpers/radiolib/CustomSX1276Wrapper.h>
2025-06-22 17:46:30 -07:00
#include <helpers/AutoDiscoverRTCClock.h>
#include <helpers/sensors/EnvironmentSensorManager.h>
#ifdef DISPLAY_CLASS
#include <helpers/ui/SSD1306Display.h>
2025-08-17 16:18:39 +10:00
#include <helpers/ui/MomentaryButton.h>
2025-06-22 17:46:30 -07:00
#endif
extern TBeamBoard board;
extern WRAPPER_CLASS radio_driver;
extern AutoDiscoverRTCClock rtc_clock;
extern EnvironmentSensorManager sensors;
#ifdef DISPLAY_CLASS
extern DISPLAY_CLASS display;
2025-08-17 16:18:39 +10:00
extern MomentaryButton user_btn;
2025-06-22 17:46:30 -07:00
#endif
bool radio_init();
uint32_t radio_get_rng_seed();
void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr);
2026-01-03 20:35:14 +01:00
void radio_set_tx_power(int8_t dbm);
2025-06-22 17:46:30 -07:00
mesh::LocalIdentity radio_new_identity();