Fix lcd not initing after WDT reset
This commit is contained in:
parent
2bae208133
commit
121e60655a
@ -196,8 +196,21 @@ static void lcd_putchar(char c, FILE *)
|
||||
|
||||
void lcd_init(void)
|
||||
{
|
||||
WRITE(LCD_PINS_ENABLE,LOW);
|
||||
SET_OUTPUT(LCD_PINS_RS);
|
||||
SET_OUTPUT(LCD_PINS_ENABLE);
|
||||
|
||||
#ifdef LCD_8BIT
|
||||
SET_OUTPUT(LCD_PINS_D0);
|
||||
SET_OUTPUT(LCD_PINS_D1);
|
||||
SET_OUTPUT(LCD_PINS_D2);
|
||||
SET_OUTPUT(LCD_PINS_D3);
|
||||
#endif
|
||||
SET_OUTPUT(LCD_PINS_D4);
|
||||
SET_OUTPUT(LCD_PINS_D5);
|
||||
SET_OUTPUT(LCD_PINS_D6);
|
||||
SET_OUTPUT(LCD_PINS_D7);
|
||||
|
||||
#ifdef LCD_8BIT
|
||||
lcd_displayfunction |= LCD_8BITMODE;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user