Avery Dennison 6035 Programmer Manual Rev.CA 6/01 User Manual
Page 47
4-6 Programmer’s Manual
K b d S e t A l p h a
Description
4-line/33-key Printer Only. Changes the keypad’s data entry
mode to Lower-case Alpha mode.
Syntax
void KbdSetAlpha (void);
Parameters
None
Return Values
None
Example
#include <stdio.h>
#include <conio.h>
#include "mmsultra.h"
void main(void)
{
int iSavedmode = 0;
// Saved mode
int iInput = 0;
// Key entered
KbdSetAlpha();
// Set Lower -case Alpha
iSavedmode = KbdGetMode();
// Save the current mode
KbdSetCaps();
// Set Upper -case Alpha
printf("Press an alphabetic\nkey: "); // Test the mode
while (_kbhit())
;
iInput = _getch();
printf("\nYou pressed %c\n", iInput);
KbdRestoreMode(iSavedmode);
// Return to prev. mode
printf("\nPress the same\nkey: ");
// Test the mode
while (_kbhit())
;
iInput = _getch();