summaryrefslogtreecommitdiff
path: root/keyboards/jian
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-11-22 21:33:59 +0000
committerGitHub <noreply@github.com>2023-11-23 08:33:59 +1100
commita0a6820c1b46d04bc146e0723fd47265e6afe67f (patch)
tree85f835c57123479db51f7015cc539d22b24b3d54 /keyboards/jian
parent3a5e4253fcfe840170df5ae1ce623ab72c942d70 (diff)
Migrate some dip switch config to info.json (#22437)
Diffstat (limited to 'keyboards/jian')
-rw-r--r--keyboards/jian/rev1/config.h5
-rw-r--r--keyboards/jian/rev1/info.json6
2 files changed, 6 insertions, 5 deletions
diff --git a/keyboards/jian/rev1/config.h b/keyboards/jian/rev1/config.h
index 980f27c7cc..fcdf59f044 100644
--- a/keyboards/jian/rev1/config.h
+++ b/keyboards/jian/rev1/config.h
@@ -78,8 +78,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// iOS device need lessthan 100
#define USB_MAX_POWER_CONSUMPTION 100
#endif
-
-#define DIP_SWITCH_MATRIX_GRID { \
- {1, 0}, {2, 0}, {3, 0}, {3, 1}, {3, 2}, {3, 3}, \
- {7, 3}, {7, 2}, {7, 1}, {7, 0}, {6, 0}, {5, 0} \
-}
diff --git a/keyboards/jian/rev1/info.json b/keyboards/jian/rev1/info.json
index 879b85a9c1..68a6efe47b 100644
--- a/keyboards/jian/rev1/info.json
+++ b/keyboards/jian/rev1/info.json
@@ -8,6 +8,12 @@
"rows": ["D3", "D2", "E6", "B4"]
},
"diode_direction": "COL2ROW",
+ "dip_switch": {
+ "matrix_grid": [
+ [1, 0], [2, 0], [3, 0], [3, 1], [3, 2], [3, 3],
+ [7, 3], [7, 2], [7, 1], [7, 0], [6, 0], [5, 0]
+ ]
+ },
"backlight": {
"pin": "B6",
"levels": 5