• Modules are now on https://www.espruino.com/modules:

    TouchRD Documentation includes generic code for calibration for Portrait and Landscape use.

    The configuration(s) as used in post #1 were created with the generic calibration code and then copied into the modules folder of the sandbox in the Espruino IDE:

    // TSRD26_104x132_cfg.js (c) 20181003_allObjects
    // BuyDisplay.com 2.6" Resistive Touch Screen
    // Portrait configuration 104 W x 142 H
    // for TouchRD.js module
    exports = 
      { X: 104
      , Y: 142
      , xt: 0.1117
      , yt: 0.0854
      , xc: 0.5067
      , yc: 0.4876
      , xd: 0.00736
      , yd: 0.00553
      };
    
    // TSRD26_142x104_cfg.js - 20181003_allObjects
    // BuyDisplay.com 2.6" Resistive Touch Screen
    // Landscape configuration 142 W x 104 H
    // for TouchRD.js module
    exports = 
      { X: 142
      , Y: 104
      , xm: 5
      , ym: 5
      , xt: 0.0822
      , yt: 0.0966
      , xc: 0.4694
      , yc: 0.4960
      , xd: 0.00534
      , yd: 0.00744
      };
    
About

Avatar for allObjects @allObjects started