#I2C OLED not working on custom keyboard (RP2040)

7 messages · Page 1 of 1 (latest)

slim flax
#

Hello, I’m trying to get an I²C OLED display working on my custom RP2040 keyboard, but nothing is showing on it.

The keyboard should be wired correctly — I tested the OLED with a small MicroPython script on the same pins and it worked, so the display itself and wiring are fine.

the MicroPython script I used:

from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
import time

i2c = I2C(0, scl=Pin(1, Pin.PULL_UP), sda=Pin(0, Pin.PULL_UP), freq=400000)

devices = i2c.scan()
print("I2C devices found:", devices)

oled = SSD1306_I2C(128, 32, i2c)

oled.fill(1)
oled.show()

while True:
    time.sleep(1)

Any advice or guidance would be greatly appreciated — thank you in advance!

slim flax
#

Created a mcuconf file and put in the content you provided, but its still not working, can I somehow check and print out connected I2C devices like I did in my MicroPython script?

cold stag
#

And you made the config.h change from the first link?

slim flax
cold stag
slim flax
#

sorry for the delay, I have tried the i2c scanner and it didn't find any devices, now I tried the MicroPython script again and it didnt find anything also. Is it possible I fried the OLED display ?