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 cant post it, because the post max 9000 characters limit, and I dont think it is necessary to post. It is available on github too:
And yes I modified the "Adafruit_SSD1306.h" file according to comments in the code, to match my display, like so:
/*=========================================================================
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.
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...
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.
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.