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

Simple procedure to rotate display #59

Closed
MountainMan370 opened this issue Nov 26, 2023 · 3 comments
Closed

Simple procedure to rotate display #59

MountainMan370 opened this issue Nov 26, 2023 · 3 comments

Comments

@MountainMan370
Copy link

I have the Nano-Gui demos working on a Raspberry Pi Pico with the Adafruit 3.5" TFT display using IlI9486 driver. However, the default text coordinate(0,0) seems to be in the lower right vs the upper left. I've addressed it for now by simply turning the display itself upside down and rotating it. However, I have used the same display with an Arduino Nano / Uno and Adafruit's HX8357 driver. That driver has a simple Rotate display option as one of the first setup command lines. Is anything like this possible with ili9486 driver (or did I miss something in the library itself)? Note only other issue that I had was to to comment out the check for the firmware. I'm using Pimoroni's UF2 Micropython version since I use many of their other products for the Pico and its use triggered an exception until I removed the firmware check.
Thank you for providing this program to the community !

@beetlegigg
Copy link

I was updating my display using nano-gui just now, and your email popped in to my inbox as I watch Peters repository to keep up to date with it as I use it a lot. I checked my color_setup.py as I'm sure I had to rotate the display when I used the ili9486 driver and there I see usd=True
From the doc's: usd=False Upside down: set True to invert display. However it does not rotate from landscape to portrait mode, but I think usd is probably what you are after.

@MountainMan370
Copy link
Author

I changed line #69 in the IlI9486.py file so that usd=True.
That solved it!
Thanks for helping me with this and especially so quickly!!

@MountainMan370
Copy link
Author

MountainMan370 commented Nov 28, 2023 via email

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

3 participants