CmdCalibrate

From MCS Wiki AVR
(Difference between revisions)
Jump to: navigation, search
 
(2 intermediate revisions by one user not shown)
Line 17: Line 17:
 
= <span class="f_Header">Remarks</span> =
 
= <span class="f_Header">Remarks</span> =
  
The calibration procedure collects three touches from the touch screen, then computes and loads an appropriate matrix into&nbsp;<span style="color: rgb(128, 0, 128);">REG_TOUCH_TRANSFORM_A-F</span>.
+
The calibration procedure collects three touches from the touch screen, then computes and loads an appropriate matrix into&nbsp;<span style="color:#ff0000;">REG_TOUCH_TRANSFORM_A-F</span>.
  
To use it, create a display list and then use&nbsp;[[CMDCALIBRATE|CmdCalibrate]]. The co-processor engine overlays the touch&nbsp;<span style="font-size: 10pt;">targets on the current Display List, gathers the calibration input and updates&nbsp;</span><span style="font-size: 10pt; color: rgb(128, 0, 128);">REG_TOUCH_TRANSFORM_A-F.</span>
+
To use it, create a display list and then use CmdCalibrate .&nbsp;The co-processor engine overlays the touch&nbsp;targets on the current Display List, gathers the calibration input and updates&nbsp;<span style="color:#ff0000;">REG_TOUCH_TRANSFORM_A-F</span>.
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
The &nbsp;completion of this function is detected when the value of&nbsp;<span style="color: rgb(128, 0, 128);">REG_CMD_READ</span>&nbsp;is equal to&nbsp;<span style="color: rgb(128, 0, 128);">REG_CMD_WRITE.</span>
+
The &nbsp;completion of this function is detected when the value of&nbsp;<span style="color:#ff0000;">REG_CMD_READ</span>&nbsp;is equal to&nbsp;<span style="color:#ff0000;">REG_CMD_WRITE</span><span style="color: rgb(128, 0, 128);">.</span>
  
  

Latest revision as of 14:20, 12 December 2014

Action

Execute the touch screen calibration routine.

 

 

Syntax

CmdCalibrate 

 

 

Remarks

The calibration procedure collects three touches from the touch screen, then computes and loads an appropriate matrix into REG_TOUCH_TRANSFORM_A-F.

To use it, create a display list and then use CmdCalibrate . The co-processor engine overlays the touch targets on the current Display List, gathers the calibration input and updates REG_TOUCH_TRANSFORM_A-F.

 

The  completion of this function is detected when the value of REG_CMD_READ is equal to REG_CMD_WRITE.


Languages   English  
Personal tools
Namespaces
Variants
Actions
Navigation
Language