Browse Source

Adds a customizable screen timeout for the default boot screen

pull/1/head
João Brázio 9 years ago
parent
commit
f5234b0695
  1. 6
      Marlin/Conditionals.h
  2. 2
      Marlin/Marlin_main.cpp

6
Marlin/Conditionals.h

@ -55,7 +55,7 @@
#define LCD_CONTRAST_MIN 60 #define LCD_CONTRAST_MIN 60
#define LCD_CONTRAST_MAX 140 #define LCD_CONTRAST_MAX 140
#endif #endif
#if ENABLED(MAKRPANEL) || ENABLED(MINIPANEL) #if ENABLED(MAKRPANEL) || ENABLED(MINIPANEL)
#define DOGLCD #define DOGLCD
#define ULTIPANEL #define ULTIPANEL
@ -269,6 +269,10 @@
#endif #endif
#endif #endif
#ifndef BOOTSCREEN_TIMEOUT
#define BOOTSCREEN_TIMEOUT 2500
#endif
#else // CONFIGURATION_LCD #else // CONFIGURATION_LCD
#define CONDITIONALS_H #define CONDITIONALS_H

2
Marlin/Marlin_main.cpp

@ -946,7 +946,7 @@ void setup() {
lcd_init(); lcd_init();
#if ENABLED(SHOW_BOOTSCREEN) #if ENABLED(SHOW_BOOTSCREEN)
#if ENABLED(DOGLCD) #if ENABLED(DOGLCD)
delay(1000); delay(BOOTSCREEN_TIMEOUT);
#elif ENABLED(ULTRA_LCD) #elif ENABLED(ULTRA_LCD)
bootscreen(); bootscreen();
lcd_init(); lcd_init();

Loading…
Cancel
Save