Clean up RGB LED type (#21859)
This commit is contained in:
		
							parent
							
								
									1e3095f9cc
								
							
						
					
					
						commit
						41bd4e35a0
					
				
					 63 changed files with 222 additions and 243 deletions
				
			
		| 
						 | 
				
			
			@ -70,9 +70,9 @@ void keyboard_post_init_user(void) {
 | 
			
		|||
 | 
			
		||||
extern rgblight_config_t rgblight_config;
 | 
			
		||||
extern void              rgblight_layers_write(void);
 | 
			
		||||
extern void              indicator_write(LED_TYPE *start_led, uint8_t num_leds);
 | 
			
		||||
extern void              indicator_write(rgb_led_t *start_led, uint8_t num_leds);
 | 
			
		||||
 | 
			
		||||
void rgblight_call_driver(LED_TYPE *start_led, uint8_t num_leds)
 | 
			
		||||
void rgblight_call_driver(rgb_led_t *start_led, uint8_t num_leds)
 | 
			
		||||
{
 | 
			
		||||
    ws2812_setleds(start_led, RGBLED_NUM-RGB_INDICATOR_NUM);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -20,7 +20,7 @@
 | 
			
		|||
#define ws2812_setleds_pin indicator_setleds_pin
 | 
			
		||||
#include "ws2812_bitbang.c"
 | 
			
		||||
 | 
			
		||||
void indicator_write(LED_TYPE *start_led, uint8_t num_leds)
 | 
			
		||||
void indicator_write(rgb_led_t *start_led, uint8_t num_leds)
 | 
			
		||||
{
 | 
			
		||||
    indicator_setleds(start_led, num_leds);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue