Built-in Functions
Also See:
#USE TOUCHPAD, touchpad_state( )
touchpad_hit( )
Syntax:
value = TOUCHPAD_HIT( )
Parameters: None
Returns:
Function:
TRUE or FALSE
Returns TRUE if a Capacitive Sensing Module (CSM) or Charge Time
Measurement Unit (CTMU) key has been pressed. If TRUE, then a call to
touchpad_getc() will not cause the program to wait for a key press.
Availability: All PIC's with a CSM or CTMU Module
Requires:
Examples:
#USE TOUCHPAD (options)
// When the pad connected to PIN_B0 is activated, store the letter
'A'
#USE TOUCHPAD (PIN_B0='A')
void main(void){
char c;
enable_interrupts(GLOBAL);
while (TRUE) {
if ( TOUCHPAD_HIT() )
//wait until key on PIN_B0 is pressed
}
c = TOUCHPAD_GETC();
}
//get key that was pressed
//c will get value 'A'
Example
Files:
Also See:
None
#USE TOUCHPAD ( ), touchpad_state( ), touchpad_getc( )
touchpad_state( )
Syntax:
TOUCHPAD_STATE (state) ;
Parameters: state is a literal 0, 1, or 2.
Returns:
Function:
None
Sets the current state of the touchpad connected to the Capacitive Sensing
Module (CSM). The state can be one of the following three values:
301
相关PDF资料
PCI-EXP-T42G5-N1 IP CORE PCI EXPRESS ORCA 4
PCM18XH2 PROCESSOR MODULE MPLAB-ICE 2000
PCM18XN0 PROCESSOR MODULE FOR ICE2000
PDA-B-24-615-E-2B1-1-C CIRCUIT BREAKER MAG 1P 15A
PFMF.260.2 PFMF PTC FUSE SMT 2.6A 1812
PFNF.200.2 PFNF PTC FUSE SMT 2A 1206
PFRY.375 PTC-FUSE RADIAL 72 VDC
PFSM.150.33.2 FUSE PTC 8A 15V FST-TRIP SMD
相关代理商/技术参数
PCD_09 制造商:MACOM 制造商全称:Tyco Electronics 功能描述:Low Profile PCB Relay PCD
PCD-00173-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0E 制造商:Molex 功能描述:Ethernet Cable Assembly
PCD-00173-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00173-0K 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY
PCD-00174-0C 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Red; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet ;RoHS Compliant: NA
PCD-00174-0E 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY; Cable Length - Imperial:3ft; Cable Length - Metric:914.4mm; Connector Type A:RJ45 Plug; Connector Type B:RJ45 Plug; Jacket Color:Grey; Approval Bodies:CSA / UL; Body Material:PVC; Cable Assembly Type:Ethernet;RoHS Compliant: NA
PCD-00174-0H 制造商:Molex 功能描述:ETHERNET CABLE ASSEMBLY