From eb43355cf83b31d3e4c5cb7e5a589f8a8b07ebb0 Mon Sep 17 00:00:00 2001 From: Strykar <2946372+Strykar@users.noreply.github.com> Date: Thu, 7 May 2026 09:36:28 +0530 Subject: [PATCH] xiao_nrf52: move Wire to NFC pins to unblock BLE pairing PIN_WIRE_SDA=D7/PIN_WIRE_SCL=D6 collide with PIN_SERIAL1_RX/TX defined in variant.h. Muxing Wire on those pads lets the BLE companion advertise briefly then go silent on the Wio-SX1262 for XIAO baseboard. Move Wire to the NFC pads (P0.30/P0.31, Arduino pins 30/31), matching what Meshtastic does for the same baseboard. Co-Authored-By: Claude Opus --- variants/xiao_nrf52/platformio.ini | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/variants/xiao_nrf52/platformio.ini b/variants/xiao_nrf52/platformio.ini index a085433688..af248c594b 100644 --- a/variants/xiao_nrf52/platformio.ini +++ b/variants/xiao_nrf52/platformio.ini @@ -26,8 +26,11 @@ build_flags = ${nrf52_base.build_flags} -D SX126X_DIO3_TCXO_VOLTAGE=1.8 -D SX126X_CURRENT_LIMIT=140 -D SX126X_RX_BOOSTED_GAIN=1 - -D PIN_WIRE_SCL=D6 - -D PIN_WIRE_SDA=D7 + ; D6/D7 are also defined as PIN_SERIAL1_TX/RX in variant.h. Muxing Wire + ; there causes BLE/USB instability after init on the Wio-SX1262 for XIAO + ; baseboard. Use the NFC pads (P0.30 NFC1, P0.31 NFC2) instead. + -D PIN_WIRE_SDA=30 + -D PIN_WIRE_SCL=31 -D PIN_USER_BTN=PIN_BUTTON1 -D DISPLAY_CLASS=NullDisplayDriver build_src_filter = ${nrf52_base.build_src_filter}