Fix SolarXiao INA260 discovery and carrier I2C pins

This commit is contained in:
mikecarper committed 2026-10-21 14:26:07 -07:00
1 parent 6c3bf00691
commit e7141400d6
4 files changed
+31 -9

No files matched your search

+3 -1
View File
@@ -46,7 +46,9 @@ void XiaoNrf52Board::begin() {
pinMode(PIN_USER_BTN, INPUT_PULLUP);
#endif
#if defined(PIN_WIRE_SDA) && defined(PIN_WIRE_SCL)
#if defined(PIN_BOARD_SDA) && defined(PIN_BOARD_SCL)
Wire.setPins(PIN_BOARD_SDA, PIN_BOARD_SCL);
#elif defined(PIN_WIRE_SDA) && defined(PIN_WIRE_SCL)
Wire.setPins(PIN_WIRE_SDA, PIN_WIRE_SCL);
#endif
+6 -2
View File
@@ -167,8 +167,9 @@ lib_deps =
; =============================================================================
; SolarXiao (wehooper4) boards
; Same Xiao nRF52840 module. I2C is already on the NFC pads in the base target;
; these solar builds additionally skip the RTC probe.
; Same Xiao nRF52840 module. The carrier uses SDA=P0.09, SCL=P0.10
; on the NFC pads, and its INA260 is at 0x40. Skip the RTC probe because
; the LTC4162 charger shares the usual RTC address.
; 30S = standard SX1262 (22 dBm), 33S = 2W PA variant (9 dBm limit)
; =============================================================================
@@ -176,6 +177,9 @@ lib_deps =
extends = Xiao_nrf52
build_flags = ${Xiao_nrf52.build_flags}
-D DISABLE_I2C_RTC_SCAN
-D PIN_BOARD_SDA=PIN_NFC1
-D PIN_BOARD_SCL=PIN_NFC2
-D TELEM_INA260_ADDRESS=0x40
-D MANUFACTURER_STRING='"SolarXiao 30S"'
[env:solarxiao_30S_companion_radio_ble]