I'm using the u8g2 library, and an arduino nano(with old bootloader).
I bought the display of ebay a few years ago, the original listing is no longer up, but the title was "1.5 Inch OLED Display Module 128x128 16 Gray Scale Spi/i2c Interface Ssd132 D7x7" and these look exactly the same: https://www.tinytronics.nl/shop/en/1.5-inch-oled-display-128*128-pixels-white-i2c
text and everything is identical, even the yellow pin spacer
These are the constructors I have tried, I found them both in the u8g2 docs and other forum posts with similar issues.
U8G2_SSD1327_MIDAS_128X128_1_HW_I2C u8g2 (U8G2_R0,/* reset = */U8X8_PIN_NONE);
U8G2_SSD1327_EA_W128128_1_HW_I2C u8g2 (U8G2_R0,/* reset = */U8X8_PIN_NONE);
U8G2_SSD1327_WS_128X128_1_HW_I2C u8g2 (U8G2_R0,/* reset = */U8X8_PIN_NONE);
For the code I've just used the page buffer example 'HelloWorld' and 'GraphicsTest' that come with the library.
wiring is just
GND to GND
VCC to 5V
SCL to A5
SDA to A4
like it should be
I have ran some I2C scanning code as well and the display is recognized, tho for some reason it's address is 0x3C instead of 0x78 or 0x7A like it should. I did disconnect it to make sure it was actually the display it picked up.
I have tried to set the address to 0x3C like this
u8g2.setI2CAddress(0x3C);
u8g2.begin();
as well as 0x78 and 0x7A, just in case, as well as not setting the address of course.
The exact same code did work for some different displays I had lying around.
I have 4 of these displays and have tried all 4 of them, none have worked.
Any ideas what might be wrong?