Mikroelektronika MIKROE-350 Fiche De Données

Page de 526
SPI_Glcd_Set_Side
SPI_Glcd_Set_Page
392
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure SPI_Glcd_Set_Side(dim x_pos as byte)
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
sub procedure SPI_Glcd_Set_Page(dim page as byte)
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)