- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
Shamili
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DId calibration of the touch screen work correctly? I'm talking about the GUI_TOUCH_Calibrate() in LCDConf.c. Are all the points for top, bottom, right and left configured correctly?
I looked at all the steps, the hardware routines seem to be configured correctly. Please run the calibration again, the code exists the while loop only when the button is pressed and this press isn't being detected.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
GUI_TOUCH_Calibrate() helped me to get the values for top, bottom, right and left. But the run-time calibration doesn't detect the touch.
Regards,
Shamili
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
These threads might be useful:
- Re: Resistive touch with the Segger EmWin Problem
- Use the resistive touch with the Segger Emwin and Psoc5LP.
Regards,
Dheeraj