-
Notifications
You must be signed in to change notification settings - Fork 42
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
Display rotation issues #44
Comments
What helped me was enabling hardcoded ST7789 define and adding additional 180 deg rotation (at least, I think it's rotation)
|
Hm.... So maybe it's not only the 90 Deg rotation based on controller chip but also 180 Deg rotation based ho they mount it..... Controller chip ID doesn't seem to work for me I only get back 0. (But register read might be screwed up in general....) As I don't have that display it's hard to test for me... For the moment I'll use your solution ;-) |
I think there might be a more elegant solution, e.g. x = (x+1)%4 instead of xoring and adding. |
Actually, reading chip ID does work for me. That commented out line |
And my working code for rotation is now this (90 deg rotation replaces XOR and 180 rotation):
|
On my unit it just reads back 0's from the display controller. Might have to hook up a scope to see what's going on on the data bus. |
Hi, I think I have the same issue. If I flash the .hex from https://github.com/Shayshez/EuroScope and the Display is 90 degrees (as your first post). Cloned and build in platformio (vscode) the repo from michar71 but after flashing is all blank. Tried to un-comment the lines you mentioned above but nothing shows. |
Hi. I just flashed my dso and my screen is rotated by 90 degrees. When I tried yesterday's version, my screen was rotated 180 degrees. This is probably caused by recent support of ST7789 display.
![tmp-cam-5916317435364157606](https://user-images.githubusercontent.com/2095278/83973292-98b7b000-a90f-11ea-9671-824712578dbb.jpg)
![tmp-cam-2158884534242667084](https://user-images.githubusercontent.com/2095278/83973320-c866b800-a90f-11ea-892e-73176fcb31c8.jpg)
Unfortunately, I have no idea what model my display is.
The text was updated successfully, but these errors were encountered: