PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 315

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
touchpad_state( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
TOUCHPAD_STATE (state);
state is a literal 0, 1, or 2.
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:
Note: If the state is set to 1 while a key is being pressed, the touchpad will not
calibrate properly.
All PIC's with a CSM Module
#USE TOUCHPAD (options)
#USE TOUCHPAD (THRESHOLD=5, PIN_D5='5', PIN_B0='C')
void main(void){
detected
}
None
#USE
0 : Normal state
1 : Calibrates, then enters normal state
2 : Test mode, data from each key is collected in the int16 array TOUCHDATA
}
char c;
TOUCHPAD_STATE(1);
enable_interrupts(GLOBAL);
while(1){
TOUCHPAD,
c = TOUCHPAD_GETC();
touchpad_getc(
),
//will wait until one of declared pins is
//if PIN_B0 is pressed, c will get value 'C'
//if PIN_D5 is pressed, c will get value '5'
touchpad_hit( )
//calibrates, then enters normal state
301

Related parts for PCDIDE COMPILER