Merge pull request #6363 from dot-bob/display_reset
Identifed a display initialization issue.
This commit is contained in:
commit
bddd75aa5c
1 changed files with 5 additions and 1 deletions
|
@ -240,7 +240,7 @@ void lcd_printPGM(const char* str) {
|
||||||
for (; char c = pgm_read_byte(str); ++str) lcd_print(c);
|
for (; char c = pgm_read_byte(str); ++str) lcd_print(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize or re-initializw the LCD
|
// Initialize or re-initialize the LCD
|
||||||
static void lcd_implementation_init() {
|
static void lcd_implementation_init() {
|
||||||
|
|
||||||
#if PIN_EXISTS(LCD_BACKLIGHT) // Enable LCD backlight
|
#if PIN_EXISTS(LCD_BACKLIGHT) // Enable LCD backlight
|
||||||
|
@ -248,7 +248,11 @@ static void lcd_implementation_init() {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if PIN_EXISTS(LCD_RESET)
|
#if PIN_EXISTS(LCD_RESET)
|
||||||
|
OUT_WRITE(LCD_RESET_PIN, LOW); // perform a clean hardware reset
|
||||||
|
_delay_ms(5);
|
||||||
OUT_WRITE(LCD_RESET_PIN, HIGH);
|
OUT_WRITE(LCD_RESET_PIN, HIGH);
|
||||||
|
_delay_ms(5); // delay to allow the display to initalize
|
||||||
|
u8g.begin(); // re-initialize the display
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if DISABLED(MINIPANEL) // setContrast not working for Mini Panel
|
#if DISABLED(MINIPANEL) // setContrast not working for Mini Panel
|
||||||
|
|
Reference in a new issue