User manual

Table Of Contents
508
mikoC PRO for PIC32
MikroElektronika
SPI_Lcd8_Out
SPI_Lcd8_Out_Cp
SPI_Lcd8_Chr
Prototype
void SPI_Lcd8_Out(unsigned short row, unsigned short column, char *text);
Description Prints text on Lcd starting from specied position. Both string variables and literals can be passed as
a text.
Parameters - row: starting position row number
- column: starting position column number
- text: text to be written
Returns Nothing.
Requires Lcd needs to be initialized for SPI communication, see SPI_Lcd8_Cong routine.
Example
// Write text “Hello!” on Lcd starting from row 1, column 3:
SPI_Lcd8_Out(1, 3, “Hello!”);
Notes None.
Prototype
void SPI_Lcd8_Out_CP(char *text);
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_Cong routine.
Example
// Write text “Here!” at current cursor position:
SPI_Lcd8_Out_Cp(“Here!”);
Notes None.
Prototype
void SPI_Lcd8_Chr(unsigned short row, unsigned short column, char out_
char);
Description Prints character on Lcd at specied 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_Cong routine.
Example
// Write character “i” at row 2, column 3:
SPI_Lcd8_Chr(2, 3, ‘i’);
Notes None.