User manual

Table Of Contents
mikroC PRO for PIC32
MikroElektronika
345
Keypad_Key_Press
Keypad_Key_Click
Prototype
unsigned Keypad_Key_Press();
Description Reads the key from keypad when key gets pressed.
Parameters None.
Returns The code of a pressed key (1..16).
If no key is pressed, returns 0.
Requires Port needs to be initialized for working with the Keypad library, see Keypad_Init.
Example
unsigned kp;
...
kp = Keypad_Key_Press();
Notes None
Prototype
unsigned Keypad_Key_Click();
Description Call to Keypad_Key_Click is a blocking call: the function waits until some key is pressed and
released. When released, the function returns 1 to 16, depending on the key. If more than one key is
pressed simultaneously the function will wait until all pressed keys are released. After that the function
will return the code of the rst pressed key.
Parameters None.
Returns The code of a clicked key (1..16).
If no key is clicked, returns 0.
Requires Port needs to be initialized for working with the Keypad library, see Keypad_Init.
Example
kp = Keypad_Key_Click();
Notes None