user80852: I have a strange issue while trying to run the hello world code on an arduino nano connected to an OLED display.
This is the code I used:
    #include <Adafruit_SSD1306.h>
Adafruit_SSD1306 display = Adafruit_SSD1306(128, 64, &Wire);

void setup() {

  // SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally
  display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // Address 0x3C for 128x32

  display.display();
  delay(2000);

  display.clearDisplay();      //this line to clear previous logo
  display.setTextColor(WHITE); //without this no display
  display.print("Hello World!");//your TEXT here
  display.display();            //to shows or update your TEXT
}

void loop() {

 }

But I get this on the display.


Any idea what I could be missing?
Thanks !

user80852: Mystery solved :)
After some more reading it appears that the display driver is actually SH1106, so after using the right library I got the display working.

80852: <p>I have a strange issue while trying to run the hello world code on an arduino nano connected to an OLED display.</p>
<p>This is the code I used:</p>
<pre><code>    #include &lt;Adafruit_SSD1306.h&gt;
Adafruit_SSD1306 display = Adafruit_SSD1306(128, 64, &amp;Wire);

void setup() {

  // SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally
  display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // Address 0x3C for 128x32

  display.display();
  delay(2000);

  display.clearDisplay();      //this line to clear previous logo
  display.setTextColor(WHITE); //without this no display
  display.print(&quot;Hello World!&quot;);//your TEXT here
  display.display();            //to shows or update your TEXT
}

void loop() {

 }
</code></pre>
<p>But I get this on the display.
<a href="https://i.stack.imgur.com/gAuRF.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gAuRF.jpg" alt="OLED" /></a></p>
<p><a href="https://i.stack.imgur.com/fUgRa.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fUgRa.jpg" alt="enter image description here" /></a></p>
<p>Any idea what I could be missing?</p>
<p>Thanks !</p>
 80852: <p>Mystery solved :)</p>
<p>After some more reading it appears that the display driver is actually SH1106, so after using the <a href="https://github.com/adafruit/Adafruit_SH110x" rel="nofollow noreferrer">right</a> library I got the display working.<a href="https://i.stack.imgur.com/UTS74.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UTS74.jpg" alt="enter image description here" /></a></p>
