I'm having a very difficult time getting I2C working properly on the rpi pico RP2040 (not NanoRP2040).
I have tried in PlatformIO and Arduino IDE, using Earles Arduino-Pico core and the official Arduino core.
I got it going using Earles core, because I had to change the I2C pins from 4/5 to 0/1 for the specific PCB that I developed by using the Wire.setSDA(pin) and Wire.setSCL(pin) functions in that core.
But I am having so many issues on my windows machine not that I cannot get anything to work or upload from that machine. So I have switched to a Linux machine that can upload.
But I would like to use the official Arduino core, but I cannot find any way to switch the i2c pins.
I tried changing the variables in the pins_arduino.h in teh variants folder, but it did not work.
Is there any way to change the SDA and SCL pins when using the official Arduino core for RP2040?
I'm sorry, I see I have not expressed myself correct.
I am not working on a rpi Pico, but I am using the RP2040 MCU, but on a board I made which has i2c0 on GP0 and GP1. Therefore I want to change the i2c pins to those pins while also using the Arduino Core for the RP2040.
But I cannot find a way to do this that works. I tried defining PIN_WIRE_SDA and SCL to 0 and 1.
Yes I have also tried to comment that out completely.
I am trying to get an 128x64 OLED working with the SSD1306 using Adafruit libs for those parts. I have an EEPROM working on the board on i2c0 pina 0/1, but when I try with just the display and associated code, I cannot get the i2c to work. I have also tried many other ssd306 libs, but there is not always something that does not work.
If I change the core to the official Arduino code for RP2040, there is a missing file in the adafruit lib "pgmspace.h" and it won't compile.
I was ordering a new board version anyway, so I have moved the i2c pins to GPIO4/5 instead.