-
Notifications
You must be signed in to change notification settings - Fork 169
ssd1306 wrong resolution on 128x32 OLED #166
Comments
Interesting. Can you try changing this line: |
@maruel nope, same problem. I don't know if it is relevant/interesting or not but... if I try with |
@maruel I picked up the device again and found the problem this time. I looked at how the device was initialized with the adafruit python library (https://github.com/adafruit/Adafruit_Python_SSD1306/blob/master/Adafruit_SSD1306/SSD1306.py#L309). I found a mismatch here https://github.com/google/periph/blob/master/devices/ssd1306/ssd1306.go#L207. So I replaced...
with...
And now the display is working properly: There is no public interface to send commands directly to the display, what do you propose to make something flexible so I can make it work? |
@maruel I feel silly, that was your proposed diagnosis the first time! |
I found out how to do it:
I am going to close it now :) |
No worries. :) Reopening because this is a bug. So clearly the COM pins configuration needs to either have more conditions or be made configurable. I think we'll need the later as this really depends on the hardware configuration. :/ Expanding on the doc which isn't that clear; Bits
This is coupled with C0/C8:
It is used to rotate the display. So we'll need an enum to clarify the above in a way that keeps the rotated functionality working (which I'd prefer if possible). |
FTR, I still want to fix this, I just need to figure out the best way to expose the bit. |
I'm starting to think about v3, this should be fixed in time for this release, which will likely be in a few months. |
@maruel thanks! in the meantime I have a workaround so that's great |
Thank you very much! |
Using this product on Raspberry Pi Zero W using latest stretch:
Adafruit PiOLED - 128x32 Monochrome OLED Add-on for Raspberry Pi
https://www.adafruit.com/product/3527
The image seems wrong using the
ssd1306
cmd provided in the package:Results in:
It only writes to the second half of the screen, with tiny text cut in half.
Results in:
The display is working fine with their official python library: https://github.com/adafruit/Adafruit_Python_SSD1306/blob/master/Adafruit_SSD1306/SSD1306.py
The Adafruit 128x64 OLED Bonnet for Raspberry Pi is working fine with periph (https://www.adafruit.com/product/3531):
The text was updated successfully, but these errors were encountered: