It’s great to see you are making progress!
You can try reading buttons in polling mode, and you don’t even need to use lvgl tasks.
Your input_callback
which you register to your indev lvgl driver is called periodically by lvgl. You can simply read the pins there.
But be careful - you can lose clicks if they are fast enough. I’ve seen that before.
To overcome this, ESP32 has PCNT hardware (Pulse Counter) which you can also use in Micropython, so the hardware, not software, would count how many times the button was clicked.
For more details please see: