User manual

mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
606
Touch Panel Library
The mikroPascal PRO for dsPIC30/33 and PIC24 provides a library for working with Touch Panel.
Library Dependency Tree
External dependencies of Touch Panel Library
The following variables must be dened in
all projects using Touch Panel Library:
Description: Example:
var DriveA : sbit; sfr; external;
DriveA line.
var DriveA : sbit at LATC13_bit;
var DriveB : sbit; sfr; external;
DriveB line.
var DriveB : sbit at LATC14_bit;
var DriveA_Direction : sbit; sfr;
external;
Direction of the DriveA pin.
var DriveA_Direction : sbit at
TRISC13_bit;
var DriveB_Direction : sbit; sfr;
external;
Direction of the DriveB pin.
var DriveB_Direction : sbit at
TRISC14_bit;
Library Routines
- TP_Init
- TP_Set_ADC_Threshold
- TP_Press_Detect
- TP_Get_Coordinates
- TP_Calibrate_Bottom_Left
- TP_Calibrate_Upper_Right
- TP_Get_Calibration_Consts
- TP_Set_Calibration_Consts