File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed
Expand file tree Collapse file tree 4 files changed +5
-7
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 55
66#ifdef XIAO_NRF52
77
8- // LoRa radio module pins for Seeed Xiao-nrf52
8+ // redefine lora pins if using the S3 variant of SX1262 board
99#ifdef SX1262_XIAO_S3_VARIANT
1010 #undef P_LORA_DIO_1
1111 #undef P_LORA_BUSY
1212 #undef P_LORA_RESET
1313 #undef P_LORA_NSS
14+ #undef SX126X_RXEN
1415 #define P_LORA_DIO_1 D0
1516 #define P_LORA_BUSY D1
1617 #define P_LORA_RESET D2
1718 #define P_LORA_NSS D3
19+ #define SX126X_RXEN D4
1820#endif
19- // #define SX126X_POWER_EN 37
20-
21-
2221
2322class XiaoNrf52Board : public mesh ::MainBoard {
2423protected:
Original file line number Diff line number Diff line change @@ -50,8 +50,7 @@ build_flags = ${nrf52840_xiao.build_flags}
5050 -D ENV_INCLUDE_INA219 =1
5151build_src_filter = ${nrf52840_xiao.build_src_filter}
5252 +<helpers/*.cpp>
53- +<helpers/sensors>
54- +<helpers/nrf52/XiaoNrf52Board.cpp>
53+ +<helpers/sensors>
5554 +<../variants/xiao_nrf52>
5655debug_tool = jlink
5756upload_protocol = nrfutil
Original file line number Diff line number Diff line change 33#define RADIOLIB_STATIC_ONLY 1
44#include <RadioLib.h>
55#include <helpers/RadioLibWrappers.h>
6- #include <helpers/nrf52/ XiaoNrf52Board.h>
6+ #include <XiaoNrf52Board.h>
77#include <helpers/CustomSX1262Wrapper.h>
88#include <helpers/AutoDiscoverRTCClock.h>
99#include <helpers/ArduinoHelpers.h>
You can’t perform that action at this time.
0 commit comments