| Posted 22/07/12 at 01:42 AM||Reply with quote #1 |
I'm working on a project with uLCD-43PT_GFX2 module. I see that touch screen calibration is a little problematic so i tried to calibrate the touch screen. First i downloaded the program for the module in the "downloads" section (tab).
When i open the program, i saw that the code is for " uLCD-32PT_GFX2". I changed the module definition and tried again. Then i could not be able to see the second point to touch. After a little search i saw that the program coordinates are for portrait. So i added the code to make PORTRAIT. I tried again. I got a: "error 16" message. I added some messages and pause commands to where exactly the code bumps. Then i saw that the error 16 is caused by "sys_StoreTouchCalibration()" command. After doing a little search i found that command is not for my module ( uLCD-43PT_GFX2 ). I changed the code and commented that line out. Tried again. I got a result. But the calibration is reverse and very bad. I changed to PORTRAIT_R and tried again then got the result correct way but calibration is still bad. I touch to the very left side of the screen and it draws somewhere close to the right side.
I tried with v3.0, v2.9, v2.8a, v2.8 PmmC's. With v3.0 PmmC it even could not be able to read current TOUCH_XMINCAL ... values, shows 0000. with others i can read some values.
So, the question is: How can i calibrate touch screen properly?
| Posted 22/07/12 at 08:19 PM||Reply with quote #3 |
|Thank you very much. Works perfectly. |