summaryrefslogtreecommitdiffstats
path: root/keyboards/crkbd
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-07-09 18:32:56 -0700
committerGitHub <noreply@github.com>2021-07-10 02:32:56 +0100
commit09474cbf04d1330a59c85efc9a8a0565044c52e0 (patch)
treeb11a2f6b8d96ab9e60b87a22ea483cd07c0c8788 /keyboards/crkbd
parentbaa65d21771242c5c05aa6dc8d0f75fac4ad7675 (diff)
Fix VIA compilation issues for RGB Matrix (#13503)
Diffstat (limited to 'keyboards/crkbd')
-rw-r--r--keyboards/crkbd/keymaps/via/config.h29
1 files changed, 11 insertions, 18 deletions
diff --git a/keyboards/crkbd/keymaps/via/config.h b/keyboards/crkbd/keymaps/via/config.h
index aa2d45e56d..00af10c7ef 100644
--- a/keyboards/crkbd/keymaps/via/config.h
+++ b/keyboards/crkbd/keymaps/via/config.h
@@ -16,31 +16,24 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
-
#pragma once
-//#define USE_MATRIX_I2C
-#ifdef KEYBOARD_crkbd_rev1_legacy
-# undef USE_I2C
-# define USE_SERIAL
-#endif
-
/* Select hand configuration */
#define MASTER_LEFT
// #define MASTER_RIGHT
// #define EE_HANDS
-#define USE_SERIAL_PD2
-
-
-#undef RGBLED_NUM
-#define RGBLIGHT_ANIMATIONS
-#define RGBLED_NUM 27
-#define RGBLIGHT_LIMIT_VAL 120
-#define RGBLIGHT_HUE_STEP 10
-#define RGBLIGHT_SAT_STEP 17
-#define RGBLIGHT_VAL_STEP 17
+#ifdef RGBLIGHT_ENABLE
+# undef RGBLED_NUM
+# define RGBLIGHT_ANIMATIONS
+# define RGBLED_NUM 54
+# define RGBLED_SPLIT \
+ { 27, 27 }
+# define RGBLIGHT_LIMIT_VAL 120
+# define RGBLIGHT_HUE_STEP 10
+# define RGBLIGHT_SAT_STEP 17
+# define RGBLIGHT_VAL_STEP 17
+#endif
#define OLED_FONT_H "keyboards/crkbd/lib/glcdfont.c"