diff options
author | Joel Challis <[email protected]> | 2023-09-29 18:31:21 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-09-29 18:31:21 +0100 |
commit | 6910ed2de5c8935712b646e1c2143c4e7e5f9bea (patch) | |
tree | d6a653458c169162ece1a18aa7e38469b856a762 /quantum/rgb_matrix | |
parent | 2eed1f5bad453b11e9f2190239f9c43f4dde979d (diff) | |
download | qmk_firmware-6910ed2de5c8935712b646e1c2143c4e7e5f9bea.tar.gz qmk_firmware-6910ed2de5c8935712b646e1c2143c4e7e5f9bea.zip |
Add _DEFAULT_ON lighting configuration options (#21865)
Diffstat (limited to 'quantum/rgb_matrix')
-rw-r--r-- | quantum/rgb_matrix/rgb_matrix.c | 2 | ||||
-rw-r--r-- | quantum/rgb_matrix/rgb_matrix.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/quantum/rgb_matrix/rgb_matrix.c b/quantum/rgb_matrix/rgb_matrix.c index ff3e5b2b35..8e69616a0e 100644 --- a/quantum/rgb_matrix/rgb_matrix.c +++ b/quantum/rgb_matrix/rgb_matrix.c @@ -99,7 +99,7 @@ void eeconfig_update_rgb_matrix(void) { void eeconfig_update_rgb_matrix_default(void) { dprintf("eeconfig_update_rgb_matrix_default\n"); - rgb_matrix_config.enable = 1; + rgb_matrix_config.enable = RGB_MATRIX_DEFAULT_ON; rgb_matrix_config.mode = RGB_MATRIX_DEFAULT_MODE; rgb_matrix_config.hsv = (HSV){RGB_MATRIX_DEFAULT_HUE, RGB_MATRIX_DEFAULT_SAT, RGB_MATRIX_DEFAULT_VAL}; rgb_matrix_config.speed = RGB_MATRIX_DEFAULT_SPD; diff --git a/quantum/rgb_matrix/rgb_matrix.h b/quantum/rgb_matrix/rgb_matrix.h index 025a1f4700..3e1db3cdce 100644 --- a/quantum/rgb_matrix/rgb_matrix.h +++ b/quantum/rgb_matrix/rgb_matrix.h @@ -70,6 +70,10 @@ # define RGB_MATRIX_SPD_STEP 16 #endif +#ifndef RGB_MATRIX_DEFAULT_ON +# define RGB_MATRIX_DEFAULT_ON true +#endif + #ifndef RGB_MATRIX_DEFAULT_MODE # ifdef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT # define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT |