lcd_hd44.h
Go to the documentation of this file.00001
00041 #ifndef DRV_LCD_HD44_H
00042 #define DRV_LCD_HD44_H
00043
00044 #include "cfg/cfg_lcd.h"
00045 #include <cfg/compiler.h>
00046
00051 #define LCD_ROWS 2
00052 #define LCD_COLS 16
00053
00054
00059 #define LCD_CMD_DISPLAY_INI 0x30
00060
00061 #if CONFIG_LCD_4BIT
00062 #define LCD_CMD_SETFUNC 0x28
00063 #else
00064 #define LCD_CMD_SETFUNC 0x38
00065 #endif
00066
00067 #define LCD_CMD_DISPLAY_ON 0x0F
00068 #define LCD_CMD_DISPLAY_OFF 0x08
00069 #define LCD_CMD_CLEAR 0x01
00070 #define LCD_CMD_CURSOR_BLOCK 0x0D
00071 #define LCD_CMD_CURSOR_LINE 0x0F
00072 #define LCD_CMD_CURSOR_OFF 0x0C
00073 #define LCD_CMD_DISPLAYMODE 0x06
00074 #define LCD_CMD_SET_CGRAMADDR 0x40
00075 #define LCD_CMD_RESET_DDRAM 0x80
00076 #define LCD_CMD_SET_DDRAMADDR 0x80
00077 #define LCD_CMD_DISPLAY_SHIFT 0x18
00078 #define LCD_CMD_MOVESHIFT_LEFT 0x00
00079 #define LCD_CMD_MOVESHIFT_RIGHT 0x04
00080
00081
00083 typedef uint8_t lcdpos_t;
00084
00085 void lcd_waitBusy(void);
00086 void lcd_moveTo(uint8_t addr);
00087 void lcd_setReg(uint8_t val);
00088 void lcd_putc(uint8_t a, uint8_t c);
00089 void lcd_remapChar(const char *glyph, char code);
00090 void lcd_hw_init(void);
00091 void lcd_hw_test(void);
00092
00093 #endif