How to change origin of display?

Hi

I have to change origin of display device because the touch input coordinates and the button displaying on the display is different. The button was pressed only when I touch the display other than the button location. Please help us.

Thank you
Mahesh

You can just adjust the touch coordinates you pass to LittlevGL so that they match. The touchscreen calibration tool might be useful.

Hi

Can I get any sample codes reading touch screen data. I need to rotate the display to -90 degress so that buttons location and touchpad location syncs.

Thank you
Mahesh

https://docs.littlevgl.com/en/html/porting/indev.html#touchpad-mouse-or-any-pointer