Datasheet
SPI_Glcd_Write_Data
SPI_Glcd_Fill
457
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
void SPI_Glcd_Write_Data(char Ddata);
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
char data;
...
SPI_Glcd_Write_Data(data);
Prototype
void SPI_Glcd_Fill(char pattern);
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);