summaryrefslogtreecommitdiff
path: root/keyboards/preonic
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/preonic
parent3a5e4253fcfe840170df5ae1ce623ab72c942d70 (diff)
Migrate some dip switch config to info.json (#22437)
Diffstat (limited to 'keyboards/preonic')
-rw-r--r--keyboards/preonic/rev3/config.h2
-rw-r--r--keyboards/preonic/rev3/info.json3
-rw-r--r--keyboards/preonic/rev3_drop/config.h2
-rw-r--r--keyboards/preonic/rev3_drop/info.json3
4 files changed, 6 insertions, 4 deletions
diff --git a/keyboards/preonic/rev3/config.h b/keyboards/preonic/rev3/config.h
index 3d64a4a34a..0ca96c9164 100644
--- a/keyboards/preonic/rev3/config.h
+++ b/keyboards/preonic/rev3/config.h
@@ -17,8 +17,6 @@
#pragma once
-#define DIP_SWITCH_PINS { B14, A15, A0, B9 }
-
#define MUSIC_MAP
#undef AUDIO_VOICES
#undef AUDIO_PIN
diff --git a/keyboards/preonic/rev3/info.json b/keyboards/preonic/rev3/info.json
index 75688a33b2..6112699cfa 100644
--- a/keyboards/preonic/rev3/info.json
+++ b/keyboards/preonic/rev3/info.json
@@ -33,6 +33,9 @@
"rows": ["A10", "A9", "A8", "B15", "C13", "C14", "C15", "A2", "A3", "A6"]
},
"diode_direction": "COL2ROW",
+ "dip_switch": {
+ "pins": ["B14", "A15", "A0", "B9"]
+ },
"encoder": {
"rotary": [
{"pin_a": "B12", "pin_b": "B13"}
diff --git a/keyboards/preonic/rev3_drop/config.h b/keyboards/preonic/rev3_drop/config.h
index 3d64a4a34a..0ca96c9164 100644
--- a/keyboards/preonic/rev3_drop/config.h
+++ b/keyboards/preonic/rev3_drop/config.h
@@ -17,8 +17,6 @@
#pragma once
-#define DIP_SWITCH_PINS { B14, A15, A0, B9 }
-
#define MUSIC_MAP
#undef AUDIO_VOICES
#undef AUDIO_PIN
diff --git a/keyboards/preonic/rev3_drop/info.json b/keyboards/preonic/rev3_drop/info.json
index fed4acb01f..79487deaab 100644
--- a/keyboards/preonic/rev3_drop/info.json
+++ b/keyboards/preonic/rev3_drop/info.json
@@ -33,6 +33,9 @@
"rows": ["A10", "A9", "A8", "B15", "C13", "C14", "C15", "A2", "A3", "A6"]
},
"diode_direction": "COL2ROW",
+ "dip_switch": {
+ "pins": ["B14", "A15", "A0", "B9"]
+ },
"encoder": {
"rotary": [
{"pin_a": "B12", "pin_b": "B13"}