calibration

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Hi everybody,
      I'm trying to use GUI_TOUCH_CalcCoefficients to calibrate touch screen run time but I am not be able to achieve good result.
      At start up LCD_X_Config call:

      GUI_TOUCH_SetOrientation(DISPLAY_ORIENTATION);
      GUI_TOUCH_Calibrate(GUI_COORD_X, 0, WIDTH - 1, TOUCH_LEFT, TOUCH_RIGHT);
      GUI_TOUCH_Calibrate(GUI_COORD_Y, 0, HEIGHT - 1, TOUCH_TOP, TOUCH_BOTTOM);

      and touch works fine.
      After calling routine _Calibrate (from TOUCH_Calibrate.c) touch is not calibrated at all.
      _Calibrate routine seems to work correctly: 5 points are recognized and
      arrays are filled before passing them to GUI_TOUCH_CalcCoefficients.
      As soon as I add GUI_TOUCH_EnableCalibration call touch screen is not calibrated at all.
      Any tips ?

      Reagrds,

      Paolo