I'm trying to get the position of a screen press and display it on screen.
The code is:
Point m = ts.getPoint();
m.x = map(m.x, TS_MINX, TS_MAXX, 0, 240);
m.y = map(m.y, TS_MINY, TS_MAXY, 0, 320);
pinfo = "X:"+m.x+", Y:"+m.y+"Z:"+m.z;
// we have some minimum pressure we consider 'valid'
// pressure of 0 means no pressing!
if (m.z > __PRESURE)
The Error is:
invalid operands of types 'const char*' and 'const char [5]' to binary 'operator+'
pinfo = "X:"+m.x+", Y:"+m.y+"Z:"+m.z;