Datasheet

Lcd_Cmd
Available Lcd Commands
310
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
void Lcd_Cmd(char out_char);
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 The Lcd module needs to be initialized. See Lcd_Init table.
Example
// Clear Lcd display:
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