Page 1 of 1

ESP32 4.3" yellow display touch issue

Posted: Wed Sep 18, 2024 4:14 pm
by wolfrose
Hi,

I have a problem with the resolution of the touch coordiation.

The display is 800x480 but the max resolution I can get is the default 480x320.

I'm using the official Arduino TAMC_GT911 library.
https://www.arduino.cc/reference/en/lib ... amc_gt911/

Any suggestions of how to change the resolution ?

Re: ESP32 4.3" yellow display touch issue

Posted: Wed Sep 18, 2024 4:44 pm
by lbernstone
There's nothing official about that library, and it has not been updated in 3 years.
If the physical resolution of the device is 480x320, then that is what you are going to get as raw data.
The math isn't very difficult to implement as a function to do your own mapping from one to the other.
I believe the TFT_eSPI can use that library to feed the touchscreen portion, and will then provide abstraction to match the screen resolution with the touch.

Re: ESP32 4.3" yellow display touch issue

Posted: Thu Sep 19, 2024 4:00 am
by wolfrose
lbernstone wrote:
Wed Sep 18, 2024 4:44 pm
There's nothing official about that library, and it has not been updated in 3 years.
But it's in the official arduino list, I believe that a library must be approved and confirmed to be uploaded on the site.
If the physical resolution of the device is 480x320
The phesical resolution of my display is 800x480.
then that is what you are going to get as raw data.
I'm using the example came with the library which is providing the values of the resolution based on the display resolution.

The math isn't very difficult to implement as a function to do your own mapping from one to the other.
I will try that.
I believe the TFT_eSPI can use that library to feed the touchscreen portion, and will then provide abstraction to match the screen resolution with the touch.
He hasn't implemented the code for the GT911 yet.