Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
SPI_Lcd_Cmd
Available SPI Lcd Commands
419
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure SPI_Lcd_Cmd(out_char : byte);
Returns
Nothing.
Description
Sends command to Lcd.
Parameters : 
out_char
: command to be sent 
Note: Predefined constants can be passed to the function, see Available Lcd
Commands. 
Requires
Lcd needs to be initialized for SPI communication, see SPI_Lcd_Config routines.
Example
// Clear Lcd display:
SPI_Lcd_Cmd(LCD_CLEAR);
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