Mikroelektronika MIKROE-350 データシート

ページ / 526
Glcd_Write_Data
Glcd_Fill
223
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure 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, see Glcd_Init routine.
Glcd side, x-axis position and page should be set first. See functions
Glcd_Set_Side, Glcd_Set_X, and Glcd_Set_Page.
Example
dim data as byte
...
Glcd_Write_Data(data)
Prototype
sub procedure Glcd_Fill(dim pattern as byte)
Returns
Nothing.
Description
Fills Glcd memory with the byte pattern.
Parameters : 
pattern:
byte to fill Glcd memory with 
To clear the Glcd screen, use 
Glcd_Fill(0).
To fill the screen completely, use 
Glcd_Fill(0xFF).
Requires
Glcd needs to be initialized, see Glcd_Init routine.
Example
' Clear screen
Glcd_Fill(0)