Clean up RGB LED type (#21859)
This commit is contained in:
		
							parent
							
								
									1e3095f9cc
								
							
						
					
					
						commit
						41bd4e35a0
					
				
					 63 changed files with 222 additions and 243 deletions
				
			
		| 
						 | 
				
			
			@ -39,26 +39,26 @@ static uint8_t  isRecording = 0;
 | 
			
		|||
#    if RGBLED_NUM < 3
 | 
			
		||||
#        error we need at least 3 RGB LEDs!
 | 
			
		||||
#    endif
 | 
			
		||||
static cRGB led[RGBLED_NUM] = {{255, 255, 255}, {255, 255, 255}, {255, 255, 255}};
 | 
			
		||||
static rgb_led_t led[RGBLED_NUM] = {{255, 255, 255}, {255, 255, 255}, {255, 255, 255}};
 | 
			
		||||
 | 
			
		||||
#    define BRIGHT 32
 | 
			
		||||
#    define DIM 6
 | 
			
		||||
 | 
			
		||||
static const cRGB black = {.r = 0, .g = 0, .b = 0};
 | 
			
		||||
static const rgb_led_t black = {.r = 0, .g = 0, .b = 0};
 | 
			
		||||
 | 
			
		||||
static const __attribute__((unused)) cRGB green  = {.r = 0, .g = BRIGHT, .b = 0};
 | 
			
		||||
static const __attribute__((unused)) cRGB lgreen = {.r = 0, .g = DIM, .b = 0};
 | 
			
		||||
static const __attribute__((unused)) rgb_led_t green  = {.r = 0, .g = BRIGHT, .b = 0};
 | 
			
		||||
static const __attribute__((unused)) rgb_led_t lgreen = {.r = 0, .g = DIM, .b = 0};
 | 
			
		||||
 | 
			
		||||
static const __attribute__((unused)) cRGB red  = {.r = BRIGHT, .g = 0, .b = 0};
 | 
			
		||||
static const __attribute__((unused)) cRGB lred = {.r = DIM, .g = 0, .b = 0};
 | 
			
		||||
static const __attribute__((unused)) rgb_led_t red  = {.r = BRIGHT, .g = 0, .b = 0};
 | 
			
		||||
static const __attribute__((unused)) rgb_led_t lred = {.r = DIM, .g = 0, .b = 0};
 | 
			
		||||
 | 
			
		||||
static const __attribute__((unused)) cRGB blue  = {.r = 0, .g = 0, .b = BRIGHT};
 | 
			
		||||
static const __attribute__((unused)) cRGB lblue = {.r = 0, .g = 0, .b = DIM};
 | 
			
		||||
static const __attribute__((unused)) rgb_led_t blue  = {.r = 0, .g = 0, .b = BRIGHT};
 | 
			
		||||
static const __attribute__((unused)) rgb_led_t lblue = {.r = 0, .g = 0, .b = DIM};
 | 
			
		||||
 | 
			
		||||
static const __attribute__((unused)) cRGB turq  = {.r = 0, .g = BRIGHT, .b = BRIGHT};
 | 
			
		||||
static const __attribute__((unused)) cRGB lturq = {.r = 0, .g = DIM, .b = DIM};
 | 
			
		||||
static const __attribute__((unused)) rgb_led_t turq  = {.r = 0, .g = BRIGHT, .b = BRIGHT};
 | 
			
		||||
static const __attribute__((unused)) rgb_led_t lturq = {.r = 0, .g = DIM, .b = DIM};
 | 
			
		||||
 | 
			
		||||
static const __attribute__((unused)) cRGB white = {.r = BRIGHT, .g = BRIGHT, .b = BRIGHT};
 | 
			
		||||
static const __attribute__((unused)) rgb_led_t white = {.r = BRIGHT, .g = BRIGHT, .b = BRIGHT};
 | 
			
		||||
 | 
			
		||||
static led_t   led_state;
 | 
			
		||||
static uint8_t layer;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue