User manual
mikroPascal PRO for PIC32
MikroElektronika
543
TP_Press_Detect
Prototype
function TP_Press_Detect() : byte;
Description Detects if the touch panel has been pressed.
Parameters None.
Returns - 1 - if touch panel is pressed.
- 0 - otherwise.
Requires Global variables:
- DriveA: DriveA.
- DriveB: DriveB.
- DriveA_Direction: Direction of DriveA pin.
- DriveB_Direction: Direction of DriveB pin.
must be dened before using this function.
Example
// Touch Panel module connections
var DriveA : sbit at LATC13_bit;
DriveB : sbit at LATC14_bit;
DriveA_Direction : sbit at TRISC13_bit;
DriveB_Direction : sbit at TRISC14_bit;
// End Touch Panel module connections
if (TP_Press_Detect() <> 0) then
begin
...
end;
Notes None.