ESP32 4.3" yellow display touch issue

wolfrose
Posts: 16
Joined: Mon Oct 26, 2020 2:58 pm

ESP32 4.3" yellow display touch issue

Postby wolfrose » Wed Sep 18, 2024 4:14 pm

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 ?

lbernstone
Posts: 828
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32 4.3" yellow display touch issue

Postby lbernstone » Wed Sep 18, 2024 4:44 pm

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.

wolfrose
Posts: 16
Joined: Mon Oct 26, 2020 2:58 pm

Re: ESP32 4.3" yellow display touch issue

Postby wolfrose » Thu Sep 19, 2024 4:00 am

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.

Who is online

Users browsing this forum: Bing [Bot] and 126 guests