Mikroelektronika MIKROE-442 Datenbogen
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
619
TP_TFT_Get_Calibration_Consts
Prototype
sub procedure TP_TFT_Get_Calibration_Consts(dim byref x_min as word, dim
byref x_max as word, dim byref y_min as word, dim byref y_max as 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
sub procedure TP_TFT_Set_Calibration_Consts(dim x_min as word, dim x_max as
word, dim y_min as word, dim y_max as word)
Description Sets calibration constants.
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_Set_Calibration_Consts(148, 3590, 519, 3370) ‘ Set calibration
constants
Notes
None.