cancel
Showing results for 
Search instead for 
Did you mean: 

LCD Touchscreen calibrate problem

haythem
Associate II
Posted on January 21, 2015 at 18:38

HI

I have Open Cortex-M4 Kits Open407V-D.

I try to do an application resembling as proposed in this link. At the first part the LCD work correctly. But in the second part I have a problem when I want calibrate the screen touch.

When I add the line “TouchPanel_Calibrate();�? in my program , the card blocked in the third square of calibration. After many operation ,I look that the problem is related with this line “setCalibrationMatrix( &DisplaySample[0],&ScreenSample[0],&matrix );�? located in “TouchPanel_Calibrate()�? function in xpt2046 library. When I remove this line the card work and he run correctly, but the Touchscreen is not calibrated.

Please someone can help me to resolve this problem?  Thank you in advance.

This is the link : 

http://fabioangeletti.altervista.org/blog/stm32f4-discovery-lcd-touchscreen/?doing_wp_cron=1421797588.5932309627532958984375#comment-91

The complete source code is here:

http://fabioangeletti.altervista.org/blog/wp-content/uploads/2013/10/stm32f4_graph.zip

0 REPLIES 0