-
Notifications
You must be signed in to change notification settings - Fork 426
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
Set rotation of display on menuconfig #88
Comments
This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Supported in ILI9341 and ST7789 so far. |
@BFFonseca Hi, is that an ILI9341 based display? |
Yes! It is an ILI931 320x240 with an XPT2046. I was able to rotate the screen by hardcoding on the ili_init_cmds[] structure's 0x36 command with a value of 0xE8, like so: |
I am guessing this is not a very clean way to do it, but it was the only fix I could find. |
Don't worry, I just turned on my PC, I will let you know when I add the options to the menuconfig. |
Alright, looking forward to it. By the way, I based myself on this library that I used in Arduino before: https://github.com/Bodmer/TFT_eSPI/blob/master/TFT_Drivers/ILI9341_Rotation.h |
Thanks for the link I will check it. I'm pushing my changes here: https://github.com/littlevgl/lv_port_esp32/tree/ili9341_rotation Problem is the four orientations seems to work on the Wrover Kit v4.1 (it have an embedded display with the same ILI9341 controller), but only landscape mode works on the display with the separated ILI9341 controller (like yours). |
@BFFonseca Hi, i think i found the root issue, commit d6f6e18 on the I've tested it locally but is better if you can test it as well. |
I can confirm it's fixed! Thank you! Excellent work. Suggestion for future implementation: Auto-rotate the touch coordinated based on screen rotation. |
Thanks for testing it @BFFonseca :) , I think you can swap X and Y coordinates on the touch menu. I didn't tested it. Sure, we could try to make the coordinate swap automagically, based on the rotation, let's leave that for another time. EDIT |
@C47D no problem. Was a feature I needed, so thank you! Yes, that is what I did, and it's not hard to do anyway. I would be a nice to have feature, but indeed not a priority. Yes, you can use my pictures on the README :) |
This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
All displays with rotation support are currently available in the menuconfig. |
The rotation of the display should be available for all supported displays.
The text was updated successfully, but these errors were encountered: