Difference between revisions of "LCD"
(→LCD_DisplayString) |
(→LCD_DisplayString) |
||
Line 105: | Line 105: | ||
|- | |- | ||
| Description ||This function is used to display the ASCII string on the lcd. | | Description ||This function is used to display the ASCII string on the lcd. | ||
− | * | + | * The string_ptr points to the first char of the string and traverses till the end(NULL CHAR)and displays a char each time. |
− | + | ||
|- | |- | ||
| Usage || | | Usage || |
Revision as of 21:44, 20 December 2014
Contents
LCD
LCD_Init
Defination | void LCD_Init(uint8_t lcdMode, uint8_t lcdtype) |
Input Arguments | uint8_t: required Mode 4/8-bit. uint8_t: Type of LCD used (16x2/16x1 etc) |
Return Value | none |
Description | This function is used to initialize the lcd.*It initializes the LCD for selected mode(4/8-bit) and Type(16x2/16x1 etc) |
Usage |
LCD_CmdWrite
Defination | void LCD_CmdWrite( uint8_t cmd) |
Input Arguments | 8-bit command supported by LCD. |
Return Value | none |
Description | This function sends a command to LCD. Some of the commonly used commands are defined in lcd.h. For more commands refer the data sheet and send the supported command. The behaviour is undefined if unsupported commands are sent. |
Usage |
LCD_DataWrite
Defination | static void lcd_DataWrite( uint8_t dat) |
Input Arguments | uint8_t: 8-bit value to be sent to LCD. |
Return Value | none |
Description | This functions is used to send a byte of data to LCD. |
Usage |
LCD_Clear
Defination | void LCD_Clear() |
Input Arguments | none. |
Return Value | none. |
Description | This function clears the LCD and moves the cursor to beginning of first line |
Usage |
LCD_GoToLine
Defination | void LCD_GoToLine(uint8_t LineNumber) |
Input Arguments | uint8_t: Line number. |
Return Value | none |
Description | This function moves the Cursor to beginning of the specified line. If the requested line number is out of range, it will not move the cursor. |
Usage |
LCD_GoToNextline
Defination | void LCD_GoToNextLine() |
Input Arguments | none |
Return Value | none |
Description | This function moves the Cursor to beginning of the next line. If the cursor is on last line and NextLine command is issued then it will move the cursor to first line. |
Usage |
LCD_DisplayString
Defination | void LCD_DisplayString(char *string_ptr) |
Input Arguments | String(Address of the string) to be displayed. |
Return Value | none |
Description | This function is used to display the ASCII string on the lcd.
|
Usage |
LCD_ScrollMessage
Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
LCD_DisplayDecimalNumber
Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
LCD_DisplayHexNumber
Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
LCD_DisplayBinaryNumber
Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
LCD_DisplayFloatNumber
Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
LCD_Printf
Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |