Customer Asks: RTC and OLED on same pins



I have a Rtc which connects to pin A4 and A5 on my Arduino uno , I also have a OLED display which also connects to the same pins.

They both work fine independently, but now I would like to have the display show the time, and not sure how to connect them both to the same Arduino.

Appreciate if you could clarify this for me.


Hi there,

As you can see from the diagram below, the Official Arduino Uno has 6 analog pins.

My suggestion would be to use different pins for the Real Time Clock.
You might find these Male to female jumper wires (which can broken apart) might be handy for repositioning the RTC.

As always, please don’t hesitate to contact me if you have any questions or queries whatsoever!




If both devices are i2c, they would need to daisy chained on A4 and A5. Check the working sketches for both and if they both call the Wire library, they are i2c.