aboutsummaryrefslogtreecommitdiff
path: root/docs/feature_rgb_matrix.md
diff options
context:
space:
mode:
authorDaniele De Vincenti <34176349+Napan0s@users.noreply.github.com>2020-12-23 06:59:26 +0100
committerGitHub <noreply@github.com>2020-12-22 21:59:26 -0800
commit498d89f4b345e3f5bccbbb8ac82df4eb7c582b1b (patch)
treea4df5c2dd55f20e45150acc9671a43cc2b4fcd21 /docs/feature_rgb_matrix.md
parentd5f3f7c126553b5485766ed666810ec3f3339894 (diff)
downloadqmk_firmware-498d89f4b345e3f5bccbbb8ac82df4eb7c582b1b.tar.gz
qmk_firmware-498d89f4b345e3f5bccbbb8ac82df4eb7c582b1b.zip
[Docs] Add clarification on use of custom RGB Matrix effect (#11176)
* Update feature_rgb_matrix.md Added more clarification on how to use a newly created rgb effect as it was unclear that the prefix 'RGB_MATRIX_CUSTOM_' had to be added. Also included an example consistent with the documentation example. * Update docs/feature_rgb_matrix.md Co-authored-by: Ryan <fauxpark@gmail.com> * Update docs/feature_rgb_matrix.md Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'docs/feature_rgb_matrix.md')
-rw-r--r--docs/feature_rgb_matrix.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/feature_rgb_matrix.md b/docs/feature_rgb_matrix.md
index f8b065355..a9e711c9f 100644
--- a/docs/feature_rgb_matrix.md
+++ b/docs/feature_rgb_matrix.md
@@ -306,6 +306,12 @@ To declare new effects, create a new `rgb_matrix_user/kb.inc` that looks somethi
306`rgb_matrix_user.inc` should go in the root of the keymap directory. 306`rgb_matrix_user.inc` should go in the root of the keymap directory.
307`rgb_matrix_kb.inc` should go in the root of the keyboard directory. 307`rgb_matrix_kb.inc` should go in the root of the keyboard directory.
308 308
309To use custom effects in your code, simply prepend `RGB_MATRIX_CUSTOM_` to the effect name specified in `RGB_MATRIX_EFFECT()`. For example, an effect declared as `RGB_MATRIX_EFFECT(my_cool_effect)` would be referenced with:
310
311```c
312rgb_matrix_mode(RGB_MATRIX_CUSTOM_my_cool_effect);
313```
314
309```c 315```c
310// !!! DO NOT ADD #pragma once !!! // 316// !!! DO NOT ADD #pragma once !!! //
311 317