Mikroelektronika MIKROE-738 Datenbogen

Seite von 682
584
mikoC PRO for PIC32
MikroElektronika
Touch Panel TFT Library
The mikroC PRO for PIC32 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  defined  in  all 
projects using Touch Panel TFT Library:
Description:
Example:
extern sfr sbit DriveX_Left;
DriveX_Left line.
sbit  DriveX_Left  at  LATB13_
bit;
extern sfr sbit DriveX_Right;
DriveX_Right line.
sbit DriveX_Right at LATB11_
bit;
extern sfr sbit DriveY_Up;
DriveY_Up line.
sbit  DriveY_Up  at  LATB12_
bit;
extern sfr sbit DriveY_Down;
DriveY_Down line.
sbit  DriveY_Down  at  LATB10_
bit;
extern sfr sbit DriveX_Left_Direction;
Direction of the DriveX_Left pin.
sbit  DriveX_Left_Direction 
at TRISB13_bit;
extern sfr sbit DriveX_Right_Direction;
Direction of the DriveX_Right pin.
sbit  DriveX_Right_Direction 
at TRISB11_bit;
extern sfr sbit DriveY_Up_Direction;
Direction of the DriveY_Up pin.
sbit  DriveY_Up_Direction  at 
TRISB12_bit;
extern sfr sbit DriveY_Down_Direction;
Direction of the DriveY_Down pin.
sbit  DriveY_Down_Direction 
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