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

Touch x=0 y=0 #63

Open
vix66 opened this issue Apr 18, 2024 · 3 comments
Open

Touch x=0 y=0 #63

vix66 opened this issue Apr 18, 2024 · 3 comments

Comments

@vix66
Copy link

vix66 commented Apr 18, 2024

I'm having trouble with touch. Everything works fine if I compile and flash the device. At the first restart the touch works but the coordinates are x=0 and y=0. What can it be ?

@vix66
Copy link
Author

vix66 commented Apr 20, 2024

Am I the only one having this problem?

@guillempages
Copy link
Collaborator

I have just tested, and I do get coordinates for the touch events (i.e. not 0,0).

My problem is, that if I use some rotation, the coordinates do not match the expected ones. I think this has already been going on for a while (since some refactoring was done on the upstream display/touch components), but unfortunately I haven't goten around to fixing that.

Nevertheless, for touch, there is now an official driver on core esphome, that should be used instead; the t-display-s3 specific touch controller is in the process of being deprecated.

@vix66 Could you try using - platform: cst816 instead of - platform: tdisplays3 for your touchscreen component?

@vix66
Copy link
Author

vix66 commented Apr 23, 2024

Thanks but it's the same. With a factory reset the touch starts working again, so I set that when the coordinates are x=0 and y=0 I do a reset. This happens at power on.

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

No branches or pull requests

2 participants