User manual

mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
615
Touch Panel TFT Library
The mikroBasic PRO for dsPIC30/33 and PIC24 provides a library for working with Touch Panel for TFT.
Library Dependency Tree
External dependencies of Touch Panel TFT Library
The following variables must be dened in all
projects using Touch Panel TFT Library: Description: Example:
dim DriveX_Left as sbit sfr external
DriveX_Left line.
dim DriveX_Left as sbit at
LATB13_bit
dim DriveX_Right as sbit sfr external
DriveX_Right line.
dim DriveX_Right as sbit at
LATB11_bit
dim DriveY_Up as sbit sfr external
DriveY_Up line.
dim DriveY_Up as sbit at
LATB12_bit
dim DriveY_Down as sbit sfr external
DriveY_Down line.
dim DriveY_Down as sbit at
LATB10_bit
dim DriveX_Left_Direction as sbit sfr
external
Direction of the DriveX_Left pin.
dim DriveX_Left_Direction as
sbit at TRISB13_bit
dim DriveX_Right_Direction as sbit
sfr external
Direction of the DriveX_Right pin.
dim DriveX_Right_Direction as
sbit at TRISB11_bit
dim DriveY_Up_Direction as sbit sfr
external
Direction of the DriveY_Up pin.
dim DriveY_Up_Direction as
sbit at TRISB12_bit
dim DriveY_Down_Direction as sbit sfr
external
Direction of the DriveY_Down pin.
dim DriveY_Down_Direction as
sbit at TRISB10_bit
Library Routines
- TP_TFT_Init
- TP_TFT_Set_ADC_Threshold
- TP_TFT_Press_Detect
- TP_TFT_Get_Coordinates
- TP_TFT_Calibrate_Min
- TP_TFT_Calibrate_Max
- TP_TFT_Get_Calibration_Consts
- TP_TFT_Set_Calibration_Consts