Enable community modules to define LED matrix and RGB matrix effects. (#25187)
Co-authored-by: Joel Challis <git@zvecr.com>
This commit is contained in:
parent
7f42a5bc03
commit
f4171412a6
19 changed files with 339 additions and 38 deletions
|
@ -45,6 +45,9 @@ const led_point_t k_led_matrix_center = LED_MATRIX_CENTER;
|
|||
#define LED_MATRIX_CUSTOM_EFFECT_IMPLS
|
||||
|
||||
#include "led_matrix_effects.inc"
|
||||
#ifdef COMMUNITY_MODULES_ENABLE
|
||||
# include "led_matrix_community_modules.inc"
|
||||
#endif
|
||||
#ifdef LED_MATRIX_CUSTOM_KB
|
||||
# include "led_matrix_kb.inc"
|
||||
#endif
|
||||
|
@ -282,6 +285,15 @@ static void led_task_render(uint8_t effect) {
|
|||
#include "led_matrix_effects.inc"
|
||||
#undef LED_MATRIX_EFFECT
|
||||
|
||||
#ifdef COMMUNITY_MODULES_ENABLE
|
||||
# define LED_MATRIX_EFFECT(name, ...) \
|
||||
case LED_MATRIX_COMMUNITY_MODULE_##name: \
|
||||
rendering = name(&led_effect_params); \
|
||||
break;
|
||||
# include "led_matrix_community_modules.inc"
|
||||
# undef LED_MATRIX_EFFECT
|
||||
#endif
|
||||
|
||||
#if defined(LED_MATRIX_CUSTOM_KB) || defined(LED_MATRIX_CUSTOM_USER)
|
||||
# define LED_MATRIX_EFFECT(name, ...) \
|
||||
case LED_MATRIX_CUSTOM_##name: \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue