Mikroc, Glcd_write_text, Glcd_write_char – ABL electronic PIC Microcontrollers PIC16 User Manual
Page 223

MikroElektronika: Development tools - Books - Compilers
215
page
mikroC - C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
Prototype
void
Glcd_Write_Text(char *text, unsigned short x, unsigned short
page, unsigned short color);
Description
Prints
text
at page (one of 8 GLCD lines, 0..7),
x
dots away from the left border of
display. Parameter
color
defines the “fill”: 0 prints a “white” letters (clear dots), 1
prints solid letters (put dots), and 2 prints “smart” letters (invert each dot).
Requires
GLCD needs to be initialized. See
Glcd_Init
.
Example
Glcd_Write_Text("Hello world!", 0, 0, 1);
Glcd_Write_Text
Prototype
void
Glcd_Write_Char(unsigned short character, unsigned short x,
unsigned short
page, char color);
Description
Prints
character
at
page
(one of 8 GLCD lines, 0..7),
x
dots away from the left bor-
der of display. Parameter
color
defines the “fill”: 0 prints a “white” letter (clear dots),
1 prints a solid letter (put dots), and 2 prints a “smart” letter (invert each dot).
Requires
GLCD needs to be initialized. See
Glcd_Init
.
Example
Glcd_Write_Char('C', 0, 0, 1);
Glcd_Write_Char