
PT-20 Programming Guide
Get keypad backlight timer.
int get_keypad_BL_Timer(void);
int slkeypadimer;
slkeypadimer = get_keypad_BL_Timer();
This function can get keypad backlight timer.
0: Keypad backlight always on
Other: The timer for keypad backlight(sec.).
Check keybuffer is empty or not.
This function can check keybuffer is empty or not.
0: Keybuffer is empty.
1: Keybuffer is not empty.
Get one key stroke from the keyboard buffer.
c=_getchar ( );
if (c > 0) _printf(“Key %d pressed”,c);
else printf(“No key pressed”);
The getchar function reads one key stroke from the keyboard buffer and
then removes the key stroke from the keyboard buffer. It will pass the
value back, and clear the buffer. If there is no any key press before, it will
pass NULL(0X00) back.
The getchar function returns the key stroke read from the keyboard
buffer. If the keyboard buffer is empty, a null character (0x00) is returned.
The keystroke returned is the ASCII code of the key being pressed.
Get current key click status
Commentaires sur ces manuels