close
2 Points Calibration for Position Decoding
1. LL and UR are the calibration target points of touch panel, the points are setup at
LL = (1/8 screen X, 1/8 screen Y) = ( 256 , 256 ) ADC ;
UR = (7/8 screen X, 7/8 screen Y ) = ( 1791 , 1791 ) ADC
2. During calibration, press on these two target points, the raw data are obtained as
LL ‘and UR’:
LL’ = ( LLX, LLY ) ;
UR’ = ( URX, URY )
3. After the calibration, whenever the panel was touched, firmware report the raw data X and Y. Then, the calibrated position X’ and Y’ are calculated with the formulation as follows:
X – LLX
URX – LLX
X’ = X 1536 + 256
URY – LLY
Y – LLY
Y’ = X 1536 + 256
全站熱搜