Datasheet

SPI_Glcd_Write_Data
SPI_Glcd_Fill
394
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure SPI_Glcd_Write_Data(dim Ddata as byte)
Returns Nothing.
Description
Writes one byte to the current location in Glcd memory and moves to the next
location.
Parameters :
-
Ddata: data to be written
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 ddata as byte
...
SPI_Glcd_Write_Data(ddata)
Prototype
sub procedure SPI_Glcd_Fill(dim pattern as byte)
Returns Nothing.
Description
Fills Glcd memory with byte pattern.
Parameters :
-
pattern: byte to fill Glcd memory with
To clear the Glcd screen, use
SPI_Glcd_Fill(0).
To fill the screen completely, use SPI_Glcd_Fill(0xFF).
Requires Glcd needs to be initialized for SPI communication, see SPI_Glcd_Init routines.
Example
' Clear screen
SPI_Glcd_Fill(0)