-//#define LCD_CMD_SETFUNC 0x38 /*!< 8 bits, 2 lines, 5x7 dots */
-#define LCD_CMD_SETFUNC 0x28 /*!< 4 bits, 2 lines, 5x7 dots */
-#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 */
-#define LCD_CMD_CURSOR_BLOCK 0x0D /*!< Show cursor (block) */
-#define LCD_CMD_CURSOR_LINE 0x0F /*!< Show cursor (line) */
-#define LCD_CMD_CURSOR_OFF 0x0C /*!< Hide cursor */
+
+#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 */
+#define LCD_CMD_CURSOR_BLOCK 0x0D /**< Show cursor (block) */
+#define LCD_CMD_CURSOR_LINE 0x0F /**< Show cursor (line) */
+#define LCD_CMD_CURSOR_OFF 0x0C /**< Hide cursor */