Maybe you missunderstand , what this do. Calling this inoke callback to read manualy and all read is in this callback func for both modes. Simply leave in periodic mode and in callback use
You set the indev mode to “EVENT” and handle calling the indev_read\ function yourself. Be careful because you don’t want to call that function from inside of the ISR callback because of memory allocation occurring. You will need to send some kind of a flag or signal to the main task that is handling LVGL related stuff and have it perform the read of the indev. This means that in the interrupt callback you will need to collect whatever information is needed form the touch IC and store it so in the indev callback function for read you can return that data.
Hello, it was not possible to read the data in the interruption (I2C), there is a problem with the LVGL. But it was possible to increment a variable and monitor it in the Arduino IDE sketch Loop, and only then call the manual reading.