Deploying to gh-pages from master @ fdf71f1aa7 🚀
				
					
				
			This commit is contained in:
		
							parent
							
								
									e2a304c8bb
								
							
						
					
					
						commit
						5e0e9e35fc
					
				
					 1 changed files with 33 additions and 0 deletions
				
			
		| 
						 | 
					@ -624,6 +624,39 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Indicator Examples :id=indicator-examples
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Caps Lock indicator on alphanumeric flagged keys:
 | 
				
			||||||
 | 
					```c
 | 
				
			||||||
 | 
					void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
 | 
				
			||||||
 | 
					    if (host_keyboard_led_state().caps_lock) {
 | 
				
			||||||
 | 
					        for (uint8_t i = led_min; i <= led_max; i++) {
 | 
				
			||||||
 | 
					            if (g_led_config.flags[i] & LED_FLAG_KEYLIGHT) {
 | 
				
			||||||
 | 
					                rgb_matrix_set_color(i, RGB_RED);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Layer indicator on all flagged keys:
 | 
				
			||||||
 | 
					```c
 | 
				
			||||||
 | 
					void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
 | 
				
			||||||
 | 
					    for (uint8_t i = led_min; i <= led_max; i++) {
 | 
				
			||||||
 | 
					        switch(get_highest_layer(layer_state|default_layer_state)) {
 | 
				
			||||||
 | 
					            case RAISE:
 | 
				
			||||||
 | 
					                rgb_matrix_set_color(i, RGB_BLUE);
 | 
				
			||||||
 | 
					                break;
 | 
				
			||||||
 | 
					            case LOWER:
 | 
				
			||||||
 | 
					                rgb_matrix_set_color(i, RGB_YELLOW);
 | 
				
			||||||
 | 
					                break;
 | 
				
			||||||
 | 
					            default:
 | 
				
			||||||
 | 
					                break;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Suspended state :id=suspended-state
 | 
					### Suspended state :id=suspended-state
 | 
				
			||||||
To use the suspend feature, make sure that `#define RGB_DISABLE_WHEN_USB_SUSPENDED true` is added to the `config.h` file. 
 | 
					To use the suspend feature, make sure that `#define RGB_DISABLE_WHEN_USB_SUSPENDED true` is added to the `config.h` file. 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue