#pragma once #define RADIOLIB_STATIC_ONLY 1 #include #include #include #include "WioTrackerL2Board.h" #include #include #include #include #ifdef DISPLAY_CLASS #include "WioTrackerL2Display.h" #include #endif // The L76K's power and reset lines are on the IO expander, out of the NMEA // provider's reach: begin() / stop() / reset() drive them here, so GPS off // (Settings, duty cycling) really powers the receiver down. class L2GpsProvider : public MicroNMEALocationProvider { bool _uart_off = false; public: using MicroNMEALocationProvider::MicroNMEALocationProvider; void begin() override; void stop() override; void reset() override; bool isEnabled() override; }; extern WioTrackerL2Board board; extern WRAPPER_CLASS radio_driver; extern AutoDiscoverRTCClock rtc_clock; extern EnvironmentSensorManager sensors; extern L2GpsProvider gps; #ifdef DISPLAY_CLASS extern DISPLAY_CLASS display; extern MomentaryButton user_btn; #endif bool radio_init(); mesh::LocalIdentity radio_new_identity();