User manual

Table Of Contents
486
mikoC PRO for PIC32
MikroElektronika
SPI_Glcd_Set_Side
SPI_Glcd_Set_X
SPI_Glcd_Set_Page
Prototype
void SPI_Glcd_Set_Side(char x_pos);
Description Selects Glcd side. Refer to the Glcd datasheet for detail explanation.
Parameters - x_pos: position on x-axis. Valid values: 0..127
The parameter x_pos species the Glcd side: values from 0 to 63 specify the left side, values from 64
to 127 specify the right side.
Returns Nothing.
Requires Glcd needs to be initialized for SPI communication, see SPI_Glcd_Init routine.
Example The following two lines are equivalent, and both of them select the left side of Glcd:
SPI_Glcd_Set_Side(0);
SPI_Glcd_Set_Side(10);
Notes For side, x axis and page layout explanation see schematic at the bottom of this page.
Prototype
void SPI_Glcd_Set_X(char 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 for SPI communication, see SPI_Glcd_Init routine.
Example
SPI_Glcd_Set_X(25);
Notes For side, x axis and page layout explanation see schematic at the bottom of this page.
Prototype
void SPI_Glcd_Set_Page(char page);
Description Selects page of Glcd.
Returns - page: page number. Valid values: 0..7
Requires Glcd needs to be initialized for SPI communication, see SPI_Glcd_Init routine.
Example
SPI_Glcd_Set_Page(5);
Notes For side, x axis and page layout explanation see schematic at the bottom of this page.