Nano BLE and RTC / OLED not working when wired to A4 and A5?

Hello.

How can I get the RTC and OLED display (both wired to A4 and A5) working with the Nano BLE? I just started experimenting with this BLE. And I'm not sure why I couldn't get them working? The L LED (orange) blinks rapidly then slows down for a few seconds and cycles again.

I don't have this problem when uploading my sketch to the older Nano.

So the wiring is like this:

RTC SDA --> OLED SDA --> A4
RTC SCL --> OLED SCL --> A5

What am I missing here and why I can't get them working together?

What am I missing here

We would have no idea, because you forgot to post the code (using code tags), links to the data sheets or product pages for the modules, and a hand drawn wiring diagram.

Did you connect power and ground? Are there pullups on the I2C lines? Did you try the I2C address scanner with each module independently?

Please take a look at the "How to use this forum" post, which gives instructions on how to successfully ask for help.

My bad. Sorry.

But I figured it out by running parts of the sketch layer by layer. Turns out that in Arduino BLE, it doesn’t like it when you indicate the analog pins like pinMode(x, LOW). You need to specify the pins properly like (Ax, LOW) or else the L LED will keep on blinking — the sketch will be uploaded, but it will never run.

So I had to retype all the pins like this and now my sketch is working.

This issue doesn’t happen with the IoT or older Nano. But only with BLE.