User manual

Table Of Contents
mikroC PRO for PIC32
MikroElektronika
579
Touch Panel Library
The mikroC PRO for PIC32 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:
extern sfr sbit DriveA;
DriveA line.
sbit DriveA at LATC13_bit;
extern sfr sbit DriveB;
DriveB line.
sbit DriveB at LATC14_bit;
extern sfr sbit DriveA_Direction;
Direction of the DriveA pin.
sbit DriveA_Direction at TRISC13_bit;
extern sfr sbit DriveB_Direction;
Direction of the DriveB pin.
sbit DriveB_Direction 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