Touchscreen Edge Detection

Touchscreen.h returns ADC values i.e. in the range 0 to 1023.

You convert to x,y pixel coordinates by using map() function.
e.g. by interpolating between TS_LEFT and TS_RT.

David.