This is my first project using LVGL. I use a 4 inch TFT display with the NT35510 controller and the XPT2046 touch controller.
I have noticed in the lvgl documentation that lvgl assumes the origin (0,0) of the TFT (Display) coordinate system is in the upper left corner, but I have not been able to find a definition of the axis.
Before any rotations, does lvgl assume the display x-axis is horizontal pointing to the right?
Does lvgl assume the display y-axis is vertical pointing down?
The parameter horizontal resolution is that the resolution of the x-axis?
With the NT35510 it is possible to change around the (0,0) point and the x- and y-axes. I want to make sure I get it right from the outset.
For the touch function a driver is needed. What shall the output be of that driver? I would have thought, it shall be the (x, y) coordinates of the touch point, but I have noticed in a topic in this forum that a range is given as 200 to 3800, which looks as the raw 12 bit output of the XPT2046, that is without any calibration. Please, what shall the output be?
The coordinate system of the XPT2046 is not necessarily the same as that of the display, but if the output of the touch driver shall be the (x,y) coordinates of the touch point, it is my task to ensure the coordinate systems are the same. Hence, I need some info on what is required/assumed for the touch driver.
Is there in the documentation a paragraph on coordinate systems with details on axes and origins? (I have searched but found only that the origin shall be in the upper left corner before any rotations.