Mikroelektronika MIKROE-724 データシート

ページ / 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
543
SPI_Lcd8_Cmd
Prototype
sub procedure SPI_Lcd8_Cmd(dim out_char as byte)
Description Sends command to Lcd.
Parameters 
out_char
: command to be sent 
Returns
Nothing.
Requires
Lcd needs to be initialized for SPI communication, see SPI_Lcd8_Config routine.
Example
‘ Clear Lcd display:
SPI_Lcd8_Cmd(_LCD_CLEAR)
Notes
Predefined constants can be passed to the routine, see Available SPI Lcd8 Commands.
Available SPI Lcd8 Commands
SPI Lcd8 Command
Purpose
_LCD_FIRST_ROW
Move cursor to the 1st row
_LCD_SECOND_ROW
Move cursor to the 2nd row
_LCD_THIRD_ROW
Move cursor to the 3rd row
_LCD_FOURTH_ROW
Move cursor to the 4th row
_LCD_CLEAR
Clear display
_LCD_RETURN_HOME
Return cursor to home position, returns a shifted display to its 
original position. Display data RAM is unaffected.
_LCD_CURSOR_OFF
Turn off cursor
_LCD_UNDERLINE_ON
Underline cursor on
_LCD_BLINK_CURSOR_ON
Blink cursor on
_LCD_MOVE_CURSOR_LEFT
Move cursor left without changing display data RAM
_LCD_MOVE_CURSOR_RIGHT
Move cursor right without changing display data RAM
_LCD_TURN_ON
Turn Lcd display on
_LCD_TURN_OFF
Turn Lcd display off
_LCD_SHIFT_LEFT
Shift display left without changing display data RAM
_LCD_SHIFT_RIGHT
Shift display right without changing display data RAM