Skip to content

Commit bddd75a

Browse files
authored
Merge pull request #6363 from dot-bob/display_reset
Identifed a display initialization issue.
2 parents 5e97265 + 9c410dd commit bddd75a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Marlin/ultralcd_impl_DOGM.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,15 +240,19 @@ void lcd_printPGM(const char* str) {
240240
for (; char c = pgm_read_byte(str); ++str) lcd_print(c);
241241
}
242242

243-
// Initialize or re-initializw the LCD
243+
// Initialize or re-initialize the LCD
244244
static void lcd_implementation_init() {
245245

246246
#if PIN_EXISTS(LCD_BACKLIGHT) // Enable LCD backlight
247247
OUT_WRITE(LCD_BACKLIGHT_PIN, HIGH);
248248
#endif
249249

250250
#if PIN_EXISTS(LCD_RESET)
251+
OUT_WRITE(LCD_RESET_PIN, LOW); // perform a clean hardware reset
252+
_delay_ms(5);
251253
OUT_WRITE(LCD_RESET_PIN, HIGH);
254+
_delay_ms(5); // delay to allow the display to initalize
255+
u8g.begin(); // re-initialize the display
252256
#endif
253257

254258
#if DISABLED(MINIPANEL) // setContrast not working for Mini Panel

0 commit comments

Comments
 (0)