Avery Dennison 6035 Programmer Manual Rev.CA 6/01 User Manual

Page 50

Advertising
background image

Function Reference 4-9

K b d S e t F u n c t

Description

Changes the keypad’s data entry mode to Function Key mode.

Syntax

void KbdSetFunct(void);

Parameters

None

Return Values

None

Example

#include <stdio.h>

#include <conio.h>

#include "mmsultra.h"

void main(void)

{

int iInput = 0;

// Prompted input

int iNum = 0;

// # of labels to print

KbdSetNormal();

// Set Normal mode

KbdSetFunct();

// Set Function Key mode

printf("Press 5 to print \nlabels\n"); // Get input (F5)

iInput = _getch();

if (iInput == 0x00)

{

KbdClrFunct();

iInput = _getch();

if (iInput == 0x3F)

{

// Get # of labels

printf("How many labels do\nyou need ?");

iNum = _getch();

printf("\nPrinting %c labels...", iNum);

/* Branch to printing routine */

}

Advertising