summaryrefslogtreecommitdiff
path: root/keyboards/nopunin10did
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-02-26 09:45:12 +1100
committerGitHub <noreply@github.com>2023-02-26 09:45:12 +1100
commit7e0299117b389b1c7fcdfa2f20891ba2287ea771 (patch)
tree00bb5bb7b3b73a9de365d1839ba7d41240d439f1 /keyboards/nopunin10did
parent314f6c1ddba09851b33e4f3b4bd43bdbc55f9628 (diff)
Move encoder config to data driven (#19923)
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'keyboards/nopunin10did')
-rw-r--r--keyboards/nopunin10did/kastenwagen1840/config.h5
-rw-r--r--keyboards/nopunin10did/kastenwagen1840/info.json6
-rw-r--r--keyboards/nopunin10did/kastenwagen48/config.h5
-rw-r--r--keyboards/nopunin10did/kastenwagen48/info.json6
4 files changed, 12 insertions, 10 deletions
diff --git a/keyboards/nopunin10did/kastenwagen1840/config.h b/keyboards/nopunin10did/kastenwagen1840/config.h
index 4f154d3c69..80a7793edb 100644
--- a/keyboards/nopunin10did/kastenwagen1840/config.h
+++ b/keyboards/nopunin10did/kastenwagen1840/config.h
@@ -26,10 +26,5 @@
#define LED_INDICATOR_MID D4
#define LED_INDICATOR_BOT C6
-/* Rotary encoder rotation pins */
-#define ENCODERS_PAD_A { D0, D3 }
-#define ENCODERS_PAD_B { D1, D2 }
-
-
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/nopunin10did/kastenwagen1840/info.json b/keyboards/nopunin10did/kastenwagen1840/info.json
index 07a1ce0a10..bf6b9234b0 100644
--- a/keyboards/nopunin10did/kastenwagen1840/info.json
+++ b/keyboards/nopunin10did/kastenwagen1840/info.json
@@ -8,6 +8,12 @@
"pid": "0x4B57",
"device_version": "0.0.1"
},
+ "encoder": {
+ "rotary": [
+ {"pin_a": "D0", "pin_b": "D1"},
+ {"pin_a": "D3", "pin_b": "D2"}
+ ]
+ },
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {
diff --git a/keyboards/nopunin10did/kastenwagen48/config.h b/keyboards/nopunin10did/kastenwagen48/config.h
index 92a82ab267..555a0c488f 100644
--- a/keyboards/nopunin10did/kastenwagen48/config.h
+++ b/keyboards/nopunin10did/kastenwagen48/config.h
@@ -26,10 +26,5 @@
#define LED_INDICATOR_MID D4
#define LED_INDICATOR_BOT C6
-/* Rotary encoder rotation pins */
-#define ENCODERS_PAD_A { D0, D3 }
-#define ENCODERS_PAD_B { D1, D2 }
-
-
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/nopunin10did/kastenwagen48/info.json b/keyboards/nopunin10did/kastenwagen48/info.json
index a1333c1c5e..00fe51e381 100644
--- a/keyboards/nopunin10did/kastenwagen48/info.json
+++ b/keyboards/nopunin10did/kastenwagen48/info.json
@@ -8,6 +8,12 @@
"pid": "0x4B30",
"device_version": "0.0.1"
},
+ "encoder": {
+ "rotary": [
+ {"pin_a": "D0", "pin_b": "D1"},
+ {"pin_a": "D3", "pin_b": "D2"}
+ ]
+ },
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {