
92
Description
:
The putchar function sends the character specified in the argument c
to the LCD display at the current cursor position and moves the
cursor accordingly.
Returns
:
None
_puts
Purpose
:
Display a string on the LCD display.
Syntax
:
char _puts (char* string)
Example call
:
_puts(“Hello World”);
Includes
:
#include “LIB_CL.h ”
Description
:
The puts function sends a character string whose address is specified
in the argument string to the LCD display starting from the current
cursor position. The cursor is moved accordingly as each character of
string is sent to the LCD display. The operation continues until a
terminating null character is encountered.
Returns
:
The puts function returns the number characters sent to the LCD
display
SetContrast
Purpose
:
To set contrast level for the LCD
Syntax
:
void SetContrast(int level);
Example call
:
SetContrast(5);
Includes
:
#include “LIB_CL.h ”
Description
:
The SetContrast function is used to set the contrast level for LCD.
The valid level is ranging from 0 to 11. The higher value, the higher
contrast.
Returns
:
None
SetCursor
Purpose
:
Turn on or off the cursor of the LCD display.
Syntax
:
void SetCursor(int status);
Example call
:
SetCursor (1);
Includes
:
#include “LIB_CL.h ”
Description
:
The SetCursor function displays or hides the cursor of the LCD
display according to the value of status specified. If status equals 1,
the cursor will be turned on to show the current cursor position. If
status equals 0, the cursor will be invisible.
Returns
:
None
SetFont