Raspberry Pi 4 LED Shim + 0.96 OLED Display not working

I have an issue with getting both LED Shim and 1.3-inch I2C IIC OLED Display SH1106 128x64 Pixels 3.3V working together.

Both work find independently, but when i connect them on the same raspberry pi 4, the LED Shim works fine but the OLED display stops working.

I have the LED shim connected across all the GPIO pins as normal and have the OLED display connected on

Pin 1
Pin 3
Pin 5
Pin 9

Can someone please help.

The pinout for the LED shim is here
LED SHIM at Raspberry Pi GPIO Pinout
It used i2c address 0x75
The 1.12 Mono OLED uses address 0x3C/0x3D so no conflicts.

Doesn’t work at all, or just when you try to use both at the same time?

What does i2cdetect -y 1 show?

They both work but not at the same time

I have removed the led shim and used your command “i2cdetect -y 1 show”
I get the following response while the oled display is working. (Dont have the led shim connected)

pi@raspberrypi:~ $ i2cdetect -y 1 show
Usage: i2cdetect [-y] [-a] [-q|-r] I2CBUS [FIRST LAST]
i2cdetect -F I2CBUS
i2cdetect -l
I2CBUS is an integer or an I2C bus name
If provided, FIRST and LAST limit the probing range.

Okay seems to work now get the the following with just the oled connected

pi@raspberrypi:~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- 3c – -- –
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --

I have removed the oled and reconnected the led shim and get the following
Led shim working okay

pi@raspberrypi:~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – 75 – --

You can run that command with multiple devices connected, it should show all detected devices, 3c and 75 in your case.
Are you running your code from one python file?

I now have everything connected again (oled + led shim) and now have the oled working
but the led shim has stopped working, both devices are visible when i check i2cdetect

pi@raspberrypi:~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- 3c – -- –
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – 75 – --

Not sure about this, i have installed the 0.96 oled display, this was always working, i cant remember how i installed it.

The issue i have is adding the led shim, i cannot get it to work together with the oled display.
I am not an expert and will need some guidance on how to get this working, appreciate your help.

I have two LED Shims on working systems. One runs 24/7, it also has a BME280 and RV3028 on i2c. And a Unicorn Hat HD on SPI. All my code is in, and runs from one python file. This ensures that only one device is accessed over i2c at any one time.

I would run one of the examples for the one that’s not working from thonny or what ever ide you prefer. Then see if you get any error messages. And take not of what happens or doesn’t happen and post back.

If it’s just your code that’s not working post it here. You can use three ` before and after for code tags.