Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
SPI_Glcd_Set_X
SPI_Glcd_Read_Data
404
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure SPI_Glcd_Set_X(x_pos : byte);
Returns
Nothing.
Description
Sets x-axis position to x_pos dots from the left border of Glcd within the select-
ed side.
Parameters : 
x_pos
: position on x-axis. Valid values: 0..63 
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_X(25);
Prototype
function SPI_Glcd_Read_Data() : byte;
Returns
One byte from Glcd memory.
Description
Reads data from the current location of Glcd memory and moves to the next location.
Requires
Glcd needs to be initialized for SPI communication, see SPI_Glcd_Init routines.
Glcd side, x-axis position and page should be set first. See the functions
SPI_Glcd_Set_Side, SPI_Glcd_Set_X, and SPI_Glcd_Set_Page.
Example
var data : byte;
...
data := SPI_Glcd_Read_Data();