Browse Source

Add MKS_12864OLED to lcd_implementation_init

Followup to #7914
Scott Lahteine 6 years ago
parent
commit
5dec828abc
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      Marlin/src/lcd/ultralcd_impl_DOGM.h

+ 7
- 0
Marlin/src/lcd/ultralcd_impl_DOGM.h View File

@@ -364,6 +364,13 @@ void lcd_printPGM_utf(const char *str, uint8_t n=LCD_WIDTH) {
364 364
 // Initialize or re-initialize the LCD
365 365
 static void lcd_implementation_init() {
366 366
 
367
+  #if ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
368
+    SET_OUTPUT(LCD_PINS_DC);
369
+    OUT_WRITE(LCD_PINS_RS, LOW);
370
+    delay(1000);
371
+    WRITE(LCD_PINS_RS, HIGH);
372
+  #endif
373
+
367 374
   #if PIN_EXISTS(LCD_BACKLIGHT) // Enable LCD backlight
368 375
     OUT_WRITE(LCD_BACKLIGHT_PIN, HIGH);
369 376
   #endif

Loading…
Cancel
Save