General purpose character LCD library. I found the TextLCD library had too many constraints and it didn\\\\\\\'t supply acces to all functions in the HD44780 chipset, so i decided to write my own character lcd library.
hd44780.h@0:9ab1b7e424ad, 2011-03-21 (annotated)
- Committer:
- lktromp
- Date:
- Mon Mar 21 13:14:10 2011 +0000
- Revision:
- 0:9ab1b7e424ad
- Child:
- 1:1349bedd5793
Initial revision, not complete yet
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lktromp | 0:9ab1b7e424ad | 1 | |
lktromp | 0:9ab1b7e424ad | 2 | |
lktromp | 0:9ab1b7e424ad | 3 | #define LCD_CLEAR 0x01 |
lktromp | 0:9ab1b7e424ad | 4 | |
lktromp | 0:9ab1b7e424ad | 5 | #define LCD_HOME 0x02 |
lktromp | 0:9ab1b7e424ad | 6 | |
lktromp | 0:9ab1b7e424ad | 7 | #define LCD_ENTRY_MODE 0x04 |
lktromp | 0:9ab1b7e424ad | 8 | #define LCD_ENTRY_INC 0x01 |
lktromp | 0:9ab1b7e424ad | 9 | #define LCD_ENTRY_DEC 0x00 |
lktromp | 0:9ab1b7e424ad | 10 | #define LCD_ENTRY_SHIFT 0x02 |
lktromp | 0:9ab1b7e424ad | 11 | #define LCD_ENTRY_STAT 0x00 |
lktromp | 0:9ab1b7e424ad | 12 | |
lktromp | 0:9ab1b7e424ad | 13 | |
lktromp | 0:9ab1b7e424ad | 14 | #define LCD_DISPLAY_CTR 0x08 |
lktromp | 0:9ab1b7e424ad | 15 | #define LCD_DISP_ON 0x01 |
lktromp | 0:9ab1b7e424ad | 16 | #define LCD_DISP_OFF 0x00 |
lktromp | 0:9ab1b7e424ad | 17 | #define LCD_CURSOR_ON 0x02 |
lktromp | 0:9ab1b7e424ad | 18 | #define LCD_CURSOR_OFF 0x00 |
lktromp | 0:9ab1b7e424ad | 19 | #define LCD_BLINK_ON 0x04 |
lktromp | 0:9ab1b7e424ad | 20 | #define LCD_BLINK_OFF 0x00 |
lktromp | 0:9ab1b7e424ad | 21 | |
lktromp | 0:9ab1b7e424ad | 22 | #define LCD_SHIFT 0x10 |
lktromp | 0:9ab1b7e424ad | 23 | #define LCD_SHIFT_RIGHT 0x04 |
lktromp | 0:9ab1b7e424ad | 24 | #define LCD_SHIFT_LEFT 0x00 |
lktromp | 0:9ab1b7e424ad | 25 | #define LCD_SHIFT_CURS 0x08 |
lktromp | 0:9ab1b7e424ad | 26 | #define LCD_SHIFT_DISP 0x00 |
lktromp | 0:9ab1b7e424ad | 27 | |
lktromp | 0:9ab1b7e424ad | 28 | #define LCD_FUNCTION 0x20 |
lktromp | 0:9ab1b7e424ad | 29 | #define LCD_FUNC_5x10 0x04 |
lktromp | 0:9ab1b7e424ad | 30 | #define LCD_FUNC_5x8 0x00 |
lktromp | 0:9ab1b7e424ad | 31 | #define LCD_FUNC_2LINES 0x08 |
lktromp | 0:9ab1b7e424ad | 32 | #define LCD_FUNC_1LINES 0x00 |
lktromp | 0:9ab1b7e424ad | 33 | #define LCD_FUNC_8BIT 0x10 |
lktromp | 0:9ab1b7e424ad | 34 | #define LCD_FUNC_4BIT 0x00 |
lktromp | 0:9ab1b7e424ad | 35 | |
lktromp | 0:9ab1b7e424ad | 36 | #define LCD_SET_CGRAM 0x40 |
lktromp | 0:9ab1b7e424ad | 37 | |
lktromp | 0:9ab1b7e424ad | 38 | #define LCD_SET_DDRAM 0x80 |
lktromp | 0:9ab1b7e424ad | 39 |