Consolidate RGB Matrix layer indication function
And changes to iris
This commit is contained in:
		
							parent
							
								
									f520316124
								
							
						
					
					
						commit
						6689f900fc
					
				
					 6 changed files with 92 additions and 44 deletions
				
			
		| 
						 | 
				
			
			@ -334,3 +334,14 @@ uint32_t layer_state_set_rgb(uint32_t state) {
 | 
			
		|||
 | 
			
		||||
    return state;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#ifdef RGB_MATRIX_ENABLE
 | 
			
		||||
extern led_config_t g_led_config;
 | 
			
		||||
void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue, uint8_t led_type) {
 | 
			
		||||
    for (int i = 0; i < DRIVER_LED_TOTAL; i++) {
 | 
			
		||||
        if (HAS_FLAGS(g_led_config.flags[i], led_type)) {
 | 
			
		||||
            rgb_matrix_set_color( i, red, green, blue );
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,3 +19,5 @@ uint32_t layer_state_set_rgb(uint32_t state);
 | 
			
		|||
uint32_t default_layer_state_set_rgb(uint32_t state);
 | 
			
		||||
void rgblight_sethsv_default_helper(uint8_t index);
 | 
			
		||||
void rgb_matrix_set_color_all( uint8_t red, uint8_t green, uint8_t blue );
 | 
			
		||||
 | 
			
		||||
void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue, uint8_t led_type);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue