Files
tthandClaude Opus 5.5 9652199464
pub-release / release (push) Successful in 37m52s
Merge upstream/dev (16 commits): UITask moved to src/helpers/ui
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:39:13 +01:00

35 lines
845 B
C++

#include <Arduino.h>
#include "target.h"
#include <helpers/ArduinoHelpers.h>
#ifdef DISPLAY_CLASS
DISPLAY_CLASS display;
MomentaryButton user_btn(PIN_USER_BTN, 1000, true, true);
UITask ui_task(&board, &display);
#endif
XiaoNrf52Board board;
RADIO_CLASS radio = new Module(P_LORA_NSS, P_LORA_DIO_1, P_LORA_RESET, P_LORA_BUSY, SPI);
WRAPPER_CLASS radio_driver(radio, board);
VolatileRTCClock fallback_clock;
AutoDiscoverRTCClock rtc_clock(fallback_clock);
#ifdef BUDKA_LINK_RX_PIN
BudkaLinkSensorManager sensors; // on-board sensors + a Chytra Budka on Serial1
#else
EnvironmentSensorManager sensors;
#endif
bool radio_init() {
rtc_clock.begin(Wire);
return radio.std_init(&SPI);
}
mesh::LocalIdentity radio_new_identity() {
RadioNoiseListener rng(radio);
return mesh::LocalIdentity(&rng); // create new random identity
}