Arduino uno with multiple oled displays

You uploaded a sketch that makes one OLED show "Hello World"
And you should post this complete sketch
that does print the "Hello World"

You are using

u8g2.begin();
u8g2.firstPage();
u8g2.nextPage()

where it is UNclear what is happening inside these function-calls
and how does some eventual preparation look like.

What is so hard about posting this complete Hello-World-sketch??
You can do it using this method with a few mouse-clicks

These pins look UN-soldered. You can't expect that UN-soldered pins give reliable contact.

You should have learned now:
trying to be fast just slows everything down
for fastest problem-solution take time

  • do basic tests one by one
  • I2C-Scanner test for each display stand alone
    • I2C-Scanner test for one display connected through I2C-multiplexer
    • I2C-Scanner test for both display connected through I2C-multiplexer
  • testing with the most basic possible code that does not use loops
    looks like this
tcaselect(0); // select first display 
// do all the details with first display
u8g2.begin();
u8g2.firstPage();
u8g2.nextPage()

tcaselect(1); // select second display
// do all the details with second display
u8g2.begin();
u8g2.firstPage();
u8g2.nextPage()
  • to post the full code = the complete sketch from the very first line to the very last line
  • posting picture (what you have done)
    • but posting pictures where the wiring what is connected to what can be seen easily

All that happens if you try to be fast is a delay
with asking back for the details you meant to leave out to post quicker

best regards Stefan

1 Like