3 Replies Latest reply on May 8, 2019 6:26 AM by DheerajK_81

    Touch detect using Touch_calibrate from emWin library


      Hi all,


      I am trying to calibrate resistive touch screen of a 3.5" TFT LCD using PSoC 5LP and emWin library.

      I was able to use Touch_sample.c to verify touch detection and moved on to do touch calibration. I am using Touch_calibrate.c sample code from emWin but wasn't successful. I tried to debug and what looks like the code is stuck at while(TouchState.Pressed != 1)  and doesn't seem to end the loop.


      Any solutions with this regard would be very helpful.


      I have attached the c code for reference.


      Thanks and regards,