Mikroelektronika MIKROE-724 データシート

ページ / 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
607
Touch Panel Library
The mikroBasic 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 defined in 
all projects using Touch Panel Library:
Description:
Example:
dim DriveA as sbit sfr external
DriveA line.
dim DriveA as sbit at LATC13_bit
dim DriveB as sbit sfr external
DriveB line.
dim DriveB as sbit at LATC14_bit
dim DriveA_Direction as sbit sfr 
external
Direction of the DriveA pin.
dim  DriveA_Direction  as  sbit  at 
TRISC13_bit
dim DriveB_Direction as sbit sfr 
external
Direction of the DriveB pin.
dim  DriveB_Direction  as  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