Datasheet
SPI_Glcd_Set_Side
SPI_Glcd_Set_Page
455
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
void SPI_Glcd_Set_Side(char x_pos);
Returns Nothing.
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 specifies the Glcd side: values from 0 to 63 specify the
left side, values from 64 to 127 specify the right side.
Note: For side, x axis and page layout explanation see schematic at the bottom
of this page.
Requires Glcd needs to be initialized for SPI communication, see SPI_Glcd_Init routines.
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);
Prototype
void SPI_Glcd_Set_Page(char page);
Returns Nothing.
Description
Selects page of Glcd.
Parameters :
-
page: page number. Valid values: 0..7
Note: For side, x axis and page layout explanation see schematic at the bottom
of this page.
Requires Glcd needs to be initialized for SPI communication, see SPI_Glcd_Init routines.
Example
SPI_Glcd_Set_Page(5);