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

Size and color issues #324

Open
palusi opened this issue Jan 22, 2024 · 1 comment
Open

Size and color issues #324

palusi opened this issue Jan 22, 2024 · 1 comment

Comments

@palusi
Copy link

palusi commented Jan 22, 2024

Hey, i followed this youtube tutorial to get the display working with raspberry pi 3b:
https://youtu.be/I41wIyXG8Bc?si=iEwmHAivJOat1iiH

Now I have two problems and dont know how to fix them:
First the display shows wrong colors, for example blue instead of red and orange instead of blue.
The format of the picture is also wrong, the picture does not Fill the full display.

image

I Tried to Rotate the picture using "display_rotate=1" but it rotated the picture without increasing the used space.

Link to the display: https://www.ebay.de/itm/275938904967

Can someone help?

@adamz01h
Copy link

adamz01h commented Nov 4, 2024

"The driver works well, but image is rotated 90 degrees. How do I rotate the display between landscape and portrait?

Edit the file config.h and comment out the line #define DISPLAY_OUTPUT_LANDSCAPE. This will make the display output in portrait mode, effectively rotating it by 90 degrees. Note that this only affects the pixel memory reading mode of the display. It is not possible to change the panel scan order to run between landscape and portrait, the SPI displays typically always scan in portrait mode. The result is that it will change the panel vsync tearing mode from "straight line tearing" over to "diagonal tearing" (see the section About Tearing above).

If you do not want to have diagonal tearing, but would prefer straight line tearing, then additionally enable the option #define DISPLAY_FLIP_ORIENTATION_IN_SOFTWARE in config.h. That will restore straight line tearing, but it will also increase overall CPU consumption."

in the readme

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