If the display is already in 4bit mode, reset to 8 bit
mode first, otherwise commands are misunderstood.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3893
38d2e660-2303-0410-9eaa-
f027e97ec537
timer_delay(50);
#if CONFIG_LCD_4BIT
+ lcd_regWrite(LCD_CMD_SET8BIT);
lcd_mode4Bit();
timer_delay(2);
#endif /* CONFIG_LCD_4BIT */
#define LCD_CMD_SETFUNC 0x38 /**< 8 bits, 2 lines, 5x7 dots */
#endif
+#define LCD_CMD_SET8BIT 0x30
#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 */