|
@@ -301,9 +301,9 @@ static void lcd_implementation_init() {
|
301
|
301
|
|
302
|
302
|
#if ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
|
303
|
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
|
307
|
#endif
|
308
|
308
|
|
309
|
309
|
#if PIN_EXISTS(LCD_RESET)
|
|
@@ -313,7 +313,7 @@ static void lcd_implementation_init() {
|
313
|
313
|
_delay_ms(5); // delay to allow the display to initalize
|
314
|
314
|
#endif
|
315
|
315
|
|
316
|
|
- #if PIN_EXISTS(LCD_RESET) || ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
|
|
316
|
+ #if PIN_EXISTS(LCD_RESET)
|
317
|
317
|
u8g.begin();
|
318
|
318
|
#endif
|
319
|
319
|
|