Mikroelektronika MIKROE-724 データシート
354
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
Glcd_Read_Data
Glcd_Write_Data
Prototype
sub function Glcd_Read_Data() as byte
Description Reads data from from the current location of Glcd memory and moves to the next location.
Parameters None.
Returns
Parameters None.
Returns
One byte from Glcd memory, formatted as a word (16-bit).
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_Read_Data()
data_ = Glcd_Read_Data()
Notes
This routine needs to be called twice; After the first call, data is placed in the buffer register. After the
second call, data is passed from the buffer register to data lines.
Prototype
sub procedure Glcd_Write_Data(dim data_ as byte)
Returns
Nothing.
Description Writes one byte to the current location in Glcd memory and moves to the next location.
Parameters:
-
data_
: 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_)