diff options
Diffstat (limited to 'docs/feature_led_matrix.md')
| -rw-r--r-- | docs/feature_led_matrix.md | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/feature_led_matrix.md b/docs/feature_led_matrix.md index fd87012e69..280db2a383 100644 --- a/docs/feature_led_matrix.md +++ b/docs/feature_led_matrix.md @@ -441,8 +441,12 @@ Where `28` is an unused index from `eeconfig.h`.  If you want to set custom indicators, such as an LED for Caps Lock, or layer indication, you can use the `led_matrix_indicators_kb` or `led_matrix_indicators_user` function for that:   ```c -void led_matrix_indicators_kb(void) { +bool led_matrix_indicators_kb(void) { +    if (!led_matrix_indicators_user()) { +        return false; +    }      led_matrix_set_value(index, value); +    return true;  }  ``` @@ -451,5 +455,6 @@ In addition, there are the advanced indicator functions.  These are aimed at tho  ```c  void led_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {      LED_MATRIX_INDICATOR_SET_VALUE(index, value); +    return false;  }  ```  | 
