Open g-struchin opened 1 year ago
@g-struchin Got the same error, fixed it by removing the line TwoWire CustomI2C0(20, 21);
, and add / update the following three line instead:
Wire.setSDA(20); // Add this
Wire.setSCL(21); // Add this
if (!mpu.begin(0x68, &Wire, 0)) { // Replace &CustomI2C0 with &Wire
...
Check the Arduino-Pico documentation for more infos.
I get an error
I think the 3rd argument is missing. But I don't understand what type it should be. \ArduinoData\packages\rp2040\hardware\rp2040\2.7.1\libraries\Wire\src/Wire.h file:
arduino version: