ThingPulse / esp8266-oled-ssd1306

Driver for the SSD1306 and SH1106 based 128x64, 128x32, 64x48 pixel OLED display running on ESP8266/ESP32
https://thingpulse.com
Other
2k stars 638 forks source link

#147 add wire clock as constructor arg for ssd1306 and sh1106 #228

Closed tuxBurner closed 5 years ago

tuxBurner commented 5 years ago

I had the problem that on my odroid go (ESP32) the display was messed up while drawing.

I figured out, that i have to set the Wire.setClock from 700000 to 100000 to get the display showing up correctly.

This feature was already requested in issue #147 :)

I left the constructor with the default value of 700000 so it should not have any impact on other users using this library.

To set the clock speed just pass it in the constructor

SSD1306Wire display(0x3c, D3, D5, GEOMETRY_128_64 ,100000);

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

marcelstoer commented 5 years ago

As explained in the issue at https://github.com/ThingPulse/esp8266-oled-ssd1306/issues/147#issuecomment-359548357 there's need for this indirection. Just call Wire.setClock(100000); any time.