MeshCore/variants/radiomaster_900_bandit/target.h
gjelsoe 6c0da535b8 Add Radiomaster Bandit/Bandit Nano support
Added support for 5-Way analog joystick.
Added Custom Sh1115 OLED driver.
Added NeoPixels support for Radiomaster Bandit.

Power output 20-30 dbm (100mW-1000mW).

Changed so Analog joystick can be used in UI.
Changed so NeoPixels is used for new Message. (Color can be defined).

Radiomaster Bandit Micro uses the same code as Nano.
2026-02-11 19:45:59 +01:00

33 lines
843 B
C

#pragma once
#define RADIOLIB_STATIC_ONLY 1
// #include <RadioLib.h>
#include <BanditBoard.h>
#include <helpers/AutoDiscoverRTCClock.h>
#include <helpers/SensorManager.h>
#include <helpers/radiolib/CustomSX1276Wrapper.h>
#include <helpers/radiolib/RadioLibWrappers.h>
#ifdef DISPLAY_CLASS
#include <helpers/ui/AnalogJoystick.h>
#include <helpers/ui/SH1115Display.h>
#endif
extern BanditBoard board;
extern WRAPPER_CLASS radio_driver;
extern SensorManager sensors;
extern AutoDiscoverRTCClock rtc_clock;
#ifdef DISPLAY_CLASS
extern DISPLAY_CLASS display;
#if defined(PIN_USER_JOYSTICK)
extern AnalogJoystick analog_joystick;
#endif
#endif
bool radio_init();
uint32_t radio_get_rng_seed();
void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr);
void radio_set_tx_power(uint8_t dbm);
mesh::LocalIdentity radio_new_identity();