diff options
Diffstat (limited to 'quantum/rgb_matrix.h')
| -rw-r--r-- | quantum/rgb_matrix.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/quantum/rgb_matrix.h b/quantum/rgb_matrix.h index 733333349..771a1fcd3 100644 --- a/quantum/rgb_matrix.h +++ b/quantum/rgb_matrix.h | |||
| @@ -57,6 +57,11 @@ | |||
| 57 | uint8_t max = DRIVER_LED_TOTAL; | 57 | uint8_t max = DRIVER_LED_TOTAL; |
| 58 | #endif | 58 | #endif |
| 59 | 59 | ||
| 60 | #define RGB_MATRIX_INDICATOR_SET_COLOR(i, r, g, b) \ | ||
| 61 | if (i >= led_min && i <= led_max) { \ | ||
| 62 | rgb_matrix_set_color(i, r, g, b); \ | ||
| 63 | } | ||
| 64 | |||
| 60 | #define RGB_MATRIX_TEST_LED_FLAGS() \ | 65 | #define RGB_MATRIX_TEST_LED_FLAGS() \ |
| 61 | if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) continue | 66 | if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) continue |
| 62 | 67 | ||
| @@ -103,6 +108,10 @@ void rgb_matrix_indicators(void); | |||
| 103 | void rgb_matrix_indicators_kb(void); | 108 | void rgb_matrix_indicators_kb(void); |
| 104 | void rgb_matrix_indicators_user(void); | 109 | void rgb_matrix_indicators_user(void); |
| 105 | 110 | ||
| 111 | void rgb_matrix_indicators_advanced(effect_params_t *params); | ||
| 112 | void rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max); | ||
| 113 | void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max); | ||
| 114 | |||
| 106 | void rgb_matrix_init(void); | 115 | void rgb_matrix_init(void); |
| 107 | 116 | ||
| 108 | void rgb_matrix_set_suspend_state(bool state); | 117 | void rgb_matrix_set_suspend_state(bool state); |
