Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
SPI_Glcd_Set_Side
SPI_Glcd_Set_Page
403
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure SPI_Glcd_Set_Side(x_pos : 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
procedure SPI_Glcd_Set_Page(page : 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);