How to use an encoder instead of a touchpad?


Since there is only a display screen and an encoder, and no touchpad, I want to achieve some operations such as clicking, selecting, and turning pages, and I want to find some cases of using the encoder as an input device.

What MCU/Processor/Board and compiler are you using?


What LVGL version are you using?


What do you want to achieve?

How to use an encoder instead of a touchpad?

What have you tried so far?

After adding the driver of the encoder, now the value can only be added and subtracted through the encoder and displayed on the screen. But I need to swipe to select some objects like the mouse but nothing happens, only the encoder button works. Am I missing something?

Do you have any code or pictures to share for us to help?

Thank you very much for your reply, I have solved it: need to add the object to the group and then focus the object.