Mikroelektronika MIKROE-738 Datenbogen
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
mikroC PRO for PIC32
MikroElektronika
587
TP_TFT_Get_Coordinates
Prototype
char TP_TFT_Get_Coordinates(unsigned int *x_coordinate, unsigned int *y_
coordinate);
Description Get touch panel coordinates and store them in
x_coordinate
and
y_coordinate
parameters.
Parameters -
x_coordinate
: x coordinate of the place of touch.
-
y_coordinate
: y coordinate of the place of touch.
Returns
-
1
- if reading is within display dimension range.
-
0
- if reading is out of display dimension range.
Requires
Nothing.
Example
if (TP_TFT_Get_Coordinates(&x_coord, &y_coord) == 0) {
...
}
Notes
None.
TP_TFT_Calibrate_Min
Prototype
void TP_TFT_Calibrate_Min();
Description Calibrate bottom left corner of the touch Panel.
Parameters None.
Returns
Parameters None.
Returns
Nothing.
Requires
Nothing.
Example
TP_TFT_Calibrate_Min(); // Calibration of bottom left corner
Notes
None.
TP_TFT_Calibrate_Max
Prototype
void TP_TFT_Calibrate_Max();
Description Calibrate upper right corner of the touch panel.
Parameters None.
Returns
Parameters None.
Returns
Nothing.
Requires
Nothing.
Example
TP_TFT_Calibrate_Max(); // Calibration of upper right corner
Notes
None.