/* Calibrate x position (to obtain X = calibrated(x))  */
uint16_t TouchScreen_Get_Calibrated_X(uint16_t x)
/* Calibrate x position (to obtain X = calibrated(x))  */
uint16_t TouchScreen_Get_Calibrated_X(uint16_t x)
{
   int32_t ret=CALIB_RES(x,aLogX[0],aPhysX[0],aLogX[1],aPhysX[1]);
   if (ret<0) ret=0;
   else if  (ret>240) ret=239;
   return ret;
}