landonr / lilygo-tdisplays3-esphome

tdisplay s3 170x320 running esphome using patched tft_espi
82 stars 29 forks source link

Touch x=0 y=0 #63

Open vix66 opened 1 month ago

vix66 commented 1 month ago

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 commented 4 weeks ago

Am I the only one having this problem?

guillempages commented 3 weeks ago

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 commented 3 weeks ago

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.