Paint object for drawing

Hi,kisvegabor ,

I would have a object like the paint tool on Windows to get the current touch pad reading and draw them on the TFT. Thus I can have a trace of the finger moving .Which object might be better to modify for that purpose and how to get the realtime TP reading in the current object cb framework?

Best Regards,

@JamesJJ Probably using the canvas object would be simplest. Then you would probably have to register a signal handler to track touch events.

Hi, embeddedt,
Many Thanks!
I have no idea on how to read the TP indev data with a high speed ( in the lib tick cycle 30ms)in the signal function. Which current object might be a sample?

Best Regards,

You should be able to use the lv_indev_get_point() function when LV_SIGNAL_PRESSING is sent.

Hi, embeddedt,
Many Thanks!
I will try !

Best Regards,

Hi James´╝î
Have you implemented this feature(get the current touch pad reading and draw them on the TFT) yet? Can you share your approach? Thanks a lot.