Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
SPI_Glcd_Write_Data
SPI_Glcd_Fill
405
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure SPI_Glcd_Write_Data(ddata : 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
var ddata : byte;
...
SPI_Glcd_Write_Data(ddata);
Prototype
procedure SPI_Glcd_Fill(pattern: 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);