Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect framebuffer width for SSD1680 #52

Closed
cdmuhlb opened this issue Jun 12, 2021 · 1 comment
Closed

Incorrect framebuffer width for SSD1680 #52

cdmuhlb opened this issue Jun 12, 2021 · 1 comment

Comments

@cdmuhlb
Copy link
Contributor

cdmuhlb commented Jun 12, 2021

The Adafruit_SSD1680 class increases its width parameter to the nearest multiple of 8 before constructing its framebuffers. This results in the framebuffer width not matching the display width whenever the latter is not a multiple of 8 (as is the case for the 122x250 resolution of the 2.13" E-ink Bonnet for Raspberry Pi). One consequence of this mismatch is that graphics are shifted (by 4 pixels in the case of the bonnet) when the rotation of the display is set to 1 or 2.

This was addressed for the SSD1675 and SSD1675B in 8022b34 by distinguishing between the width and stride of the framebuffer. The same fix should be ported to the SSD1680 driver.

@ladyada
Copy link
Member

ladyada commented Jun 12, 2021

indeed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants