From a0a6820c1b46d04bc146e0723fd47265e6afe67f Mon Sep 17 00:00:00 2001
From: Joel Challis
Date: Wed, 22 Nov 2023 21:33:59 +0000
Subject: Migrate some dip switch config to info.json (#22437)
---
keyboards/helix/rev3_4rows/config.h | 3 ---
keyboards/helix/rev3_4rows/info.json | 5 ++++-
keyboards/helix/rev3_5rows/config.h | 3 ---
keyboards/helix/rev3_5rows/info.json | 3 +++
4 files changed, 7 insertions(+), 7 deletions(-)
(limited to 'keyboards/helix')
diff --git a/keyboards/helix/rev3_4rows/config.h b/keyboards/helix/rev3_4rows/config.h
index 1e60ed1f0f..000f99834a 100644
--- a/keyboards/helix/rev3_4rows/config.h
+++ b/keyboards/helix/rev3_4rows/config.h
@@ -41,9 +41,6 @@ along with this program. If not, see .
#define SPLIT_HAND_MATRIX_GRID D7,B2
#define SPLIT_HAND_MATRIX_GRID_LOW_IS_RIGHT
-/* Dip switch on matrix grid */
-#define DIP_SWITCH_MATRIX_GRID { {0,6}, {1,6}, {5,6}, {6,6} }
-
#ifdef RGB_MATRIX_ENABLE
#define RGB_MATRIX_LED_COUNT 50
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
diff --git a/keyboards/helix/rev3_4rows/info.json b/keyboards/helix/rev3_4rows/info.json
index ffe1c987e2..79d4847c7b 100644
--- a/keyboards/helix/rev3_4rows/info.json
+++ b/keyboards/helix/rev3_4rows/info.json
@@ -12,7 +12,10 @@
"driver": "ws2812",
"sat_steps": 8,
"val_steps": 8,
- "speed_steps": 10,
+ "speed_steps": 10
+ },
+ "dip_switch": {
+ "matrix_grid": [ [0,6], [1,6], [5,6], [6,6] ]
},
"encoder": {
"rotary": [
diff --git a/keyboards/helix/rev3_5rows/config.h b/keyboards/helix/rev3_5rows/config.h
index f48115663c..44bbc5f194 100644
--- a/keyboards/helix/rev3_5rows/config.h
+++ b/keyboards/helix/rev3_5rows/config.h
@@ -41,9 +41,6 @@ along with this program. If not, see .
#define SPLIT_HAND_MATRIX_GRID D7,B2
#define SPLIT_HAND_MATRIX_GRID_LOW_IS_RIGHT
-/* Dip switch on matrix grid */
-#define DIP_SWITCH_MATRIX_GRID { {0,6}, {1,6}, {5,6}, {6,6} }
-
#ifdef RGB_MATRIX_ENABLE
#define RGB_MATRIX_LED_COUNT 64
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
diff --git a/keyboards/helix/rev3_5rows/info.json b/keyboards/helix/rev3_5rows/info.json
index f7546b1322..43cb20dd5e 100644
--- a/keyboards/helix/rev3_5rows/info.json
+++ b/keyboards/helix/rev3_5rows/info.json
@@ -14,6 +14,9 @@
"val_steps": 8,
"speed_steps": 10
},
+ "dip_switch": {
+ "matrix_grid": [ [0,6], [1,6], [5,6], [6,6] ]
+ },
"encoder": {
"rotary": [
{"pin_a": "B6", "pin_b": "B5"}
--
cgit v1.2.3