target.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #define RADIOLIB_STATIC_ONLY 1
  3. #include <RadioLib.h>
  4. #include <helpers/radiolib/RadioLibWrappers.h>
  5. #include <WioTrackerL1Board.h>
  6. #include <helpers/radiolib/CustomSX1262Wrapper.h>
  7. #include <helpers/AutoDiscoverRTCClock.h>
  8. #include <helpers/ArduinoHelpers.h>
  9. #include <helpers/sensors/EnvironmentSensorManager.h>
  10. #ifdef DISPLAY_CLASS
  11. #if defined(WIO_TRACKER_L1_EINK)
  12. #include <helpers/ui/GxEPDDisplay.h>
  13. #else
  14. #include <helpers/ui/SH1106Display.h>
  15. #endif
  16. #include <helpers/ui/MomentaryButton.h>
  17. #endif
  18. #include <helpers/sensors/EnvironmentSensorManager.h>
  19. extern WioTrackerL1Board board;
  20. extern WRAPPER_CLASS radio_driver;
  21. extern AutoDiscoverRTCClock rtc_clock;
  22. extern EnvironmentSensorManager sensors;
  23. #ifdef DISPLAY_CLASS
  24. extern DISPLAY_CLASS display;
  25. extern MomentaryButton user_btn;
  26. extern MomentaryButton joystick_left;
  27. extern MomentaryButton joystick_right;
  28. extern MomentaryButton back_btn;
  29. #endif
  30. bool radio_init();
  31. uint32_t radio_get_rng_seed();
  32. void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr);
  33. void radio_set_tx_power(int8_t dbm);
  34. mesh::LocalIdentity radio_new_identity();