Hi @tve,
The commented “while true” is not really important. If you run the Unix port with the script as an argument, it will exit immediate without it. But this is irrelevant to esp32, and even with the Unix port I discovered it’s possible to run with the “-i” option and get the REPL while still providing a script as an argument.
You are right that something has to call lvgl periodically. Not only for the touch driver, also for the screen rendering.
That something is lvesp32 module which schedules periodically calls to lv_task_handler.
There are equivalents for other platforms. On the Unix port this is done by the SDL or FB driver. On stm32 it’s done by lvstm32 module