Mikroelektronika MIKROE-724 データシート
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
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 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