Mikroelektronika MIKROE-738 Datenbogen
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
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
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 first pressed key.
Parameters None.
Returns
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