in “Seeed Studio XIAO RP2040 with MicroPython” ssd1306 example does not work. I belive it is due to the definition of the sda and scl pins (i tried 5 and 4 but this gives an error as well)
from ssd1306 import SSD1306_I2C
from machine import Pin, I2C
from time import sleep
i2c = I2C(1, scl=Pin(7), sda=Pin(6), freq=200000)#Grove - OLED Display 0.96" (SSD1315)
oled = SSD1306_I2C(128, 64, i2c)
Also cannot get I2C working with the Raspberry Pi Pico Arduino core by earlephilhower. I tried
Wire1.setSDA (D4);
Wire1.setSCL (D5);
Wire1.begin (SLAVE_ADDRESS);
but this does not work either.
How do I get I2C to work. Than you for your assistance