# Arduino Nano + SSD1306

**URL:** <https://forum.arduino.cc/t/arduino-nano-ssd1306/1141796>\
**Category:** Displays\
**Created:** [June 26, 2023, 12:13pm UTC](https://forum.arduino.cc/t/arduino-nano-ssd1306/1141796 "2023-06-26T12:13:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasquez77](https://avatars.discourse-cdn.com/v4/letter/v/edb3f5/32.png) [@vasquez77](https://forum.arduino.cc/u/vasquez77)\
**Post date:** [June 26, 2023, 12:13pm UTC](https://forum.arduino.cc/t/arduino-nano-ssd1306/1141796/1 "2023-06-26T12:13:02Z")

</div>

Hello everyone...

I'm completely running out of control...  
Just so easy to connect to an Oled-Display via I²C (SSD1306 / 128x32), but i still can't get it running.

Connection SDA --\> A4, SCL --\> A5, GND--\> GND, VCC--\>+5V  
I'am using the sample from the Adafruit SSD1306 lib (ssd1306\_128x32\_I²C).

I run an I²C adress-finder, which found 0X3C.  
I put this adress to:

```arduino
if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { // Address 0x3C for 128x32
    Serial.println(F("SSD1306 allocation failed"));
    for(;;); // Don't proceed, loop forever
  }

```

Programm seems to work, because at the end of the sample code, the serial terminal throws the x- and y-positions...

The display ist still dark - it's not possible to see anything.  
I checked the 5 to 3,3V regulator on the display and it's working.

I set a different adress (from 0X3C to 0x3D, or 0X3E) and in this case, the x- and y-positions were also displayed in the terminal...this is strange for me, because the adress should be 0X3C ???  
The code should generate a failure, like:

```arduino
Serial.println(F("SSD1306 allocation failed"));

```

However, i also played with this parameter (think it should be -1 for only SDA/SCL):

```arduino

// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins)
#define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin)

```

Does anyone has an idea, why the display is still dark ?  
Grettings...

---

<div class="post-metadata">

**Author:** ![xfpd](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/xfpd/32/1120236_2.png) [@xfpd](https://forum.arduino.cc/u/xfpd)\
**Post date:** [June 26, 2023, 6:15pm UTC](https://forum.arduino.cc/t/arduino-nano-ssd1306/1141796/2 "2023-06-26T18:15:48Z")

</div>

You need `display.display();` to make your `display.println();` show anything on the OLED.

[edit]

```arduino
display.println("¡Ola, Mundo!");
display.display();

```

---

<div class="post-metadata">

**Author:** ![vasquez77](https://avatars.discourse-cdn.com/v4/letter/v/edb3f5/32.png) [@vasquez77](https://forum.arduino.cc/u/vasquez77)\
**Post date:** [June 27, 2023, 7:09am UTC](https://forum.arduino.cc/t/arduino-nano-ssd1306/1141796/3 "2023-06-27T07:09:56Z")

</div>

Yes, thanks.  
I know, that the display buffer has to be sent by a spereate command.

Now i found the problem - it's up to the display.  
I bought 10 over the I-Net ---\> 8 of them are broken, so the internal controller is running, but the  
display itself seems to be broken...

So the example - code for the SSD1306 seems to be ok...

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [December 24, 2023, 7:47am UTC](https://forum.arduino.cc/t/arduino-nano-ssd1306/1141796/7 "2023-12-24T07:47:03Z")

</div>

Closed on December 24, 2023, 7:47am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
