diff options
author | Ryan Caltabiano <[email protected]> | 2019-05-15 22:23:42 -0500 |
---|---|---|
committer | Drashna Jaelre <[email protected]> | 2019-05-19 09:38:38 -0700 |
commit | 5c7b37bbbde969eb056d531c897c1d5f80beeb58 (patch) | |
tree | 1f8f0103c4e54004d6ba147add879402de70cda0 /quantum/rgb_matrix.c | |
parent | 270b39b2eb44247cff75ddd216a8e67f8f264991 (diff) | |
download | qmk_firmware-5c7b37bbbde969eb056d531c897c1d5f80beeb58.tar.gz qmk_firmware-5c7b37bbbde969eb056d531c897c1d5f80beeb58.zip |
Added custom center point to rgb matrix
Diffstat (limited to 'quantum/rgb_matrix.c')
-rw-r--r-- | quantum/rgb_matrix.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/quantum/rgb_matrix.c b/quantum/rgb_matrix.c index 9b9932df52..a6a9549af4 100644 --- a/quantum/rgb_matrix.c +++ b/quantum/rgb_matrix.c @@ -26,6 +26,12 @@ #include "lib/lib8tion/lib8tion.h" +#ifndef RGB_MATRIX_CENTER + const point_t k_rgb_matrix_center = { 112, 32 }; +#else + const point_t k_rgb_matrix_center = RGB_MATRIX_CENTER; +#endif + // ------------------------------------------ // -----Begin rgb effect includes macros----- #define RGB_MATRIX_EFFECT(name) |