Browse Source

MKS_12864_OLED code cleanup

Scott Lahteine 7 years ago
parent
commit
64c493ad82
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/src/lcd/ultralcd_impl_DOGM.h

+ 4
- 4
Marlin/src/lcd/ultralcd_impl_DOGM.h View File

301
 
301
 
302
   #if ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
302
   #if ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
303
     SET_OUTPUT(LCD_PINS_DC);
303
     SET_OUTPUT(LCD_PINS_DC);
304
-    OUT_WRITE(LCD_PINS_RS, LOW);
305
-    _delay_ms(500);
306
-    WRITE(LCD_PINS_RS, HIGH);
304
+    #if !defined(LCD_RESET_PIN)
305
+      #define LCD_RESET_PIN LCD_PINS_RS
306
+    #endif
307
   #endif
307
   #endif
308
 
308
 
309
   #if PIN_EXISTS(LCD_RESET)
309
   #if PIN_EXISTS(LCD_RESET)
313
     _delay_ms(5); // delay to allow the display to initalize
313
     _delay_ms(5); // delay to allow the display to initalize
314
   #endif
314
   #endif
315
 
315
 
316
-  #if PIN_EXISTS(LCD_RESET) || ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
316
+  #if PIN_EXISTS(LCD_RESET)
317
     u8g.begin();
317
     u8g.begin();
318
   #endif
318
   #endif
319
 
319
 

Loading…
Cancel
Save