use touch without calibrate

FTDI/Bridgetek EVE2 & EVE3 & EVE4 SPI TFT Series by Matrix Orbital

Moderator: Mods

Post Reply
seunghong
LCD?
Posts: 1
Joined: Wed May 19, 2021 7:50 am

use touch without calibrate

Post by seunghong »

Hi

I use eve2-35a tpr as my school project. Its touch and display work well.
But in my project, mcu often resets. So I do calibration every time. I want to apply calibration only once and use the touch function, so I wonder what I can do. Can't I use it as a way to store calibration information in flash memory?

Rudolph
LCD Guru
Posts: 67
Joined: Wed Feb 28, 2018 11:09 am

Re: use touch without calibrate

Post by Rudolph »

Sure, calibrate, write down the values and put them in the source as constants.
This often even works well enough across different displays of the same type.

My basic example does that:

https://github.com/RudolphRiedel/FT800- ... e_projects
https://github.com/RudolphRiedel/FT800- ... rc/tft.cpp

The touch_calibrate() function has a number of calibration sets that are used depending on which display is used.
And there is a calibration function in line 251ff that can be activated and displays the values on the screen after calibration.

I recommend using a stylus while calibrating for precision.

Post Reply