ABL electronic PIC Microcontrollers PIC18 User Manual

Page of 312
MikroElektronika:  Development  tools  -  Books  -  Compilers
199
page
mikroC - C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
Prototype
void
Lcd_Chr(char row, char col, char character);
Description
Prints 
character
on LCD at specified row and column (parameters 
row
and 
col
).
Both variables and literals can be passed as 
character
.
Requires
Port with LCD must be initialized. See 
Lcd_Config
or 
Lcd_Init
.
Example
Lcd_Out(2, 3, 'i');  
// Print 'i' at line 2, char 3
Lcd_Chr
Prototype
void
Lcd_Chr_Cp(char character);
Description
Prints 
character
on LCD at current cursor position. Both variables and literals can be
passed as 
character
.
Requires
Port with LCD must be initialized. See 
Lcd_Config
or 
Lcd_Init
.
Example
Lcd_Out_Cp('e');  
// Print 'e' at current cursor position
Lcd_Chr_Cp
Prototype
void
Lcd_Cmd(char command);
Description
Sends 
command
to LCD. You can pass one of the predefined constants to the function.
The complete list of available commands is shown on the following page.
Requires
Port with LCD must be initialized. See 
Lcd_Config
or 
Lcd_Init
.
Example
Lcd_Cmd(Lcd_Clear);  
// Clear LCD display
Lcd_Cmd