The following code runs correctly if I use i2c port 0 changing (wire1 to wire). But this would occupy two useful PWM channels, so I want to use i2c port1.
If I modify the code to "wire1" this redirects the port pins that are used correctly. I can see the data on an oscilloscope. But the readings available in the print statements are all overflows. What must I do to pick up the correct data from the wire library. I tries using i2c_wire library but got confused.
BR PeteD.
If I modify the code to "wire1" this redirects the port pins that are used correctly. I can see the data on an oscilloscope. But the readings available in the print statements are all overflows. What must I do to pick up the correct data from the wire library. I tries using i2c_wire library but got confused.
BR PeteD.