mikroC

mikroC - C Compiler for Microchip PIC microcontrollers

making it simple...

Lcd_Init

Prototype

void Lcd_Init(char *port);

Description Initializes LCD at port with default pin settings (see the connection scheme at the end of the chapter): D7 -> PORT.7, D6 -> PORT.6, D5 -> PORT.5, D4 -> PORT.4,

E -> PORT.3, RS -> PORT.2.

Example Lcd_Init(PORTB);

Lcd_Out

Prototype

void Lcd_Out(char row, char

col,

char *text);

 

 

Description

Prints text on LCD at specified row and column (parameter row and col). Both string

 

variables and literals can be passed as text.

 

 

 

Requires

Port with LCD must be initialized. See Lcd_Config or Lcd_Init.

 

 

 

 

Example

Lcd_Out(1, 3, "Hello!"); //

Print

"Hello!" at line 1, char 3

 

 

 

 

Lcd_Out_Cp

Prototype

void Lcd_Out_Cp(char *text);

Description Prints text on LCD at current cursor position. Both string variables and literals can be passed as text.

Requires Port with LCD must be initialized. See Lcd_Config or Lcd_Init.

Example

Lcd_Out_Cp("Here!"); // Print "Here!" at current cursor position

page

 

198

MikroElektronika: Development tools - Books - Compilers