Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an evdev touchscreen driver #228

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

lodygaw
Copy link
Contributor

@lodygaw lodygaw commented Aug 3, 2022

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.

Based on lv_drivers/indev/evdev.c
@amirgon
Copy link
Collaborator

amirgon commented Aug 4, 2022

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?

@lodygaw
Copy link
Contributor Author

lodygaw commented Aug 5, 2022

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants