summaryrefslogtreecommitdiff
path: root/keyboards/yanghu
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/yanghu')
-rw-r--r--keyboards/yanghu/unicorne/config.h5
-rw-r--r--keyboards/yanghu/unicorne/info.json6
2 files changed, 6 insertions, 5 deletions
diff --git a/keyboards/yanghu/unicorne/config.h b/keyboards/yanghu/unicorne/config.h
index 3fc834909e..e53141a772 100644
--- a/keyboards/yanghu/unicorne/config.h
+++ b/keyboards/yanghu/unicorne/config.h
@@ -25,11 +25,6 @@
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
-#define ENCODERS_PAD_A \
- { B10, B2 }
-#define ENCODERS_PAD_B \
- { B12, B0 }
-
/* I2C - required for custom i2c_init */
#define I2C1_SCL_PIN B6
#define I2C1_SDA_PIN B7
diff --git a/keyboards/yanghu/unicorne/info.json b/keyboards/yanghu/unicorne/info.json
index 67bb7f657d..85b39abe9b 100644
--- a/keyboards/yanghu/unicorne/info.json
+++ b/keyboards/yanghu/unicorne/info.json
@@ -8,6 +8,12 @@
"pid": "0x0204",
"device_version": "0.0.1"
},
+ "encoder": {
+ "rotary": [
+ {"pin_a": "B10", "pin_b": "B12"},
+ {"pin_a": "B2", "pin_b": "B0"}
+ ]
+ },
"layout_aliases": {
"LAYOUT": "LAYOUT_split_3x6_4"
},