Introduction - If you have any usage issues, please Google them yourself
Resistive Touch for microcontrollers using MikroC, the code is cross-platform, requires a few changes on the ports, but the alghorithm is the same and requires only a few external components and the ADC