Adds a customizable screen timeout for the default boot screen

This commit is contained in:
João Brázio 2016-07-14 18:28:15 +01:00
parent 7202383695
commit f5234b0695
2 changed files with 6 additions and 2 deletions

View File

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

View File

@ -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();