Skip to content

Commit

Permalink
MKS_12864_OLED code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jul 31, 2018
1 parent b826bf4 commit 64c493a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Marlin/src/lcd/ultralcd_impl_DOGM.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ static void lcd_implementation_init() {

#if ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
SET_OUTPUT(LCD_PINS_DC);
OUT_WRITE(LCD_PINS_RS, LOW);
_delay_ms(500);
WRITE(LCD_PINS_RS, HIGH);
#if !defined(LCD_RESET_PIN)
#define LCD_RESET_PIN LCD_PINS_RS
#endif
#endif

#if PIN_EXISTS(LCD_RESET)
Expand All @@ -313,7 +313,7 @@ static void lcd_implementation_init() {
_delay_ms(5); // delay to allow the display to initalize
#endif

#if PIN_EXISTS(LCD_RESET) || ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
#if PIN_EXISTS(LCD_RESET)
u8g.begin();
#endif

Expand Down

0 comments on commit 64c493a

Please sign in to comment.