From 48d77077acb158896651b95147b3a56b703a8b7f Mon Sep 17 00:00:00 2001 From: drashna Date: Wed, 23 Dec 2020 06:01:08 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20master=20@?= =?UTF-8?q?=20498d89f4b345e3f5bccbbb8ac82df4eb7c582b1b=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- feature_rgb_matrix.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/feature_rgb_matrix.md b/feature_rgb_matrix.md index f8b0653551..a9e711c9f2 100644 --- a/feature_rgb_matrix.md +++ b/feature_rgb_matrix.md @@ -306,6 +306,12 @@ To declare new effects, create a new `rgb_matrix_user/kb.inc` that looks somethi `rgb_matrix_user.inc` should go in the root of the keymap directory. `rgb_matrix_kb.inc` should go in the root of the keyboard directory. +To 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: + +```c +rgb_matrix_mode(RGB_MATRIX_CUSTOM_my_cool_effect); +``` + ```c // !!! DO NOT ADD #pragma once !!! //