My question wasnt really LVGL related, so thanks for answer. It did lead me to an LVGL related thing. I want to dim my touch screen if no one touches it for a while. What I was thinking of doing was setting a variable to time of the last gesture. This might be useful for others, so if you want I can post the code as a PR.