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

31 lines
872 B
C
Raw Normal View History

#pragma once
2025-03-27 19:34:16 +11:00
#define RADIOLIB_STATIC_ONLY 1
#include <RadioLib.h>
#include <helpers/radiolib/RadioLibWrappers.h>
2025-10-11 21:52:48 +02:00
#include <HeltecV3Board.h>
#include <helpers/radiolib/CustomSX1262Wrapper.h>
#include <helpers/AutoDiscoverRTCClock.h>
2025-05-03 13:14:03 +10:00
#include <helpers/SensorManager.h>
2025-05-22 12:07:45 +00:00
#include <helpers/sensors/EnvironmentSensorManager.h>
#ifdef DISPLAY_CLASS
#include <helpers/ui/SSD1306Display.h>
2025-08-08 20:01:31 +10:00
#include <helpers/ui/MomentaryButton.h>
#endif
extern HeltecV3Board board;
2025-03-27 19:34:16 +11:00
extern WRAPPER_CLASS radio_driver;
extern AutoDiscoverRTCClock rtc_clock;
2025-05-22 12:07:45 +00:00
extern EnvironmentSensorManager sensors;
#ifdef DISPLAY_CLASS
extern DISPLAY_CLASS display;
2025-08-08 20:01:31 +10:00
extern MomentaryButton user_btn;
#endif
bool radio_init();
2025-03-27 19:34:16 +11:00
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-03-27 19:34:16 +11:00
mesh::LocalIdentity radio_new_identity();