Adds a customizable screen timeout for the default boot screen
This commit is contained in:
		
							parent
							
								
									7202383695
								
							
						
					
					
						commit
						f5234b0695
					
				| @ -55,7 +55,7 @@ | ||||
|     #define LCD_CONTRAST_MIN 60 | ||||
|     #define LCD_CONTRAST_MAX 140 | ||||
|   #endif | ||||
|    | ||||
| 
 | ||||
|   #if ENABLED(MAKRPANEL) || ENABLED(MINIPANEL) | ||||
|     #define DOGLCD | ||||
|     #define ULTIPANEL | ||||
| @ -269,6 +269,10 @@ | ||||
|     #endif | ||||
|   #endif | ||||
| 
 | ||||
|   #ifndef BOOTSCREEN_TIMEOUT | ||||
|     #define BOOTSCREEN_TIMEOUT 2500 | ||||
|   #endif | ||||
| 
 | ||||
| #else // CONFIGURATION_LCD
 | ||||
| 
 | ||||
|   #define CONDITIONALS_H | ||||
|  | ||||
| @ -946,7 +946,7 @@ void setup() { | ||||
|   lcd_init(); | ||||
|   #if ENABLED(SHOW_BOOTSCREEN) | ||||
|     #if ENABLED(DOGLCD) | ||||
|       delay(1000); | ||||
|       delay(BOOTSCREEN_TIMEOUT); | ||||
|     #elif ENABLED(ULTRA_LCD) | ||||
|       bootscreen(); | ||||
|       lcd_init(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user