Skip to content

Garbled image on the 168x144 display #3

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

Closed
deshipu opened this issue Dec 23, 2018 · 3 comments
Closed

Garbled image on the 168x144 display #3

deshipu opened this issue Dec 23, 2018 · 3 comments

Comments

@deshipu
Copy link
Contributor

deshipu commented Dec 23, 2018

I tested this with Feather M4, and while the 96x96 display works perfectly, the 168x144 one, connected the same way, displays garbage:
img_20181223_185405

@deshipu
Copy link
Contributor Author

deshipu commented Dec 23, 2018

I did change the line that creates the display object:

display = adafruit_sharpmemorydisplay.SharpMemoryDisplay(spi, scs, 168, 144)

@deshipu
Copy link
Contributor Author

deshipu commented Dec 23, 2018

Ok, swapping width and height helps:

display = adafruit_sharpmemorydisplay.SharpMemoryDisplay(spi, scs, 144, 168)

@deshipu deshipu closed this as completed Dec 23, 2018
@ladyada
Copy link
Member

ladyada commented Dec 23, 2018

ok please add a line in the example that is commented out to demonstrate it!

deshipu added a commit to deshipu/Adafruit_CircuitPython_SharpMemoryDisplay that referenced this issue Dec 23, 2018
That display has a vertical alignment, so 144 has to be specified as
width and 168 as height, otherwise the display is mangled.

Fix adafruit#3
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