Clean up 12864 OLED code (#11388)
This commit is contained in:
parent
c4f4c255b4
commit
8db91f0bd1
@ -356,10 +356,8 @@ static void lcd_implementation_init() {
|
||||
OUT_WRITE(LCD_BACKLIGHT_PIN, HIGH);
|
||||
#endif
|
||||
|
||||
#if ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
|
||||
OUT_WRITE(LCD_PINS_RS, LOW);
|
||||
_delay_ms(500);
|
||||
OUT_WRITE(LCD_PINS_RS, HIGH);
|
||||
#if !defined(LCD_RESET_PIN) && (ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306))
|
||||
#define LCD_RESET_PIN LCD_PINS_RS
|
||||
#endif
|
||||
|
||||
#if PIN_EXISTS(LCD_RESET)
|
||||
@ -369,7 +367,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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user