User manual

Table Of Contents
328
mikoC PRO for PIC32
MikroElektronika
Glcd_Set_Side
Glcd_Set_X
Glcd_Set_Page
Prototype
void Glcd_Set_Side(unsigned short x_pos);
Description Selects Glcd side. Refer to the Glcd datasheet for detailed explanation.
Parameters - x_pos: Species position on x-axis of the Glcd. Valid values: 0..127. Values from 0 to 63 specify the
left side, values from 64 to 127 specify the right side of the Glcd.
Returns Nothing.
Requires Glcd needs to be initialized, see Glcd_Init routine.
Example The following two lines are equivalent, and both of them select the left side of Glcd:
Glcd_Select_Side(0);
Glcd_Select_Side(10);
Notes For side, x axis and page layout explanation see schematic at the bottom of this page.
Prototype
void Glcd_Set_X(unsigned short x_pos);
Description Sets x-axis position to x_pos dots from the left border of Glcd within the selected side.
Parameters - x_pos: position on x-axis. Valid values: 0..63
Returns Nothing.
Requires Glcd needs to be initialized, see Glcd_Init routine.
Example
Glcd_Set_X(25);
Notes For side, x axis and page layout explanation see schematic at the bottom of this page.
Prototype
void Glcd_Set_Page(unsigned short page);
Description Selects page of the Glcd.
Parameters - page: page number. Valid values: 0..7
Returns Nothing.
Requires Glcd needs to be initialized, see Glcd_Init routine.
Example
Glcd_Set_Page(5);
Notes For side, x axis and page layout explanation see schematic at the bottom of this page.