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:
Pascal Getreuer 2025-05-11 16:30:19 -07:00 committed by GitHub
parent 7f42a5bc03
commit f4171412a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 339 additions and 38 deletions

View file

@ -47,6 +47,9 @@ __attribute__((weak)) rgb_t rgb_matrix_hsv_to_rgb(hsv_t hsv) {
#define RGB_MATRIX_CUSTOM_EFFECT_IMPLS
#include "rgb_matrix_effects.inc"
#ifdef COMMUNITY_MODULES_ENABLE
# include "rgb_matrix_community_modules.inc"
#endif
#ifdef RGB_MATRIX_CUSTOM_KB
# include "rgb_matrix_kb.inc"
#endif
@ -310,6 +313,15 @@ static void rgb_task_render(uint8_t effect) {
#include "rgb_matrix_effects.inc"
#undef RGB_MATRIX_EFFECT
#ifdef COMMUNITY_MODULES_ENABLE
# define RGB_MATRIX_EFFECT(name, ...) \
case RGB_MATRIX_COMMUNITY_MODULE_##name: \
rendering = name(&rgb_effect_params); \
break;
# include "rgb_matrix_community_modules.inc"
# undef RGB_MATRIX_EFFECT
#endif
#if defined(RGB_MATRIX_CUSTOM_KB) || defined(RGB_MATRIX_CUSTOM_USER)
# define RGB_MATRIX_EFFECT(name, ...) \
case RGB_MATRIX_CUSTOM_##name: \