Mikroelektronika MIKROE-350 データシート
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
SPI_Lcd_Cmd
Available SPI Lcd Commands
410
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure SPI_Lcd_Cmd(dim out_char as 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 SPI
Lcd Commands.
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.
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