fix IIC port

This commit is contained in:
Dylanliacc 2025-06-16 11:44:04 +08:00 committed by Jonathan Bennett
parent 6374ffea35
commit cbdd7eae70
2 changed files with 6 additions and 4 deletions

View File

@ -59,8 +59,8 @@ const uint32_t g_ADigitalPinMap[] = {
// D16 - Battery voltage ADC input // D16 - Battery voltage ADC input
31, // D16 P0.31 VBAT_ADC 31, // D16 P0.31 VBAT_ADC
// GROVE // GROVE
0, // D17 P0.00 GROVESDA 43, // D17 P0.00 GROVESDA
1, // D18 P0.01 GROVESCL 44, // D18 P0.01 GROVESCL
// FLASH // FLASH
21, // D19 P0.21 (QSPI_SCK) 21, // D19 P0.21 (QSPI_SCK)

View File

@ -74,10 +74,12 @@
// Communication Interfaces // Communication Interfaces
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// I2C Configuration // I2C Configuration
#define HAS_WIRE 1 //#define HAS_WIRE 1
#define PIN_WIRE_SDA D14 // P0.09 #define PIN_WIRE_SDA D14 // P0.09
#define PIN_WIRE_SCL D15 // P0.10 #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 #define I2C_NO_RESCAN
static const uint8_t SDA = PIN_WIRE_SDA; static const uint8_t SDA = PIN_WIRE_SDA;