lv_binding_micropython icon indicating copy to clipboard operation
lv_binding_micropython copied to clipboard

Add an evdev touchscreen driver

Open lodygaw opened this issue 3 years ago • 2 comments

Based on lv_drivers/indev/evdev.c

Back in the day, I added a touchscreen driver for my own use. I thought it might be useful for someone. Improvements and suggestions are expected and appreciated.

lodygaw avatar Aug 03 '22 08:08 lodygaw

Hi @lodygaw, thank you for this contribution!

On which hardware did you test this?

I would like to try it out on my laptop which contains a touch pad, but I'm not sure how to select the right /dev/input/eventX device. Any idea?

amirgon avatar Aug 04 '22 22:08 amirgon

I was testing this on Raspberry Pi Zero 2 with Raspbian OS Lite (Raspbian GNU/Linux 11 (bullseye)). Tested displays were:

All were 1024x600 HDMI + USB (touch) displays.

When it comes to selecting /dev/input/eventX, in my case it was event0 for Waveshare displays and event1 for a Chinese one as far as I remember. But when I was figuring it out at the beginning then I was using evtest tool (it was very handy for debugging as well).

lodygaw avatar Aug 05 '22 07:08 lodygaw