Skip to content

Commit b3d2477

Browse files
authored
Merge pull request #12 from FatherMarco1971/main
Passed wire parameter to PinsI2C constructor
2 parents 08ad219 + 1c512c5 commit b3d2477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DriverPins.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class DriverPins {
245245
void addI2C(PinsI2C pin) { i2c.push_back(pin); }
246246
void addI2C(PinFunction function, GpioPin scl, GpioPin sda, int port = -1,
247247
uint32_t frequency = 100000, TwoWire &wire = Wire) {
248-
PinsI2C pin(function, scl, sda, port, frequency);
248+
PinsI2C pin(function, scl, sda, port, frequency, wire);
249249
addI2C(pin);
250250
}
251251

0 commit comments

Comments
 (0)