Add advanced/efficient RGB Matrix Indicators (#8564)
* Add Advanced RGB Matrix effects Add a new option, so that we can better handle custom indicators * Switch to led min/max instead of params Because params has already been incremented and is wrong now * Add indicator color function for use with advanced indicator functions * Add docs and helper macros * Add comment for explanations * Fix macro variables * Fix typo * Run clang-format on rgb_matrix.h
This commit is contained in:
parent
b1a6b161f3
commit
08caa7afd6
3 changed files with 43 additions and 4 deletions
|
@ -57,6 +57,11 @@
|
|||
uint8_t max = DRIVER_LED_TOTAL;
|
||||
#endif
|
||||
|
||||
#define RGB_MATRIX_INDICATOR_SET_COLOR(i, r, g, b) \
|
||||
if (i >= led_min && i <= led_max) { \
|
||||
rgb_matrix_set_color(i, r, g, b); \
|
||||
}
|
||||
|
||||
#define RGB_MATRIX_TEST_LED_FLAGS() \
|
||||
if (!HAS_ANY_FLAGS(g_led_config.flags[i], params->flags)) continue
|
||||
|
||||
|
@ -103,6 +108,10 @@ void rgb_matrix_indicators(void);
|
|||
void rgb_matrix_indicators_kb(void);
|
||||
void rgb_matrix_indicators_user(void);
|
||||
|
||||
void rgb_matrix_indicators_advanced(effect_params_t *params);
|
||||
void rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max);
|
||||
void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max);
|
||||
|
||||
void rgb_matrix_init(void);
|
||||
|
||||
void rgb_matrix_set_suspend_state(bool state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue