X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Flcd_hd44.h;h=8059d0e7fe0affc2c6dca9561011d4cd8dc2a50e;hb=9ba9dcf2a59a952609e19154e11de3e2478cbf42;hp=9a0d4b121e9a114563bacf02dcdd914c581c6d82;hpb=bcf38f772b397e7a8ba781a69aacb9380e54b32a;p=bertos.git diff --git a/drv/lcd_hd44.h b/drv/lcd_hd44.h old mode 100755 new mode 100644 index 9a0d4b12..8059d0e7 --- a/drv/lcd_hd44.h +++ b/drv/lcd_hd44.h @@ -1,8 +1,33 @@ /** * \file * * * \brief Hitachi HD44780 and clones LCD module (interface) @@ -14,6 +39,9 @@ /*#* *#* $Log$ + *#* Revision 1.3 2006/09/20 19:55:01 marco + *#* Added CONFIG_LCD_4BIT. + *#* *#* Revision 1.2 2006/07/19 12:56:25 bernie *#* Convert to new Doxygen style. *#* @@ -39,6 +67,7 @@ #ifndef DRV_LCD_HD44_H #define DRV_LCD_HD44_H +#include #include /* For stdint types */ /** @@ -54,8 +83,13 @@ * \{ */ #define LCD_CMD_DISPLAY_INI 0x30 -//#define LCD_CMD_SETFUNC 0x38 /**< 8 bits, 2 lines, 5x7 dots */ -#define LCD_CMD_SETFUNC 0x28 /**< 4 bits, 2 lines, 5x7 dots */ + +#if CONFIG_LCD_4BIT + #define LCD_CMD_SETFUNC 0x28 /**< 4 bits, 2 lines, 5x7 dots */ +#else + #define LCD_CMD_SETFUNC 0x38 /**< 8 bits, 2 lines, 5x7 dots */ +#endif + #define LCD_CMD_DISPLAY_ON 0x0F /**< Switch on display */ #define LCD_CMD_DISPLAY_OFF 0x08 /**< Switch off display */ #define LCD_CMD_CLEAR 0x01 /**< Clear display */