User manual

372
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
Keypad_Key_Press
Keypad_Key_Click
Prototype
sub function Keypad_Key_Press() as word
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
dim kp as word
...
kp = Keypad_Key_Press()
Notes None
Prototype
sub function Keypad_Key_Click() as word
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