Touch screen doesn't respond well on a mikromedia 5 for TIVA
Posted: 29 Aug 2014 10:23
I found the mikromedia_5_for_TIVA.mcpar example on Libstock but i had to add a few libraries and tweak it a little to get it to work. But in the end it did.
I stripped it down to use it for my own project.
Now it doesn't work anymore. I probably stripped it too far.
I debugged it and the press action is detected but the XCoord and YCoord stay 0.
Why is that? Am i forgetting something? Does it have to do with the calibration?
For the calibration i use the one in the example:
TSC2006_SetCalibrationConsts(186, 3917, 259, 3866);
Instead of the Calibration() function which is used in other examples. But it seems to work.
I have a display of 800x480. How is it possible that those high numbers work and:
TSC2006_SetCalibrationConsts(0, 480, 0, 800); not?
Thanks for your time!
Guus
I stripped it down to use it for my own project.
Now it doesn't work anymore. I probably stripped it too far.
I debugged it and the press action is detected but the XCoord and YCoord stay 0.
Why is that? Am i forgetting something? Does it have to do with the calibration?
For the calibration i use the one in the example:
TSC2006_SetCalibrationConsts(186, 3917, 259, 3866);
Instead of the Calibration() function which is used in other examples. But it seems to work.
I have a display of 800x480. How is it possible that those high numbers work and:
TSC2006_SetCalibrationConsts(0, 480, 0, 800); not?
Thanks for your time!
Guus