Help two OLED screens, they work but can't change between the two

Hello

I'm trying to get my Oled screens working but no luck!

I have two different one big (1.3) and one small (0.96) Oled, links the the screens at the bottom.

The big one exactly the same as Adafruit's works whit Adafruit library, it is only to upload the graphics test and works, wired on A4 and A5.

The small One works on the u8glib library and whit this constructor U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NO_ACK); wired on A4 and A5. using u8glib graphics test.

Both one are using I2C but i can't change the screens between the two arduinos ! >:(
The only difference is that i am using two different arduinos one Pro Micro and one Uno.
It is also two different colors on the screens the big one is white and the small is blue.

The thing is that

Arduino Pro Micro


Oled 0.96 i2c

Oled 1.3 ic2
https://learn.adafruit.com/assets/2617

Regards

Please have a look here:

http://forum.arduino.cc/index.php?topic=219419.msg2392480#msg2392480

Oliver

Answering in the other thread Oliver. :slight_smile:
(If someone search and finds this thread in the future)

But i have tried that one now and getting error code.

GraphicsTest.ino: In function 'void setup()':
GraphicsTest.ino:196:3: error: 'I2C_SLA' was not declared in this scope
GraphicsTest.ino:197:3: error: 'u8g1' was not declared in this scope
Fel vid kompilering.

Live long!

What are the address of the two slave OLED devices?

Did you say you have two arduino masters on the wire? That's not a good idea.
Did you add pullup resisters to the two wires?

Hello Jack!
No i have two Arduinos and two screens, both are 128x64 oled, but different sizes, 1.3 and .96.

I have one big breadboard putted the two screens on it and driving each screens from each arduino.
But when i am trying to switch the screens from each arduino it's not working.

The small screen is hooked up like this > A4 to Sda, A5 to Scl and works whit u8g graphics test.
The big one is hooked up like this > A4 to Data,A5 to Clk and it works whit Adafruits grapics test.

Live long!

Edit : yes i am changing the wiring to fit the different pin layouts of each screen. (the pins are mirrored and the big one has 4pin gap between power ground and the data pins :slight_smile:

Ok, so you are switching wires to change the screens (I2C) between two different arduinos.
Both screens work if hooked to arduino A and B. But when you try to switch them they don't work.
The two arduinos are not connected together.

Are you also switching the power rails?
Do both displays have the same I2C address?
Have you added the pullup resistors to the wire? How long is the wire? less than 3 meters should be ok.