Metrologic Optimus S Programming Manual page 95

"c" programming guide
Table of Contents

Advertisement

puts
Purpose
To display a string on the LCD.
Syntax
int puts (char *string);
char* string;
Example
puts ("Password : ");
Description
This routine sends a string, whose address is specified in the argument string,
to the LCD at the current cursor position. The cursor is moved accordingly as
each character of string is sent to the LCD. The operation continues until a
terminating null character is encountered.
Return
It returns the character count of the string.
See Also
putchar
WaitHourglass
To show a moving hourglass on the LCD.
Purpose
Syntax
void WaitHourglass (int UppLeftX, int UppLeftY, int type);
int UppLeftX;
int UppLeftY;
int type;
Example
while (IsRunning)
{...
WaitHourglass(68, 68, HOURGLASS_24x23);
/* show the 24x23 hourglass during the loop */
...}
Description
This routine has to be called constantly to maintain its functionality.
The value of the parameter type can be one of the following:
HOURGLASS_24x23 (1)
HOURGLASS_8x8 (2)
Return
None
Chapter 3 Terminal Specific Function Library
/* x coordinate of the upper left corner of the hourglass */
/* y coordinate of the upper left corner of the hourglass */
Five different patterns of an hourglass type take turns to show on the LCD
by a certain interval to symbolize the passage of time.
The time factor is decided by programming but never less than two
seconds.
/* string being sent to the LCD */
/* type (size) of the hourglass */
24X23 pixels
8x8 pixels
89

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents