From cbdd7eae70ab626f92ef3888c2ed4101c3374f49 Mon Sep 17 00:00:00 2001 From: Dylanliacc Date: Mon, 16 Jun 2025 11:44:04 +0800 Subject: [PATCH] fix IIC port --- variants/seeed_wio_tracker_L1/variant.cpp | 4 ++-- variants/seeed_wio_tracker_L1/variant.h | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/variants/seeed_wio_tracker_L1/variant.cpp b/variants/seeed_wio_tracker_L1/variant.cpp index 6c34d63e6..a045b0cf9 100644 --- a/variants/seeed_wio_tracker_L1/variant.cpp +++ b/variants/seeed_wio_tracker_L1/variant.cpp @@ -59,8 +59,8 @@ const uint32_t g_ADigitalPinMap[] = { // D16 - Battery voltage ADC input 31, // D16 P0.31 VBAT_ADC // GROVE - 0, // D17 P0.00 GROVESDA - 1, // D18 P0.01 GROVESCL + 43, // D17 P0.00 GROVESDA + 44, // D18 P0.01 GROVESCL // FLASH 21, // D19 P0.21 (QSPI_SCK) diff --git a/variants/seeed_wio_tracker_L1/variant.h b/variants/seeed_wio_tracker_L1/variant.h index b257fd9b6..57cefa4bb 100644 --- a/variants/seeed_wio_tracker_L1/variant.h +++ b/variants/seeed_wio_tracker_L1/variant.h @@ -74,10 +74,12 @@ // Communication Interfaces // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ // I2C Configuration -#define HAS_WIRE 1 +//#define HAS_WIRE 1 #define PIN_WIRE_SDA D14 // P0.09 #define PIN_WIRE_SCL D15 // P0.10 -#define WIRE_INTERFACES_COUNT 1 +#define WIRE_INTERFACES_COUNT 2 +#define PIN_WIRE1_SDA D18 +#define PIN_WIRE1_SCL D17 #define I2C_NO_RESCAN static const uint8_t SDA = PIN_WIRE_SDA;