rust-embedded-community / ssd1306

SSD1306 OLED driver
Apache License 2.0
310 stars 70 forks source link

Issues on Adafruit OLED Bonnet #163

Open gleich opened 2 years ago

gleich commented 2 years ago

Description of the problem/feature request/other

Hello, first of all, thanks for this awesome crate! I am having an issue with the Adafruit 128x32 OLED Bonnet hat for the raspberry pi. It seems as though the draw pixels are horribly offset and have spacing between them. I've tried running my code on the Adafruit PiOLED (which is an ssd1306 powered display) and it works perfectly so I am wondering if my display is simply not supported. From what I've seen in the datasheets the ssd1306 and ssd1305 are practically the same. Adafruit's library for the ssd1306 even supports ssd1305 displays out of the box. Does this crate support them as well? I don't see any mention of it in the codebase. The display works fine when I use the python library, so it seems to be a software issue and not a broken display.

This is what it looks like on the Adafruit OLED Bonnet (ssd1306:

IMG_0548

This is what it looks like on the Adafruit PiOLED (ssd1306):

IMG_0547

Test case (if applicable)

Here is the code I have for simply writing hello world:

https://github.com/gleich/airlift

jamwaffles commented 2 years ago

Hm interesting. This crate doesn't explicitly support the SSD1305, although there have been attempts and other issues in the past; see #76 or #77 for example. I'm not clear on what the differences between the 1306 and 1305 are tbh. Perhaps the issues I linked could help some? Sorry I can't give a better answer.