|
| _getkey| Summary | |
#include <stdio.h>
char _getkey (void);
| | Description | | The _getkey function waits for a character to be received from the serial port. Note - This routine is implementation-specific and its function may deviate from that described above. Source code is provide in the LIB folder. You may modify the source to customize this function for your particular hardware environment.
| | Return Value | | The _getkey routine returns the received character. | | See Also | | getchar, putchar, ungetchar | | Example | |
#include <stdio.h>
void test_getkey (void) {
char c;
while ((c = _getkey ()) != 0x1B) {
printf ("key = %c %bu %bx\n", c, c, c);
}
}
|
Related Knowledgebase Articles |
|