using a sh1106 display on my pong clock

Hi everyone, i'm new here

I have a complicated question, not sure if anyone could help, but lets try.

I want this awesome clock to work on a bigger screen: https://www.youtube.com/watch?v=h1etbuiO_t8

i bought a oled 1.3 inch display from china.

it was with those library linked: Driver IC: SSD1306(https://dl.vmall.com/c0a5f0ybmb) or SH1106(https://dl.vmall.com/c00sl1fyzc)

Both links are dead.. BTW

I tought it was an SSD1306, but its actually a SH1106.

its sounds easy to just buy a new one and return this guy but i want them to work, i think its possible, but my programation skills are bad..

so this is the link for the official pong clock code by mike-rankin https://github.com/mike-rankin/Pong-Clock

it needs those librarys:

Adafruit GFX https://github.com/adafruit/Adafruit-GFX-Library Adafriut SSD1306 https://github.com/adafruit/Adafruit_SSD1306 (ver 1.2.0) RTClib https://github.com/mic159/RTClib

The problem is that when i connect the SH1106 i only got a stuck pixels image(theres a video showing it)

The SH1106 display worked with the adafruit test pattern using this library: https://github.com/wonho-maker/Adafruit_SH1106

its a conversion of the adafruit SSD1306 library to work with SH1106

But there is a lot of instructions that are different from the adafruit ssd1306 library, so it doesnt work with the original code.

Related problem on video:

https://youtu.be/Ft2-Cl-62sM

Thanks for any help =)

But there is a lot of instructions that are different from the adafruit ssd1306 library, so it doesnt work with the original code.

You haven't told us what "instructions" are different, or what happens when you try to account for (or ignore) the differences.

Thanks for any help =)

You're welcome.

this guy had the same problem, he had a simple fix, but i don't know how to implement this i only know basic from arduino, as i didn't written the code of the clock =\

https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/issues/228

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Placa:“Arduino Nano, ATmega328P (Old Bootloader)”

C:\Users\juba\AppData\Local\Temp\ccxIRXbt.ltrans0.ltrans.o: In function `setup’:

D:\Nova pasta\Pong_Clock/Pong_Clock.ino:90: undefined reference to `Adafruit_SSD1306::dim(unsigned char)’

C:\Users\juba\AppData\Local\Temp\ccxIRXbt.ltrans0.ltrans.o: In function `button2’:

sketch/Menu_Settings_Brightness.cpp:43: undefined reference to `Adafruit_SSD1306::dim(unsigned char)’

sketch/Menu_Settings_Brightness.cpp:39: undefined reference to `Adafruit_SSD1306::dim(unsigned char)’

collect2.exe: error: ld returned 1 exit status

exit status 1

IF I TRY TO COMPILE USING THE SH1106 AS SSD1306 LIBRARY I GET THOSE ERRORS