Mikroelektronika MIKROE-350 Fiche De Données

Page de 526
SPI_Glcd_Set_X
SPI_Glcd_Read_Data
393
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure SPI_Glcd_Set_X(dim x_pos as 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
sub function SPI_Glcd_Read_Data() as 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
dim data as byte
...
data = SPI_Glcd_Read_Data()