User manual

mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
618
TP_TFT_Get_Calibration_Consts
Prototype
procedure TP_TFT_Get_Calibration_Consts(x_min : ^word; x_max : ^word; y_min
: ^word; y_max : ^word);
Description Gets calibration constants after calibration is done and stores them in x_min, x_max, y_min and
y_max parameters.
Parameters - x_min: x coordinate of the bottom left corner of the working area.
- x_max: x coordinate of the upper right corner of the working area.
- y_min: y coordinate of the bottom left corner of the working area.
- y_max: y coordinate of the upper right corner of the working area.
Returns Nothing.
Requires Nothing.
Example
TP_TFT_Get_Calibration_Consts(@x_min, @y_min, @x_max, @y_max); // Get
calibration constants
Notes None.
TP_TFT_Set_Calibration_Consts
Prototype
procedure TP_TFT_Set_Calibration_Consts(x_min : word; x_max : word; y_min
: word; y_max : word);
Description Sets calibration constants.
Parameters - x_min: x coordinate of the bottom left corner of the working area.
- x_max: x coordinate of the upper right corner of the working area.
- y_min: y coordinate of the bottom left corner of the working area.
- y_max: y coordinate of the upper right corner of the working area.
Returns Nothing.
Requires Nothing.
Example
TP_TFT_Set_Calibration_Consts(173, 776, 75, 760); // Set calibration
constants
Notes None.