Difference between revisions of "Keypad"
Line 2: | Line 2: | ||
=KEYPAD= | =KEYPAD= | ||
+ | |||
Line 14: | Line 15: | ||
| Return Value|| none | | Return Value|| none | ||
|- | |- | ||
− | | Description || This function configures the rows and columns for keypad scan. | + | | Description || This function configures the rows and columns for keypad scan.<br /> |
+ | *ROW lines are configured as Output.<br /> | ||
+ | *Column Lines are configured as Input. | ||
|- | |- | ||
| Usage || | | Usage || | ||
|} | |} | ||
+ | |||
+ | |||
+ | |||
==KEYPAD_GetKey== | ==KEYPAD_GetKey== | ||
Line 39: | Line 45: | ||
| Usage || | | Usage || | ||
|} | |} | ||
+ | |||
+ | |||
+ | |||
==KEYPAD_WaitForKeyRelease== | ==KEYPAD_WaitForKeyRelease== |
Revision as of 17:38, 27 December 2014
Contents
KEYPAD
KEYPAD_Init
Defination | void KEYPAD_Init() |
Input Arguments | none |
Return Value | none |
Description | This function configures the rows and columns for keypad scan.
|
Usage |
KEYPAD_GetKey
Defination | unsigned char KEYPAD_GetKey() |
Input Arguments | none |
Return Value | uint8_t--> ASCII value of the Key Pressed |
Description | This function waits till a key is pressed and returns its ASCII Value.
It follows the following sequences to decode the key pressed:
ASCII value. |
Usage |
KEYPAD_WaitForKeyRelease
Defination | void KEYPAD_WaitForKeyRelease() |
Input Arguments | none |
Return Value | none |
Description | This function waits till the previous key is released. |
Usage |
KEYPAD_WaitForKeyPress
Defination | void KEYPAD_WaitForKeyPress() |
Input Arguments | none |
Return Value | none |
Description | This function waits till a new key is pressed. The new Key pressed can be decoded by the function KEYPAD_GetKey. |
Usage |