Add _flush() functions to LED drivers (#22308)
				
					
				
			This commit is contained in:
		
							parent
							
								
									1e9b299fb0
								
							
						
					
					
						commit
						cf7d3435d7
					
				
					 72 changed files with 346 additions and 319 deletions
				
			
		| 
						 | 
				
			
			@ -174,6 +174,19 @@ void IS31FL_common_update_scaling_register(uint8_t addr, uint8_t index) {
 | 
			
		|||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void IS31FL_common_flush(void) {
 | 
			
		||||
    IS31FL_common_update_pwm_register(DRIVER_ADDR_1, 0);
 | 
			
		||||
#if defined(DRIVER_ADDR_2)
 | 
			
		||||
    IS31FL_common_update_pwm_register(DRIVER_ADDR_2, 1);
 | 
			
		||||
#    if defined(DRIVER_ADDR_3)
 | 
			
		||||
    IS31FL_common_update_pwm_register(DRIVER_ADDR_3, 2);
 | 
			
		||||
#        if defined(DRIVER_ADDR_4)
 | 
			
		||||
    IS31FL_common_update_pwm_register(DRIVER_ADDR_4, 3);
 | 
			
		||||
#        endif
 | 
			
		||||
#    endif
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#ifdef RGB_MATRIX_ENABLE
 | 
			
		||||
// Colour is set by adjusting PWM register
 | 
			
		||||
void IS31FL_RGB_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue