Argox PA-20 Programming Guide Bedienungsanleitung Seite 70

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 130
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 69
PT-20 Programming Guide
68
Returns
None
get_keypad_BL_Timer
Purpose
Get keypad backlight timer.
Syntax
int get_keypad_BL_Timer(void);
Example call
int slkeypadimer;
slkeypadimer = get_keypad_BL_Timer();
Includes
#include “SDK.h ”
Description
This function can get keypad backlight timer.
Returns
0: Keypad backlight always on
Other: The timer for keypad backlight(sec.).
kbhit
Purpose
Check keybuffer is empty or not.
Syntax
int kbhit(void);
Example call
kbhit();
Includes
#include “SDK.h ”
Description
This function can check keybuffer is empty or not.
Returns
0: Keybuffer is empty.
1: Keybuffer is not empty.
_getchar
Purpose
Get one key stroke from the keyboard buffer.
Syntax
char _getchar(void);
Example call
c=_getchar ( );
if (c > 0) _printf(“Key %d pressed”,c);
else printf(“No key pressed”);
Includes
#include “SDK.h ”
Description
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.
Returns
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.
GetKeyClick
Purpose
Get current key click status
Syntax
int GetKeyClick(void);
Example call
state = GetKeyClick( );
Seitenansicht 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 129 130

Kommentare zu diesen Handbüchern

Keine Kommentare