I recently updated our lv_drivers source with the latest version available on the LittleVGL webset. The touchscreen on our target device is not functioning correctly.
What MCU/Processor/Board and compiler are you using?
BeagleBone Black with LCD display.
What do you experience?
After updating lv_drivers source code, the X/Y coordinates being reported to our application are not correct. Looks like the problem is in evdev.c and is related to the checkin commited on Nov 24, 2019.
In our case, the data->point.x/y calculated in the EVDEV_SCALE section is being overwritten with by #else portion of the EV_CALIBRATE section. Not sure what case the checkin was addressing but looks like the code will now always override the x/y values calculated using the scaling code.
Our application has:
EVDEV_SCALE = 1
EVDEV_SCALE_HOR_RES = 2050
EVDEV_SCALE_VER_RES = 2000
What do you expect?
I expected the touchscreen coordinates to use EVDEV_SCALE_HOR_RES/EVDEV_SCALE_VER_RES when calculating the x/y coordinates.