Chapter 3 Terminal Specific Function Library
89
puts
Purpose
To display a string on the LCD.
Syntax
int puts (char *string);
char* string; /* string being sent to the LCD */
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
Purpose
To show a moving hourglass on the LCD.
Syntax
void WaitHourglass (int UppLeftX, int UppLeftY, int type);
int UppLeftX; /* x coordinate of the upper left corner of the hourglass */
int UppLeftY; /* y coordinate of the upper left corner of the hourglass */
int type; /* type (size) of the hourglass */
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)
24X23 pixels
HOURGLASS_8x8 (2)
8x8 pixels
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.
Return
None
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...