0 votes
by (150 points)

Hi!

I'm trying to use the "Color Display Kit Grande" with ESPHome and a nascent integration for the FT6236 touch panel (https://github.com/esphome/esphome/pull/3865) and getting some weird results. It seems the origin and rotation for the display and the touch panel are different - does that make sense? Here is what I am seeing in ESPHome (you can also see my comment in that PR):

Any guess as to why I am seeing this?

Thanks!

1 Answer

0 votes
by (19.9k points)
edited by
 
Best answer
The display and the touch module are controlled by independent chips and drivers. Unfortunately, their idea of rotational position and origin are not exactly aligned. We abstract the complexity behind that through two system settings in settings.h, see values and comments at https://github.com/ThingPulse/esp32-weather-station-touch/blob/master/src/settings.h#L81-L88. Furthermore, please note that for the time being the touch driver is copied into the project rather than managed as an external resource, see https://github.com/ThingPulse/esp32-weather-station-touch/blob/master/src/FT6236.cpp#L2-L4.
by (150 points)
Thank you for the answer - then I know they are not aligned and I can stop looking for a bug :-)
by (19.9k points)
You have to *make* them aligned by setting the two properties accordingly.

Just edited the answer, the second link was wrong, sorry.

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.

https://thingpulse.com

...