diff --git a/libraries/Wire/src/Wire.cpp b/libraries/Wire/src/Wire.cpp index 37b09c58..08934e8d 100644 --- a/libraries/Wire/src/Wire.cpp +++ b/libraries/Wire/src/Wire.cpp @@ -47,7 +47,7 @@ void TwoWire::begin(int sdaPin, int sclPin, uint32_t frequency) { if(sdaPin < 0) { if(num == 0) { - sdaPin = I2C0_DEFAULT_SDA_PIN; + sdaPin = SDA; } else { return; } @@ -55,7 +55,7 @@ void TwoWire::begin(int sdaPin, int sclPin, uint32_t frequency) if(sclPin < 0) { if(num == 0) { - sclPin = I2C0_DEFAULT_SCL_PIN; + sclPin = SCL; } else { return; } diff --git a/libraries/Wire/src/Wire.h b/libraries/Wire/src/Wire.h index f54ac965..bd54c750 100644 --- a/libraries/Wire/src/Wire.h +++ b/libraries/Wire/src/Wire.h @@ -29,8 +29,6 @@ #include "freertos/queue.h" #define I2C_BUFFER_LENGTH 128 -#define I2C0_DEFAULT_SDA_PIN 21 -#define I2C0_DEFAULT_SCL_PIN 22 class TwoWire {