Mikroelektronika MIKROE-738 Datenbogen
582
mikoC PRO for PIC32
MikroElektronika
TP_Get_Coordinates
Prototype
char TP_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_Get_Coordinates(&x_coord, &y_coord) == 0) {
...
}
Notes
None.
TP_Calibrate_Bottom_Left
Prototype
void TP_Calibrate_Bottom_Left();
Description Calibrate bottom left corner of the touch Panel.
Parameters None.
Returns
Parameters None.
Returns
Nothing.
Requires
Nothing.
Example
TP_Calibrate_Bottom_Left(); // Calibration of bottom left corner
Notes
None.
TP_Calibrate_Upper_Right
Prototype
void TP_Calibrate_Upper_Right();
Description Calibrate upper right corner of the touch panel.
Parameters None.
Returns
Parameters None.
Returns
Nothing.
Requires
Nothing.
Example
TP_Calibrate_Upper_Right(); // Calibration of upper right corner
Notes
None.