how to support new touch screen sensor with integration to LVGL


Matias N.
 

Hi,
I'm considering adding support for a touchscreen sensor (CST816, used in PineTime) and I would like
to use LVGL as well. Right now LVGL expects touchscreen sensor to be exposed via KSCAN API,
however this impedes supporting the touchpad's gesture detection. I found some old messages
in the list proposing a touch API but it was then recommended to use the sensor API. This is indeed
possible but it would require extending LVGL integration layer (besides adding some standard
channel types for gestures and taps, etc).

What is preferable at this point?

Best,
Matias