Mikroelektronika MIKROE-724 データシート

ページ / 726
542
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
SPI_Lcd8_Out_Cp
SPI_Lcd8_Chr
Prototype
sub procedure SPI_Lcd8_Out_CP(dim byref text as string)
Description Prints text on Lcd at current cursor position. Both string variables and literals can be passed as a 
text.
Parameters 
text
: text to be written 
Returns
Nothing.
Requires
Lcd needs to be initialized for SPI communication, see SPI_Lcd8_Config routine.
Example
‘ Write text “Here!” at current cursor position:
SPI_Lcd8_Out_Cp(“Here!”)
Notes
None.
Prototype
sub procedure SPI_Lcd8_Chr(dim row, column, out_char as byte)
Description Prints character on Lcd at specified position. Both variables and literals can be passed as character.
Parameters 
row
: writing position row number 
column
: writing position column number 
out_char
: character to be written 
Returns
Nothing.
Requires
Lcd needs to be initialized for SPI communication, see SPI_Lcd8_Config routine.
Example
‘ Write character “i” at row 2, column 3:
SPI_Lcd8_Chr(2, 3, “i”)
Notes
None.
SPI_Lcd8_Chr_Cp
Prototype
sub procedure SPI_Lcd8_Chr_CP(dim out_char as byte)
Description Prints  character  on  Lcd  at  current  cursor  position.  Both  variables  and  literals  can  be  passed  as 
character.
Parameters 
out_char
: character to be written 
Returns
Nothing.
Requires
Lcd needs to be initialized for SPI communication, see SPI_Lcd8_Config routine.
Example
Print “e” at current cursor position:
‘ Write character “e” at current cursor position:
SPI_Lcd8_Chr_Cp(“e”)
Notes
None.