User manual

460
mikoBasic PRO for PIC32
MikroElektronika
SPI_Glcd_Read_Data
SPI_Glcd_Write_Data
Prototype
sub function SPI_Glcd_Read_Data() as byte
Description Reads data from the current location of Glcd memory and moves to the next location.
Returns One byte from Glcd memory.
Requires Glcd needs to be initialized for SPI communication, see SPI_Glcd_Init routine.
Glcd side, x-axis position and page should be set rst. See the functions SPI_Glcd_Set_Side, SPI_
Glcd_Set_X, and SPI_Glcd_Set_Page.
Parameters None.
Example
dim data_ as byte
...
data_ = SPI_Glcd_Read_Data()
Notes None.
Prototype
sub procedure SPI_Glcd_Write_Data(dim data_ as byte)
Description Writes one byte to the current location in Glcd memory and moves to the next location.
Parameters - data_: data to be written
Returns Nothing.
Requires Glcd needs to be initialized for SPI communication, see SPI_Glcd_Init routine.
Glcd side, x-axis position and page should be set rst. See the functions SPI_Glcd_Set_Side, SPI_
Glcd_Set_X, and SPI_Glcd_Set_Page.
Example
dim data_ as byte
...
SPI_Glcd_Write_Data(data_)
Notes None.