Hi. I'm trying to select the i2c interface for the qwiic cable on the qt py rp2040. I found this bit of code for defining a custom wire interface:
TwoWire Wire(&sercom1, A1, A2);
But I cant figure out what &sercom1 is. Because it is not defined anywhere in there code i think it is because the tutorial is for the atsamd21 and not the rp2040. Does anybody know how to fix this?
I looked at the source files and believe you should be able to just use Wire and Wire1 for the two I2C interfaces. The pins have been configured for you in the pins_arduino.h and the interfaces have been declared in the Wire.cpp file. Just include Wire.h and then call Wire.begin() or Wire1.begin().