Mikroelektronika MIKROE-724 データシート

ページ / 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
521
SPI_Glcd_Set_Side
SPI_Glcd_Set_X
SPI_Glcd_Set_Page
Prototype
sub procedure SPI_Glcd_Set_Side(dim x_pos as byte)
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.
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
sub procedure SPI_Glcd_Set_X(dim x_pos as byte)
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
sub procedure SPI_Glcd_Set_Page(dim page as byte)
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.