MKS_12864_OLED code cleanup

This commit is contained in:
Scott Lahteine 2018-07-30 23:05:36 -05:00
parent b826bf4194
commit 64c493ad82

View File

@ -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