Mikroelektronika MIKROE-350 Fiche De Données

Page de 526
Glcd_Write_Char
229
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure Glcd_Write_Char(dim chr as bytedim x_pos as byte,
dim page_num as bytedim color as byte)
Returns
Nothing.
Description
Prints character on the Glcd.
Parameters : 
chr:
character to be written 
x_pos:
character starting position on x-axis. Valid values: 0..(127-FontWidth) 
page_num:
the number of the page on which character will be written. Valid  
values: 0..7 
color:
color parameter. Valid values: 0..2 
The parameter 
color
determines the color of the character: 0 white, 1 black,
and 2 inverts each dot.
Note: For x axis and page layout explanation see schematic at the bottom of
this page.
Requires
Glcd needs to be initialized, see Glcd_Init routine. Use Glcd_Set_Font to speci-
fy the font for display; if no font is specified, then default 5x8 font supplied with
the library will be used.
Example
' Write character 'C' on the position 10 inside the page 2:
Glcd_Write_Char('C', 10, 2, 1)