bitbank2 / ss_oled

Simple and small library to control 1-bpp OLED displays (Linux + Arduino)
GNU General Public License v3.0
190 stars 34 forks source link

Teensy LC + SH1106 - Everything is offset by a couple of pixels to the left #41

Closed SpMakris closed 4 years ago

SpMakris commented 4 years ago

I am running the simple demo on a Teensy LC using a waveshare 1'' OLED (SH1106). Everything is printed as if it was offset by a couple of pixels to the left. The rightmost side of the display shows trash (random pixels). It looks like some index goes out of bounds. What am I doing wrong?

bitbank2 commented 4 years ago

Try initializing it explicitly with type OLED_132x64 (SH1106).

SpMakris commented 4 years ago

That solved the problem, thanks!