🚸 TFT backlight PWM / brightness (#22841)
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							34c9f64925
						
					
				
				
					commit
					064f91e9b0
				
			@@ -135,6 +135,7 @@
 | 
			
		||||
 | 
			
		||||
  #define TFT_RESET_PIN                     PC4   // pin 33
 | 
			
		||||
  #define TFT_BACKLIGHT_PIN                 PD12  // pin 59
 | 
			
		||||
  #define TFT_BACKLIGHT_PWM                 150   // Brightness with alt. TIM4 chan 1 (1-255)
 | 
			
		||||
 | 
			
		||||
  #define DOGLCD_MOSI                       -1    // Prevent auto-define by Conditionals_post.h
 | 
			
		||||
  #define DOGLCD_SCK                        -1
 | 
			
		||||
@@ -143,6 +144,11 @@
 | 
			
		||||
  #define TFT_BUFFER_SIZE                   3200
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if defined(TFT_BACKLIGHT_PWM) && !defined(MAPLE_STM32F1)
 | 
			
		||||
  #define HAS_LCD_BRIGHTNESS 1
 | 
			
		||||
  #define DEFAULT_LCD_BRIGHTNESS TFT_BACKLIGHT_PWM
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if ENABLED(SDIO_SUPPORT)
 | 
			
		||||
  #define SD_SS_PIN                         -1    // else SDSS set to PA4 in M43 (spi_pins.h)
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user