summaryrefslogtreecommitdiff
path: root/quantum/rgb_matrix.c
diff options
context:
space:
mode:
authorRyan Caltabiano <rcalt2vt@gmail.com>2019-05-15 22:23:42 -0500
committerDrashna Jaelre <drashna@live.com>2019-05-19 09:38:38 -0700
commit5c7b37bbbde969eb056d531c897c1d5f80beeb58 (patch)
tree1f8f0103c4e54004d6ba147add879402de70cda0 /quantum/rgb_matrix.c
parent270b39b2eb44247cff75ddd216a8e67f8f264991 (diff)
Added custom center point to rgb matrix
Diffstat (limited to 'quantum/rgb_matrix.c')
-rw-r--r--quantum/rgb_matrix.c6
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)