Xiao rp2040 i2c

I use Wire (I2C0) and Wire1 (I2C1) properly in the sketch.

When using Wire (I2C0)
Wire.setSDA (D2);
Wire.setSCL (D3);
Wire.begin ();

When using Wire1 (I2C1)
Wire1.setSDA (D4);
Wire1.setSCL (D5);
Wire1.begin ();

I checked some sketches and they are working fine.

1 Like