# 1.3" i2c display error

**URL:** <https://forum.arduino.cc/t/1-3-i2c-display-error/555242>\
**Category:** Displays\
**Created:** [November 6, 2018, 9:03pm UTC](https://forum.arduino.cc/t/1-3-i2c-display-error/555242 "2018-11-06T21:03:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Warloxk](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/warloxk/32/311588_2.png) [@Warloxk](https://forum.arduino.cc/u/Warloxk)\
**Post date:** [November 6, 2018, 9:03pm UTC](https://forum.arduino.cc/t/1-3-i2c-display-error/555242/1 "2018-11-06T21:03:51Z")

</div>

Hello,

I have an i2c 128x64 oled display with the ssd1306 chip on it.

I scanned with the i2c\_scanner and it says:  
"Scanning...  
I2C device found at address 0x3C !  
done"

But I can`t get the display to work, I tried with an another arduino and another display too, but none of them seems to work.

Maybe both display is faulty?

Please see my attachment:

[[Album] i2c 128x64 ssd1306 faulty? ![](https://europe1.discourse-cdn.com/arduino/original/4X/8/f/5/8f5ef6f9cee029c8008f5d8777da6ed83d505642.jpeg "i2c 128x64 ssd1306 faulty?") ](https://imgur.com/a/F2sWFc6)

Thank you.

 ![IMG_2921 (1).JPG](https://europe1.discourse-cdn.com/arduino/original/4X/b/0/e/b0e3ef79adc9007a65161364086d70923dcd4399.jpeg)

---

<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:** [November 6, 2018, 9:16pm UTC](https://forum.arduino.cc/t/1-3-i2c-display-error/555242/2 "2018-11-06T21:16:17Z")

</div>

> Maybe both display is faulty?

Or maybe the code you didn't post is incorrect.

> Please see my attachment:

Spend one and a quarter megabytes of my mobile data?  
No thanks.

---

<div class="post-metadata">

**Author:** ![Warloxk](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/warloxk/32/311588_2.png) [@Warloxk](https://forum.arduino.cc/u/Warloxk)\
**Post date:** [November 7, 2018, 8:23am UTC](https://forum.arduino.cc/t/1-3-i2c-display-error/555242/3 "2018-11-07T08:23:36Z")

</div>

> Or maybe the code you didn't post is incorrect.

Sorry, I indeed forget to post, but the code is from the Adafruit SSD1306 by Adafruit Version 1.1.2 library, ssd1306\_128x64\_i2c sketch, and I can`t post it, because the post max 9000 characters limit, and I don`t think it is necessary to post. It is available on github too:

> **[GitHub - adafruit/Adafruit\_SSD1306: Arduino library for SSD1306 monochrome...](https://github.com/adafruit/Adafruit_SSD1306)**
>
> Arduino library for SSD1306 monochrome 128x64 and 128x32 OLEDs - GitHub - adafruit/Adafruit\_SSD1306: Arduino library for SSD1306 monochrome 128x64 and 128x32 OLEDs

And yes I modified the "Adafruit\_SSD1306.h" file according to comments in the code, to match my display, like so:

```arduino
/*=========================================================================
    SSD1306 Displays
    -----------------------------------------------------------------------
    The driver is used in multiple displays (128x64, 128x32, etc.).
    Select the appropriate display below to create an appropriately
    sized framebuffer, etc.
    SSD1306_128_64  128x64 pixel display
    SSD1306_128_32  128x32 pixel display
    SSD1306_96_16
    -----------------------------------------------------------------------*/
  #define SSD1306_128_64
//  #define SSD1306_128_32
//  #define SSD1306_96_16
/*=========================================================================*/

```

> Spend one and a quarter megabytes of my mobile data?  
> No thanks.

No need to spend that much of data, because the imgur version is just 69.6KB. And I made it as an attachment.

 ![KfLXx7Vg.jpg](https://europe1.discourse-cdn.com/arduino/original/4X/4/3/4/43451ea5aa041729e90a51536b143fc4f0dfcaa4.jpeg)

---

<div class="post-metadata">

**Author:** ![lesept](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/lesept/32/238959_2.png) [@lesept](https://forum.arduino.cc/u/lesept)\
**Post date:** [November 7, 2018, 8:41am UTC](https://forum.arduino.cc/t/1-3-i2c-display-error/555242/4 "2018-11-07T08:41:47Z")

</div>

It may be a wiring problem, such as an intermittent defect (open) on the data link. Verify the quality of your connections and wires. I've had this kind of problem but it disappeared magically...

---

<div class="post-metadata">

**Author:** ![david\_prentice](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@david\_prentice](https://forum.arduino.cc/u/david_prentice)\
**Post date:** [November 7, 2018, 8:50am UTC](https://forum.arduino.cc/t/1-3-i2c-display-error/555242/5 "2018-11-07T08:50:56Z")

</div>

Your JPEG "looks" like a SH1106 controller module. Please post a link to your **actual** Ebay purchase.

I suggest that you use U8g2 with a SH1106 constructor.

No, I do not own any SH1106. Nor have I studied the differences between SSD1306 and SH1106. I would expect it to "work" but have wrong screen geometry.

David.

---

<div class="post-metadata">

**Author:** ![Warloxk](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/warloxk/32/311588_2.png) [@Warloxk](https://forum.arduino.cc/u/Warloxk)\
**Post date:** [November 7, 2018, 10:44am UTC](https://forum.arduino.cc/t/1-3-i2c-display-error/555242/6 "2018-11-07T10:44:00Z")

</div>

> Your JPEG "looks" like a SH1106 controller module.

You are right, it is an SH1106, You just solved the mystery, thank you.

> Please post a link to your **actual** Ebay purchase.

The seller site says it is SSD1306: [D13-12864-I2C / 1.3in 128x64 OLED, I2C interface - HESTORE - Elektronikai alkatrész kis- és nagykereskedelem](https://www.hestore.hu/prod_10035540.html?lang=en)  
and the datasheet: [https://www.hestore.hu/prod\_getfile.php?id=8150](https://www.hestore.hu/prod_getfile.php?id=8150)  
I make a contact with the store to correct this.

> I suggest that you use U8g2 with a SH1106 constructor.

Yeah i tried, and it works!

 ![sh1106.jpg](https://europe1.discourse-cdn.com/arduino/original/4X/f/7/2/f72e767030fabb35b162d8f8cdf113ac53d96d9c.jpeg)

---

<div class="post-metadata">

**Author:** ![david\_prentice](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@david\_prentice](https://forum.arduino.cc/u/david_prentice)\
**Post date:** [November 7, 2018, 11:11am UTC](https://forum.arduino.cc/t/1-3-i2c-display-error/555242/7 "2018-11-07T11:11:02Z")

</div>

You will deserve a medal if you get any response from the vendor.

And a BIG prize if they make any effort to change the website.

It is always wise to post a link to your actual device when you ask a question.

Even if the website contains lies, we can see that the photo has round mounting holes with round copper footprint.  
The common 1.3 inch SSD1306 modules have octagonal footprint.

David.

---

<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:** [May 6, 2021, 3:57am UTC](https://forum.arduino.cc/t/1-3-i2c-display-error/555242/8 "2021-05-06T03:57:51Z")

</div>

Closed on May 6, 2021, 3:57am UTC


