Fixing display rotation for ili9488 after #19010#19043
Fixing display rotation for ili9488 after #19010#19043TheNitek wants to merge 1 commit intoMarlinFirmware:bugfix-2.0.xfrom TheNitek:bugfix-2.0.x-rotation
Conversation
|
You can 'rotate' the touch screen by 'negating' the calibration and offset settings. which are typically defined in configuration.h |
|
What do you mean by negating? If have them set and the worked fine before #19010 My current settings: #define XPT2046_X_CALIBRATION 12316 |
|
Tagging @tpruvot for review. Do these changes affect the TFTs you’re using? |
|
not anymore, no... negating = reverse the sign of XPT2046_X_CALIBRATION and/or XPT2046_Y_CALIBRATION to mirror the touch |
|
With 'negating' I mean changing the sign: Or, maybe doing a touch calibration (TOUCH_SCREEN_CALIBRATION) also does the job. |
|
I'm doing a refactoring in all TFT code for Emulated DOGM, Color UI and LVGL. I'm working now in "merging" all those init codes in a unique class, to remove repeated code and duplicated bugs. |
|
With this refactoring, almost all options will be available for all Ui:
|
|
I will wait fir the refactoring then. |
Description
After #19010 the rotation of the ili9488 doesn't match the rotation of the touch screen (if button is down left, touch area is on the top right).
I guess the same applys for st7796, but I am not sure and don't own hardware to test.
Benefits
Fixes rotation, so it matches the touch screen again
Related Issues
Caused by #19010