Page 1 of 1

use touch without calibrate

Posted: Wed May 19, 2021 8:07 am
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?

Re: use touch without calibrate

Posted: Fri May 21, 2021 9:55 am
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.