Number Pad's Numbers Flipped on Touchscreen

Go on. I can't believe humans can ever understand stuff like this:

 if (p.z > MINPRESSURE && p.z < MAXPRESSURE) {
    // scale from 0->1023 to tft.width
    p.x = map(p.x, TS_MINX, TS_MAXX, tft.width(), 0);
    p.y = map(p.y, TS_MINY, TS_MAXY, tft.height(), 0);

    Serial.print("("); Serial.print(p.x); Serial.print(", "); 
    Serial.print(p.y); Serial.print(", "); 
    Serial.print(p.z); Serial.println(") ");
    
   }

Surely it is more intuitive to calibrate in terms of TS_LEFT and TS_RIGHT
and then say:

 if (p.z > MINPRESSURE && p.z < MAXPRESSURE) {
    // scale from 0->1023 to tft.width
    pixel_x = map(p.x, TS_LEFT, TS_RIGHT, 0, tft.width());  //map left->right as 0-239
    pixel_y = map(p.y, TS_TOP, TS_BOT, 0, tft.height()); //map top->bot as 0-319

    Serial.print("("); Serial.print(pixel_x); Serial.print(", "); 
    Serial.print(pixel_y); Serial.print(", "); 
    Serial.print(p.z); Serial.println(") ");  //pressure
    
   }

David.