lexus2k / ssd1306

Driver for SSD1306, SSD1331, SSD1351, IL9163, ILI9341, ST7735, PCD8544, Nokia 5110 displays running on Arduino/ESP32/Linux (Rasperry) platforms
MIT License
664 stars 127 forks source link

SH1106 fix #49

Closed ivm164 closed 6 years ago

ivm164 commented 6 years ago

Please provide the following information:

library version

1.7.6

LCD display type

SH1106

Steps to reproduce the issue

Just print any text

Expected behavior

Text is fully visible

Actual behavior

First two pixel columns are missing

To fix this you should change the lines number 73 and 74 in oled_sh1106.c file like this: ssd1306_intf.send(((x+2)>>4) | SSD1306_SETHIGHCOLUMN); ssd1306_intf.send(((x+2) & 0x0f) | SSD1306_SETLOWCOLUMN);

lexus2k commented 6 years ago

@ivm164

Thank you for reporting the issue. Is your display (visible area) 128 pixels and not 132 as SH1106 controller supports? I integrated fix 1f7123e. Coud you please check it?

ivm164 commented 6 years ago

Hi Aleksei,

The fix works perfect for me. And you're right that the visible area seems to be 128p. BTW I've used 10 sh1106 lcds from 3 different vendros and all had the same hw config.

WBR

вс, 16 сент. 2018 г. в 15:44, Aleksei notifications@github.com:

@ivm164 https://github.com/ivm164

Thank you for reporting the issue. Is your display (visible area) 128 pixels and not 132 as SH1106 controller supports? I integrated fix 1f7123e https://github.com/lexus2k/ssd1306/commit/1f7123e979aa78c06dfa2a2368487835c6ab66da. Coud you please check it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lexus2k/ssd1306/issues/49#issuecomment-421759399, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEkQL91750mmgxvbDDbS1HiCjLzLM-7ks5ubkeugaJpZM4WqkG4 .

lexus2k commented 6 years ago

Thank you very much for cooperation.