Browse Source

MKS_12864_OLED code cleanup

pull/1/head
Scott Lahteine 6 years ago
parent
commit
64c493ad82
  1. 8
      Marlin/src/lcd/ultralcd_impl_DOGM.h

8
Marlin/src/lcd/ultralcd_impl_DOGM.h

@ -301,9 +301,9 @@ static void lcd_implementation_init() {
#if ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306) #if ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
SET_OUTPUT(LCD_PINS_DC); SET_OUTPUT(LCD_PINS_DC);
OUT_WRITE(LCD_PINS_RS, LOW); #if !defined(LCD_RESET_PIN)
_delay_ms(500); #define LCD_RESET_PIN LCD_PINS_RS
WRITE(LCD_PINS_RS, HIGH); #endif
#endif #endif
#if PIN_EXISTS(LCD_RESET) #if PIN_EXISTS(LCD_RESET)
@ -313,7 +313,7 @@ static void lcd_implementation_init() {
_delay_ms(5); // delay to allow the display to initalize _delay_ms(5); // delay to allow the display to initalize
#endif #endif
#if PIN_EXISTS(LCD_RESET) || ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306) #if PIN_EXISTS(LCD_RESET)
u8g.begin(); u8g.begin();
#endif #endif

Loading…
Cancel
Save