Mikroelektronika MIKROE-442 데이터 시트

다운로드
페이지 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
537
SPI_Lcd_Cmd
Available SPI Lcd Commands
Prototype
sub procedure SPI_Lcd_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_Lcd_Config routine.
Example
‘ Clear Lcd display:
SPI_Lcd_Cmd(_LCD_CLEAR)
Notes
Predefined constants can be passed to the routine, see Available SPI Lcd Commands.
SPI Lcd 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