Move MKS_12864OLED to lcd_implementation_init
This commit is contained in:
parent
009fd186f8
commit
4dad8628ff
@ -13863,12 +13863,6 @@ void setup() {
|
|||||||
pe_deactivate_magnet(1);
|
pe_deactivate_magnet(1);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if ENABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
|
|
||||||
SET_OUTPUT(LCD_PINS_DC);
|
|
||||||
OUT_WRITE(LCD_PINS_RS, LOW);
|
|
||||||
delay(1000);
|
|
||||||
WRITE(LCD_PINS_RS, HIGH);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if ENABLED(USE_WATCHDOG)
|
#if ENABLED(USE_WATCHDOG)
|
||||||
watchdog_init();
|
watchdog_init();
|
||||||
|
@ -350,6 +350,13 @@ void lcd_printPGM_utf(const char *str, uint8_t n=LCD_WIDTH) {
|
|||||||
// Initialize or re-initialize the LCD
|
// Initialize or re-initialize the LCD
|
||||||
static void lcd_implementation_init() {
|
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(1000);
|
||||||
|
WRITE(LCD_PINS_RS, HIGH);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if PIN_EXISTS(LCD_BACKLIGHT) // Enable LCD backlight
|
#if PIN_EXISTS(LCD_BACKLIGHT) // Enable LCD backlight
|
||||||
OUT_WRITE(LCD_BACKLIGHT_PIN, HIGH);
|
OUT_WRITE(LCD_BACKLIGHT_PIN, HIGH);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user