Difference between revisions of "LCD"
(→LCD_Init) |
|||
Line 23: | Line 23: | ||
{{#Widget:LibTable}} | {{#Widget:LibTable}} | ||
|- | |- | ||
− | |Defination || | + | |Defination || void LCD_CmdWrite( uint8_t cmd) |
|- | |- | ||
− | | Input Arguments || | + | | Input Arguments || 8-bit command supported by LCD. |
|- | |- | ||
− | | Return Value|| | + | | Return Value|| none |
|- | |- | ||
− | | Description || | + | | 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 || | | Usage || | ||
Line 59: | Line 59: | ||
{{#Widget:LibTable}} | {{#Widget:LibTable}} | ||
|- | |- | ||
− | |Defination || | + | |Defination || void LCD_Clear() |
|- | |- | ||
− | | Input Arguments || | + | | Input Arguments || none. |
|- | |- | ||
− | | Return Value|| | + | | Return Value|| none. |
|- | |- | ||
− | | Description || | + | | Description ||This function clears the LCD and moves the cursor to beginning of first line |
|- | |- | ||
| Usage || | | Usage || | ||
Line 77: | Line 77: | ||
{{#Widget:LibTable}} | {{#Widget:LibTable}} | ||
|- | |- | ||
− | |Defination || | + | |Defination || void LCD_GoToLine(uint8_t LineNumber) |
|- | |- | ||
− | | Input Arguments || | + | | Input Arguments || uint8_t: Line number. |
|- | |- | ||
− | | Return Value|| | + | | Return Value|| none |
|- | |- | ||
− | | Description || | + | | 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 || | | Usage || |
Revision as of 21:33, 20 December 2014
Contents
[hide]LCD
LCD_Init
{{#Widget:LibTable}}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
{{#Widget:LibTable}}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
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
LCD_Clear
{{#Widget:LibTable}}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_GoToLineOne
{{#Widget:LibTable}}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.
|
Usage |
LCD_GoToLineTwo
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
LCD_GoToXY
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
LCD_DisplayString
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
LCD_ScrollMessage
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
LCD_DisplayDecimalNumber
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
LCD_DisplayHexNumber
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
LCD_DisplayBinaryNumber
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
LCD_DisplayFloatNumber
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |
LCD_Printf
{{#Widget:LibTable}}Defination | |
Input Arguments | |
Return Value | |
Description | |
Usage |