Mikroelektronika MIKROE-724 データシート

ページ / 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
327
S1D13700_Write_Parameter
S1D13700_Read_Parameter
S1D13700_Fill
Prototype
sub procedure S1D13700_Write_Parameter(dim parameter as byte)
Returns
Nothing.
Description Writes a parameter to S1D13700 controller.
Parameters: 
parameter
: parameter to be written. 
Requires
Glcd module needs to be initialized. See the S1D13700_Init routine.
Previously, a command must be sent through S1D13700_Write_Command routine.
Example
S1D13700_Write_Command(S1D13700_CSRW) ‘ set cursor address
S1D13700_Write_Parameter(Lo(start)) ‘ send lower byte of cursor address
S1D13700_Write_Parameter(Hi(start)) ‘ send higher byte cursor address
Prototype
sub function S1D13700_Read_Parameter() as byte
Returns
Nothing.
Description Reads a parameter from GLCD port.
Requires
Glcd module needs to be initialized. See the S1D13700_Init routine.
Example
parameter = S1D13700_Read_Parameter()
Prototype
sub procedure S1D13700_Fill(dim d as byte, dim start as word, dim len as 
word)
Returns
Nothing.
Description Fills Glcd memory block with given byte.
Parameters: 
d
: byte to be written. 
start
: starting address of the memory block. 
len
: length of the memory block in bytes. 
Requires
Glcd module needs to be initialized. See the S1D13700_Init routine.
Example
‘ from the starting address of 0x3000, fill the memory block size of 0x7FFF 
with 0x20
S1D13700_Fill(0x20, 0x3000, 0x7FFF)