Two devices with I2C and an Arduino Uno...
I'm trying to make a clock with a DS3231 (I2C) and an OLED 1.3" IIC (also I2C)
I am using the U8glib library and the DS3231 library.
Now to my problem...
I have hooked up both devices to the SDA and SCL pins on my Arduino Uno with separate 5V and GND pins.
I have set up this code:
In which I've tried to have the code talk to one of the devices after another, 10 seconds apart...
Which works, but the display seems to have some problems with that. It displays the two lines of text cut off, I'll add a picture.
Whenever I remove the lines where the code interacts with the RealTimeClock module, the display works fine... I've read about adresses overlapping, but I don't know how to deal with that, or if that's even the case here.
I'd be delighted if anyone had an idea and could maybe help!
Have a nice day!

5 Replies