No, URTouch does not come with any raw example. Try this. You should see raw values like 800 and 3600 for x, y. This will show whether the Touch Controller is wired in Portrait or Landscape mode.
#include <URTouch.h>
URTouch myTouch( 6, 5, 4, 3, 2);
void setup()
{
Serial.begin(9600);
Serial.println("Hello URTouch_raw");
myTouch.InitTouch();
myTouch.setPrecision(PREC_HI);
}
void loop()
{
long x, y;
while (myTouch.dataAvailable() == true)
{
myTouch.read();
x = myTouch.TP_X; //use raw value
y = myTouch.TP_Y; //use raw value
Serial.println("TP_X=" + String(x) + " TP_Y=" + String(y));
delay(100);
}
}
Of course you could just run the Calibration sketch and paste the results to your message.
The getX() and getY() methods convert the raw TP_X, TP_Y values into pixel coordinates.
David.