Browse Source

Migrate SPLIT_HAND_PIN to json (#23924)

Joel Challis 2 years ago
parent
commit
f0807ea64f
100 changed files with 151 additions and 506 deletions
  1. 0 19
      keyboards/afternoonlabs/breeze/rev0/config.h
  2. 3 0
      keyboards/afternoonlabs/breeze/rev0/keyboard.json
  3. 0 19
      keyboards/afternoonlabs/breeze/rev1/config.h
  4. 3 0
      keyboards/afternoonlabs/breeze/rev1/keyboard.json
  5. 0 19
      keyboards/afternoonlabs/oceanbreeze/rev1/config.h
  6. 3 0
      keyboards/afternoonlabs/oceanbreeze/rev1/keyboard.json
  7. 0 19
      keyboards/afternoonlabs/southern_breeze/rev1/config.h
  8. 3 0
      keyboards/afternoonlabs/southern_breeze/rev1/keyboard.json
  9. 0 19
      keyboards/afternoonlabs/summer_breeze/rev1/config.h
  10. 3 0
      keyboards/afternoonlabs/summer_breeze/rev1/keyboard.json
  11. 0 38
      keyboards/ai03/orbit/config.h
  12. 3 0
      keyboards/ai03/orbit/keyboard.json
  13. 0 1
      keyboards/ai03/orbit_x/config.h
  14. 3 0
      keyboards/ai03/orbit_x/keyboard.json
  15. 0 1
      keyboards/aya/config.h
  16. 4 1
      keyboards/aya/keyboard.json
  17. 0 38
      keyboards/doppelganger/config.h
  18. 3 0
      keyboards/doppelganger/keyboard.json
  19. 0 1
      keyboards/era/sirind/tomak/config.h
  20. 3 0
      keyboards/era/sirind/tomak/keyboard.json
  21. 0 21
      keyboards/handwired/chiron/config.h
  22. 3 0
      keyboards/handwired/chiron/keyboard.json
  23. 0 1
      keyboards/handwired/dactyl_manuform/6x6/blackpill_f411/config.h
  24. 3 0
      keyboards/handwired/dactyl_manuform/6x6/blackpill_f411/keyboard.json
  25. 0 36
      keyboards/handwired/jtallbean/split_65/config.h
  26. 3 0
      keyboards/handwired/jtallbean/split_65/keyboard.json
  27. 0 3
      keyboards/handwired/riblee_split/config.h
  28. 3 0
      keyboards/handwired/riblee_split/keyboard.json
  29. 0 36
      keyboards/handwired/split89/config.h
  30. 3 0
      keyboards/handwired/split89/keyboard.json
  31. 0 2
      keyboards/handwired/splittest/bluepill/config.h
  32. 5 0
      keyboards/handwired/splittest/bluepill/keyboard.json
  33. 0 3
      keyboards/handwired/splittest/promicro/config.h
  34. 3 0
      keyboards/handwired/splittest/promicro/keyboard.json
  35. 0 3
      keyboards/handwired/splittest/teensy_2/config.h
  36. 3 0
      keyboards/handwired/splittest/teensy_2/keyboard.json
  37. 0 1
      keyboards/handwired/tractyl_manuform/4x6_right/config.h
  38. 3 0
      keyboards/handwired/tractyl_manuform/4x6_right/keyboard.json
  39. 0 1
      keyboards/handwired/tractyl_manuform/5x6_right/f303/config.h
  40. 3 0
      keyboards/handwired/tractyl_manuform/5x6_right/f303/keyboard.json
  41. 0 1
      keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h
  42. 4 1
      keyboards/handwired/tractyl_manuform/5x6_right/f411/keyboard.json
  43. 0 1
      keyboards/jian/rev2/config.h
  44. 3 0
      keyboards/jian/rev2/keyboard.json
  45. 0 2
      keyboards/kakunpc/suihankey/split/alpha/config.h
  46. 3 0
      keyboards/kakunpc/suihankey/split/info.json
  47. 0 2
      keyboards/kakunpc/suihankey/split/rev1/config.h
  48. 0 2
      keyboards/keebio/cepstrum/rev1/config.h
  49. 3 0
      keyboards/keebio/cepstrum/rev1/keyboard.json
  50. 0 2
      keyboards/keebio/foldkb/rev1/config.h
  51. 3 0
      keyboards/keebio/foldkb/rev1/keyboard.json
  52. 0 38
      keyboards/keebio/fourier/config.h
  53. 3 0
      keyboards/keebio/fourier/keyboard.json
  54. 0 20
      keyboards/keebio/iris/rev3/config.h
  55. 3 0
      keyboards/keebio/iris/rev3/keyboard.json
  56. 0 20
      keyboards/keebio/iris/rev4/config.h
  57. 3 0
      keyboards/keebio/iris/rev4/keyboard.json
  58. 0 2
      keyboards/keebio/iris/rev5/config.h
  59. 3 0
      keyboards/keebio/iris/rev5/keyboard.json
  60. 0 2
      keyboards/keebio/iris/rev6/config.h
  61. 3 0
      keyboards/keebio/iris/rev6/keyboard.json
  62. 0 2
      keyboards/keebio/iris/rev7/config.h
  63. 3 0
      keyboards/keebio/iris/rev7/keyboard.json
  64. 0 2
      keyboards/keebio/iris/rev8/config.h
  65. 3 0
      keyboards/keebio/iris/rev8/keyboard.json
  66. 0 1
      keyboards/keebio/iris_ce/rev1/config.h
  67. 3 0
      keyboards/keebio/iris_ce/rev1/keyboard.json
  68. 0 2
      keyboards/keebio/kbo5000/rev1/config.h
  69. 3 0
      keyboards/keebio/kbo5000/rev1/keyboard.json
  70. 0 22
      keyboards/keebio/levinson/rev3/config.h
  71. 3 0
      keyboards/keebio/levinson/rev3/keyboard.json
  72. 0 36
      keyboards/keebio/nyquist/rev3/config.h
  73. 3 0
      keyboards/keebio/nyquist/rev3/keyboard.json
  74. 0 2
      keyboards/keebio/nyquist/rev4/config.h
  75. 3 0
      keyboards/keebio/nyquist/rev4/keyboard.json
  76. 0 21
      keyboards/keebio/quefrency/rev1/config.h
  77. 3 0
      keyboards/keebio/quefrency/rev1/keyboard.json
  78. 0 2
      keyboards/keebio/quefrency/rev2/config.h
  79. 3 0
      keyboards/keebio/quefrency/rev2/keyboard.json
  80. 0 2
      keyboards/keebio/quefrency/rev3/config.h
  81. 3 0
      keyboards/keebio/quefrency/rev3/keyboard.json
  82. 0 2
      keyboards/keebio/quefrency/rev4/config.h
  83. 3 0
      keyboards/keebio/quefrency/rev4/keyboard.json
  84. 0 2
      keyboards/keebio/quefrency/rev5/config.h
  85. 3 0
      keyboards/keebio/quefrency/rev5/keyboard.json
  86. 0 3
      keyboards/keebio/sinc/rev1/config.h
  87. 3 0
      keyboards/keebio/sinc/rev1/keyboard.json
  88. 0 3
      keyboards/keebio/sinc/rev2/config.h
  89. 3 0
      keyboards/keebio/sinc/rev2/keyboard.json
  90. 0 2
      keyboards/keebio/sinc/rev3/config.h
  91. 3 0
      keyboards/keebio/sinc/rev3/keyboard.json
  92. 0 2
      keyboards/keebio/sinc/rev4/config.h
  93. 3 0
      keyboards/keebio/sinc/rev4/keyboard.json
  94. 0 20
      keyboards/keebio/viterbi/rev2/config.h
  95. 3 0
      keyboards/keebio/viterbi/rev2/keyboard.json
  96. 0 3
      keyboards/maple_computing/lets_split_eh/config.h
  97. 3 0
      keyboards/maple_computing/lets_split_eh/keyboard.json
  98. 0 1
      keyboards/mlego/m60_split/rev1/config.h
  99. 3 0
      keyboards/mlego/m60_split/rev1/keyboard.json
  100. 0 1
      keyboards/mlego/m60_split/rev2/config.h

+ 0 - 19
keyboards/afternoonlabs/breeze/rev0/config.h

@@ -1,19 +0,0 @@
-/* Copyright 2021 eithanshavit
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-#pragma once
-
-#define SPLIT_HAND_PIN B3

+ 3 - 0
keyboards/afternoonlabs/breeze/rev0/keyboard.json

@@ -21,6 +21,9 @@
     "diode_direction": "COL2ROW",
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "B3"
+        },
         "soft_serial_pin": "D2"
     },
     "bootmagic": {

+ 0 - 19
keyboards/afternoonlabs/breeze/rev1/config.h

@@ -1,19 +0,0 @@
-/* Copyright 2021 Afternoon Labs
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-#pragma once
-
-#define SPLIT_HAND_PIN B3

+ 3 - 0
keyboards/afternoonlabs/breeze/rev1/keyboard.json

@@ -21,6 +21,9 @@
     "diode_direction": "COL2ROW",
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "B3"
+        },
         "soft_serial_pin": "D2"
     },
     "bootmagic": {

+ 0 - 19
keyboards/afternoonlabs/oceanbreeze/rev1/config.h

@@ -1,19 +0,0 @@
-/* Copyright 2021 Afternoon Labs
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-#pragma once
-
-#define SPLIT_HAND_PIN B3

+ 3 - 0
keyboards/afternoonlabs/oceanbreeze/rev1/keyboard.json

@@ -21,6 +21,9 @@
     "diode_direction": "COL2ROW",
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "B3"
+        },
         "soft_serial_pin": "D2"
     },
     "bootmagic": {

+ 0 - 19
keyboards/afternoonlabs/southern_breeze/rev1/config.h

@@ -1,19 +0,0 @@
-/* Copyright 2021 Afternoon Labs
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-#pragma once
-
-#define SPLIT_HAND_PIN B3

+ 3 - 0
keyboards/afternoonlabs/southern_breeze/rev1/keyboard.json

@@ -21,6 +21,9 @@
     "diode_direction": "COL2ROW",
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "B3"
+        },
         "soft_serial_pin": "D2"
     },
     "bootmagic": {

+ 0 - 19
keyboards/afternoonlabs/summer_breeze/rev1/config.h

@@ -1,19 +0,0 @@
-/* Copyright 2021 Afternoon Labs
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-#pragma once
-
-#define SPLIT_HAND_PIN B3

+ 3 - 0
keyboards/afternoonlabs/summer_breeze/rev1/keyboard.json

@@ -21,6 +21,9 @@
     "diode_direction": "COL2ROW",
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "B3"
+        },
         "soft_serial_pin": "D2"
     },
     "bootmagic": {

+ 0 - 38
keyboards/ai03/orbit/config.h

@@ -1,38 +0,0 @@
-/*
-Copyright 2018 Ryota Goto
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#pragma once
-
-#define SELECT_SOFT_SERIAL_SPEED 1
-
-#define SPLIT_HAND_PIN D5
-
-/*
- * Feature disable options
- *  These options are also useful to firmware size reduction.
- */
-
-/* disable debug print */
-//#define NO_DEBUG
-
-/* disable print */
-//#define NO_PRINT
-
-/* disable action features */
-//#define NO_ACTION_LAYER
-//#define NO_ACTION_TAPPING
-//#define NO_ACTION_ONESHOT

+ 3 - 0
keyboards/ai03/orbit/keyboard.json

@@ -31,6 +31,9 @@
     },
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "D5"
+        },
         "soft_serial_pin": "D0",
         "matrix_pins": {
             "right": {

+ 0 - 1
keyboards/ai03/orbit_x/config.h

@@ -17,7 +17,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#define SPLIT_HAND_PIN D5
 #define SPLIT_USB_DETECT
 #define SPLIT_USB_TIMEOUT 2500
 

+ 3 - 0
keyboards/ai03/orbit_x/keyboard.json

@@ -28,6 +28,9 @@
     "diode_direction": "COL2ROW",
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "D5"
+        },
         "soft_serial_pin": "D0",
         "matrix_pins": {
             "right": {

+ 0 - 1
keyboards/aya/config.h

@@ -16,5 +16,4 @@
 
 #pragma once
 
-#define SPLIT_HAND_PIN B5
 #define USE_I2C

+ 4 - 1
keyboards/aya/keyboard.json

@@ -15,7 +15,10 @@
         "command": true
     },
     "split": {
-        "enabled": true
+        "enabled": true,
+        "handedness": {
+            "pin": "B5"
+        }
     },
     "matrix_pins": {
         "cols": ["F4", "F5", "F6", "F7", "B1", "B3", "B2"],

+ 0 - 38
keyboards/doppelganger/config.h

@@ -1,38 +0,0 @@
-/*
-Copyright 2019 Yiancar-Designs
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#pragma once
-
-#define SPLIT_HAND_PIN D4
-
-// #define USE_I2C
-
-/*
- * Feature disable options
- *  These options are also useful to firmware size reduction.
- */
-
-/* disable debug print */
-//#define NO_DEBUG
-
-/* disable print */
-//#define NO_PRINT
-
-/* disable action features */
-//#define NO_ACTION_LAYER
-//#define NO_ACTION_TAPPING
-//#define NO_ACTION_ONESHOT

+ 3 - 0
keyboards/doppelganger/keyboard.json

@@ -19,6 +19,9 @@
     "diode_direction": "COL2ROW",
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "D4"
+        },
         "soft_serial_pin": "D1",
         "matrix_pins": {
             "right": {

+ 0 - 1
keyboards/era/sirind/tomak/config.h

@@ -4,7 +4,6 @@
 #pragma once
 
 /* Split configuration */
-#define SPLIT_HAND_PIN GP21
 #define USB_VBUS_PIN GP29
 #define SERIAL_USART_FULL_DUPLEX
 #define SERIAL_USART_TX_PIN GP0

+ 3 - 0
keyboards/era/sirind/tomak/keyboard.json

@@ -175,6 +175,9 @@
         "bootmagic": {
             "matrix": [6, 0]
         },
+        "handedness": {
+            "pin": "GP21"
+        },
         "enabled": true,
         "matrix_pins": {
             "right": {

+ 0 - 21
keyboards/handwired/chiron/config.h

@@ -1,21 +0,0 @@
-/*
-Copyright 2019 Mike Hix
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#pragma once
-
-// Pro Micro Pins      RX1
-#define SPLIT_HAND_PIN D2

+ 3 - 0
keyboards/handwired/chiron/keyboard.json

@@ -41,6 +41,9 @@
     },
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "D2"
+        },
         "soft_serial_pin": "D0"
     },
     "processor": "atmega32u4",

+ 0 - 1
keyboards/handwired/dactyl_manuform/6x6/blackpill_f411/config.h

@@ -19,7 +19,6 @@
 // in col2row col is input, and row is output
 // #define SPLIT_HAND_MATRIX_GRID A10, A4
 // 68kohm
-#define SPLIT_HAND_PIN              B10
 
 /* connection */
 #define SERIAL_USART_FULL_DUPLEX   // Enable full duplex operation mode.

+ 3 - 0
keyboards/handwired/dactyl_manuform/6x6/blackpill_f411/keyboard.json

@@ -11,6 +11,9 @@
         },
         "serial": {
             "driver": "usart"
+        },
+        "handedness": {
+            "pin": "B10"
         }
     },
     "development_board": "blackpill_f411",

+ 0 - 36
keyboards/handwired/jtallbean/split_65/config.h

@@ -1,36 +0,0 @@
-/*
-Copyright 2020 jtallbean
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#pragma once
-
-#define SPLIT_HAND_PIN D5
-
-/*
- * Feature disable options
- *  These options are also useful to firmware size reduction.
- */
-
-/* disable debug print */
-//#define NO_DEBUG
-
-/* disable print */
-//#define NO_PRINT
-
-/* disable action features */
-//#define NO_ACTION_LAYER
-//#define NO_ACTION_TAPPING
-//#define NO_ACTION_ONESHOT

+ 3 - 0
keyboards/handwired/jtallbean/split_65/keyboard.json

@@ -32,6 +32,9 @@
     },
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "D5"
+        },
         "soft_serial_pin": "D0",
         "matrix_pins": {
             "right": {

+ 0 - 3
keyboards/handwired/riblee_split/config.h

@@ -3,9 +3,6 @@
 
 #pragma once
 
-// If the pin is high, then the controller assumes it is the left hand, and if it’s low, it’s assumed to be the right side.
-#define SPLIT_HAND_PIN C15
-
 #define SERIAL_USART_FULL_DUPLEX
 #define SERIAL_USART_TX_PIN B6
 #define SERIAL_USART_RX_PIN B7

+ 3 - 0
keyboards/handwired/riblee_split/keyboard.json

@@ -25,6 +25,9 @@
     },
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "C15"
+        },
         "serial": {
             "driver": "usart"
         },

+ 0 - 36
keyboards/handwired/split89/config.h

@@ -1,36 +0,0 @@
-/* Copyright 2021 jurassic73
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#pragma once
-
-/* this will be tied to high (VCC with a 2k to 10k resistor) on the left keyboard half and tied to low (GND using a wire jumper only) on the right keyboard half.  This allows a user to plug in a USB cable to either side and function correctly with or without a TRS/TRRS cable with a single hex file. */
-#define SPLIT_HAND_PIN D1
-
-/*
- * Feature disable options
- *  These options are also useful to firmware size reduction.
- */
-
-/* disable debug print */
-//#define NO_DEBUG
-
-/* disable print */
-//#define NO_PRINT
-
-/* disable action features */
-//#define NO_ACTION_LAYER
-//#define NO_ACTION_TAPPING
-//#define NO_ACTION_ONESHOT

+ 3 - 0
keyboards/handwired/split89/keyboard.json

@@ -29,6 +29,9 @@
     "diode_direction": "COL2ROW",
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "D1"
+        },
         "soft_serial_pin": "D0",
         "matrix_pins": {
             "right": {

+ 0 - 2
keyboards/handwired/splittest/bluepill/config.h

@@ -3,8 +3,6 @@
 
 #pragma once
 
-#define SPLIT_HAND_PIN A7
-
 #if !(defined(USE_SDI1_ON_STANDARD_ROLE_PINS) || defined(USE_SDI1_ON_ALTERNATE_ROLE_PINS) || defined(USE_SDI2))
     #define USE_SDI1_ON_STANDARD_ROLE_PINS
 #endif

+ 5 - 0
keyboards/handwired/splittest/bluepill/keyboard.json

@@ -3,6 +3,11 @@
         "cols": ["B1"],
         "rows": ["B10"]
     },
+    "split": {
+        "handedness": {
+            "pin": "A7"
+        }
+    },
     "diode_direction": "COL2ROW",
     "development_board": "bluepill",
     "features": {

+ 0 - 3
keyboards/handwired/splittest/promicro/config.h

@@ -16,8 +16,5 @@
 
 #pragma once
 
-
 // use I2C on AVR
 #define USE_I2C
-
-#define SPLIT_HAND_PIN F6

+ 3 - 0
keyboards/handwired/splittest/promicro/keyboard.json

@@ -5,6 +5,9 @@
     },
     "diode_direction": "COL2ROW",
     "split": {
+        "handedness": {
+            "pin": "F6"
+        },
         "soft_serial_pin": "D1"
     },
     "ws2812": {

+ 0 - 3
keyboards/handwired/splittest/teensy_2/config.h

@@ -16,11 +16,8 @@
 
 #pragma once
 
-
 // use I2C on AVR
 #define USE_I2C
 
-#define SPLIT_HAND_PIN F0
-
 // teensy has vbus detection issues - use usb detection instead
 #define SPLIT_USB_DETECT

+ 3 - 0
keyboards/handwired/splittest/teensy_2/keyboard.json

@@ -5,6 +5,9 @@
     },
     "diode_direction": "COL2ROW",
     "split": {
+        "handedness": {
+            "pin": "F0"
+        },
         "soft_serial_pin": "D1"
     },
     "ws2812": {

+ 0 - 1
keyboards/handwired/tractyl_manuform/4x6_right/config.h

@@ -19,7 +19,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #pragma once
 
 #define SPLIT_TRANSPORT_MIRROR
-#define SPLIT_HAND_PIN A6
 
 // #define DEBUG_LED_PIN                  D6
 

+ 3 - 0
keyboards/handwired/tractyl_manuform/4x6_right/keyboard.json

@@ -19,6 +19,9 @@
     "diode_direction": "COL2ROW",
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "A6"
+        },
         "soft_serial_pin": "D3",
         "bootmagic": {
             "matrix": [4, 5]

+ 0 - 1
keyboards/handwired/tractyl_manuform/5x6_right/f303/config.h

@@ -19,7 +19,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #pragma once
 
 // #define USB_VBUS_PIN        B10
-#define SPLIT_HAND_PIN      C14  // high = left, low = right
 
 // WS2812 RGB LED strip input and number of LEDs
 #define WS2812_PWM_DRIVER   PWMD3  // default: PWMD2

+ 3 - 0
keyboards/handwired/tractyl_manuform/5x6_right/f303/keyboard.json

@@ -16,6 +16,9 @@
         "driver": "dac_additive"
     },
     "split": {
+        "handedness": {
+            "pin": "C14"
+        },
         "serial": {
             "driver": "usart"
         }

+ 0 - 1
keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h

@@ -19,7 +19,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #pragma once
 
 // #define USB_VBUS_PIN        B10 // doesn't seem to work for me on one of my controllers... */
-#define SPLIT_HAND_PIN      C14  // high = left, low = right
 
 // WS2812 RGB LED strip input and number of LEDs
 #define WS2812_PWM_DRIVER   PWMD2  // default: PWMD2

+ 4 - 1
keyboards/handwired/tractyl_manuform/5x6_right/f411/keyboard.json

@@ -19,9 +19,12 @@
         "driver": "pwm_hardware"
     },
     "split": {
+        "handedness": {
+            "pin": "C14"
+        },
         "serial": {
             "driver": "usart"
-        }
+        },
     },
     "ws2812": {
         "pin": "A1",

+ 0 - 1
keyboards/jian/rev2/config.h

@@ -18,7 +18,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #pragma once
 
 //#define EE_HANDS
-#define SPLIT_HAND_PIN E6
 
 #define PHYSICAL_LEDS_ENABLE
 #define IOS_DEVICE_ENABLE

+ 3 - 0
keyboards/jian/rev2/keyboard.json

@@ -39,6 +39,9 @@
     },
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "E6"
+        },
         "soft_serial_pin": "D1"
     },
     "processor": "atmega32u4",

+ 0 - 2
keyboards/kakunpc/suihankey/split/alpha/config.h

@@ -19,8 +19,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #define USE_I2C
 
-#define SPLIT_HAND_PIN D2
-
 /*
  * Feature disable options
  *  These options are also useful to firmware size reduction.

+ 3 - 0
keyboards/kakunpc/suihankey/split/info.json

@@ -10,6 +10,9 @@
     },
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "D2"
+        },
         "soft_serial_pin": "D0"
     },
     "processor": "atmega32u4",

+ 0 - 2
keyboards/kakunpc/suihankey/split/rev1/config.h

@@ -19,8 +19,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #define USE_I2C
 
-#define SPLIT_HAND_PIN D2
-
 /*
  * Feature disable options
  *  These options are also useful to firmware size reduction.

+ 0 - 2
keyboards/keebio/cepstrum/rev1/config.h

@@ -3,8 +3,6 @@
 
 #pragma once
 
-#define SPLIT_HAND_PIN GP4
-
 #define USB_VBUS_PIN GP12
 
 #define SERIAL_USART_FULL_DUPLEX

+ 3 - 0
keyboards/keebio/cepstrum/rev1/keyboard.json

@@ -9,6 +9,9 @@
     },
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "GP4"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["GP29", "GP28", "GP27", "GP26", "GP25", "GP21", "GP15", "GP9", "GP10"],

+ 0 - 2
keyboards/keebio/foldkb/rev1/config.h

@@ -16,6 +16,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#define SPLIT_HAND_PIN F7
-
 #define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)

+ 3 - 0
keyboards/keebio/foldkb/rev1/keyboard.json

@@ -23,6 +23,9 @@
     },
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "F7"
+        },
         "soft_serial_pin": "D0"
     },
     "rgblight": {

+ 0 - 38
keyboards/keebio/fourier/config.h

@@ -1,38 +0,0 @@
-/*
-Copyright 2012 Jun Wako <wakojun@gmail.com>
-Copyright 2015 Jack Humbert
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#pragma once
-
-/* Split Defines */
-#define SPLIT_HAND_PIN D2
-
-/*
- * Feature disable options
- *  These options are also useful to firmware size reduction.
- */
-
-/* disable debug print */
-// #define NO_DEBUG
-
-/* disable print */
-// #define NO_PRINT
-
-/* disable action features */
-//#define NO_ACTION_LAYER
-//#define NO_ACTION_TAPPING
-//#define NO_ACTION_ONESHOT

+ 3 - 0
keyboards/keebio/fourier/keyboard.json

@@ -36,6 +36,9 @@
     },
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "D2"
+        },
         "soft_serial_pin": "D0"
     },
     "rgblight": {

+ 0 - 20
keyboards/keebio/iris/rev3/config.h

@@ -1,20 +0,0 @@
-/*
-Copyright 2017 Danny Nguyen <danny@keeb.io>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#pragma once
-
-#define SPLIT_HAND_PIN F0

+ 3 - 0
keyboards/keebio/iris/rev3/keyboard.json

@@ -45,6 +45,9 @@
     },
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "F0"
+        },
         "soft_serial_pin": "D0"
     },
     "processor": "atmega32u4",

+ 0 - 20
keyboards/keebio/iris/rev4/config.h

@@ -1,20 +0,0 @@
-/*
-Copyright 2019 Danny Nguyen <danny@keeb.io>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#pragma once
-
-#define SPLIT_HAND_PIN D5

+ 3 - 0
keyboards/keebio/iris/rev4/keyboard.json

@@ -53,6 +53,9 @@
                 ]
             }
         },
+        "handedness": {
+            "pin": "D5"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["D4", "D7", "D3", "B7", "F0", "B3"],

+ 0 - 2
keyboards/keebio/iris/rev5/config.h

@@ -17,6 +17,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#define SPLIT_HAND_PIN D5
-
 #define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)

+ 3 - 0
keyboards/keebio/iris/rev5/keyboard.json

@@ -70,6 +70,9 @@
                 ]
             }
         },
+        "handedness": {
+            "pin": "D5"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["D4", "D7", "D3", "B7", "F0", "B3"],

+ 0 - 2
keyboards/keebio/iris/rev6/config.h

@@ -17,6 +17,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#define SPLIT_HAND_PIN D5
-
 #define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)

+ 3 - 0
keyboards/keebio/iris/rev6/keyboard.json

@@ -86,6 +86,9 @@
     "split": {
         "enabled": true,
         "soft_serial_pin": "D0",
+        "handedness": {
+            "pin": "D5"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["D4", "D6", "D7", "C7", "F1", "F4"],

+ 0 - 2
keyboards/keebio/iris/rev7/config.h

@@ -17,6 +17,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#define SPLIT_HAND_PIN D5
-
 #define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)

+ 3 - 0
keyboards/keebio/iris/rev7/keyboard.json

@@ -85,6 +85,9 @@
     "split": {
         "enabled": true,
         "soft_serial_pin": "D0",
+        "handedness": {
+            "pin": "D5"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["D4", "D6", "D7", "C7", "F1", "F4"],

+ 0 - 2
keyboards/keebio/iris/rev8/config.h

@@ -3,8 +3,6 @@
 
 #pragma once
 
-#define SPLIT_HAND_PIN GP4
-
 #define USB_VBUS_PIN GP8
 
 #define SERIAL_USART_FULL_DUPLEX

+ 3 - 0
keyboards/keebio/iris/rev8/keyboard.json

@@ -24,6 +24,9 @@
     },
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "GP4"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["GP27", "GP28", "GP3", "GP6", "GP29", "GP16"],

+ 0 - 1
keyboards/keebio/iris_ce/rev1/config.h

@@ -3,7 +3,6 @@
 
 #pragma once
 
-#define SPLIT_HAND_PIN GP4
 #define USB_VBUS_PIN GP0
 #define SERIAL_USART_FULL_DUPLEX
 #define SERIAL_USART_TX_PIN GP12

+ 3 - 0
keyboards/keebio/iris_ce/rev1/keyboard.json

@@ -135,6 +135,9 @@
     },
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "GP4"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["GP29", "GP28", "GP2", "GP27", "GP18", "GP7"],

+ 0 - 2
keyboards/keebio/kbo5000/rev1/config.h

@@ -18,6 +18,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#define SPLIT_HAND_PIN F7
-
 #define CAPS_LOCK_LED_PIN B6

+ 3 - 0
keyboards/keebio/kbo5000/rev1/keyboard.json

@@ -52,6 +52,9 @@
                 ]
             }
         },
+        "handedness": {
+            "pin": "F7"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["F1", "F0", "F4", "F5", "F6", "D5", "D2", "D3", "B7", "B1"],

+ 0 - 22
keyboards/keebio/levinson/rev3/config.h

@@ -1,22 +0,0 @@
-/*
-Copyright 2012 Jun Wako <wakojun@gmail.com>
-Copyright 2015 Jack Humbert
-Copyright 2018 Danny Nguyen <danny@keeb.io>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#pragma once
-
-#define SPLIT_HAND_PIN D2

+ 3 - 0
keyboards/keebio/levinson/rev3/keyboard.json

@@ -2,6 +2,9 @@
     "keyboard_name": "Levinson Rev. 3",
     "split": {
         "soft_serial_pin": "D0",
+        "handedness": {
+            "pin": "D2"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["F4", "F7", "D3", "B5", "B4", "E6"],

+ 0 - 36
keyboards/keebio/nyquist/rev3/config.h

@@ -1,36 +0,0 @@
-/*
-Copyright 2017 Danny Nguyen <danny@keeb.io>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#pragma once
-
-#define SPLIT_HAND_PIN D5
-
-/*
- * Feature disable options
- *  These options are also useful to firmware size reduction.
- */
-
-/* disable debug print */
-// #define NO_DEBUG
-
-/* disable print */
-// #define NO_PRINT
-
-/* disable action features */
-//#define NO_ACTION_LAYER
-//#define NO_ACTION_TAPPING
-//#define NO_ACTION_ONESHOT

+ 3 - 0
keyboards/keebio/nyquist/rev3/keyboard.json

@@ -31,6 +31,9 @@
     },
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "D5"
+        },
         "soft_serial_pin": "D0"
     },
     "rgblight": {

+ 0 - 2
keyboards/keebio/nyquist/rev4/config.h

@@ -3,8 +3,6 @@
 
 #pragma once
 
-#define SPLIT_HAND_PIN GP23
-
 #define USB_VBUS_PIN GP18
 
 #define SERIAL_USART_FULL_DUPLEX

+ 3 - 0
keyboards/keebio/nyquist/rev4/keyboard.json

@@ -21,6 +21,9 @@
                 ]
             }
         },
+        "handedness": {
+            "pin": "GP23"
+        },
         "matrix_pins": {
             "right":{
                 "cols": ["GP25", "GP29", "GP20", "GP11", "GP3", "GP2"],

+ 0 - 21
keyboards/keebio/quefrency/rev1/config.h

@@ -1,21 +0,0 @@
-/*
-Copyright 2012 Jun Wako <wakojun@gmail.com>
-Copyright 2015 Jack Humbert
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#pragma once
-
-#define SPLIT_HAND_PIN D2

+ 3 - 0
keyboards/keebio/quefrency/rev1/keyboard.json

@@ -34,6 +34,9 @@
     "diode_direction": "COL2ROW",
     "split": {
         "soft_serial_pin": "D0",
+        "handedness": {
+            "pin": "D2"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["F5", "F6", "F7", "B1", "B3", "B2", "B6", "C6"],

+ 0 - 2
keyboards/keebio/quefrency/rev2/config.h

@@ -18,6 +18,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#define SPLIT_HAND_PIN F7
-
 #define CAPS_LOCK_LED_PIN B6

+ 3 - 0
keyboards/keebio/quefrency/rev2/keyboard.json

@@ -50,6 +50,9 @@
                 ]
             }
         },
+        "handedness": {
+            "pin": "F7"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["F1", "F0", "F4", "F5", "F6", "D5", "C7", "D3", "B7"],

+ 0 - 2
keyboards/keebio/quefrency/rev3/config.h

@@ -18,6 +18,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#define SPLIT_HAND_PIN F7
-
 #define CAPS_LOCK_LED_PIN B6

+ 3 - 0
keyboards/keebio/quefrency/rev3/keyboard.json

@@ -50,6 +50,9 @@
                 ]
             }
         },
+        "handedness": {
+            "pin": "F7"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["F1", "F0", "F4", "F5", "F6", "D5", "C7", "D3", "B7"],

+ 0 - 2
keyboards/keebio/quefrency/rev4/config.h

@@ -16,6 +16,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#define SPLIT_HAND_PIN F7
-
 #define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)

+ 3 - 0
keyboards/keebio/quefrency/rev4/keyboard.json

@@ -47,6 +47,9 @@
                 ]
             }
         },
+        "handedness": {
+            "pin": "F7"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["F1", "F0", "F4", "F5", "F6", "D5", "C7", "D3", "B7"],

+ 0 - 2
keyboards/keebio/quefrency/rev5/config.h

@@ -16,6 +16,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#define SPLIT_HAND_PIN F7
-
 #define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)

+ 3 - 0
keyboards/keebio/quefrency/rev5/keyboard.json

@@ -47,6 +47,9 @@
                 ]
             }
         },
+        "handedness": {
+            "pin": "F7"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["F1", "F0", "F4", "F5", "F6", "D5", "C7", "D3", "B7"],

+ 0 - 3
keyboards/keebio/sinc/rev1/config.h

@@ -16,7 +16,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-// wiring of each half
-#define SPLIT_HAND_PIN F7
-
 #define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)

+ 3 - 0
keyboards/keebio/sinc/rev1/keyboard.json

@@ -39,6 +39,9 @@
                 ]
             }
         },
+        "handedness": {
+            "pin": "F7"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["F1", "F0", "F4", "F5", "F6", "D5", "C7", "D3", "B7"],

+ 0 - 3
keyboards/keebio/sinc/rev2/config.h

@@ -16,7 +16,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-// wiring of each half
-#define SPLIT_HAND_PIN F7
-
 #define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)

+ 3 - 0
keyboards/keebio/sinc/rev2/keyboard.json

@@ -39,6 +39,9 @@
                 ]
             }
         },
+        "handedness": {
+            "pin": "F7"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["F1", "F0", "F4", "F5", "F6", "D5", "C7", "D3", "B7"],

+ 0 - 2
keyboards/keebio/sinc/rev3/config.h

@@ -16,8 +16,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#define SPLIT_HAND_PIN GP4
-
 #define SERIAL_USART_FULL_DUPLEX
 #define SERIAL_USART_TX_PIN GP0
 #define SERIAL_USART_RX_PIN GP1

+ 3 - 0
keyboards/keebio/sinc/rev3/keyboard.json

@@ -20,6 +20,9 @@
                 ]
             }
         },
+        "handedness": {
+            "pin": "GP4"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["GP29", "GP28", "GP27", "GP7", "GP2", "GP3", "GP11", "GP12", "GP13"],

+ 0 - 2
keyboards/keebio/sinc/rev4/config.h

@@ -3,8 +3,6 @@
 
 #pragma once
 
-#define SPLIT_HAND_PIN GP4
-
 #define USB_VBUS_PIN GP14
 
 #define SERIAL_USART_FULL_DUPLEX

+ 3 - 0
keyboards/keebio/sinc/rev4/keyboard.json

@@ -20,6 +20,9 @@
                 ]
             }
         },
+        "handedness": {
+            "pin": "GP4"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["GP29", "GP28", "GP27", "GP7", "GP2", "GP3", "GP11", "GP12", "GP13"],

+ 0 - 20
keyboards/keebio/viterbi/rev2/config.h

@@ -1,20 +0,0 @@
-/*
-Copyright 2017 Danny Nguyen <danny@hexwire.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#pragma once
-
-#define SPLIT_HAND_PIN D2

+ 3 - 0
keyboards/keebio/viterbi/rev2/keyboard.json

@@ -1,6 +1,9 @@
 {
     "keyboard_name": "Viterbi Rev. 2",
     "split": {
+        "handedness": {
+            "pin": "D2"
+        },
         "soft_serial_pin": "D0"
     },
     "usb": {

+ 0 - 3
keyboards/maple_computing/lets_split_eh/config.h

@@ -18,9 +18,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-/* Split Defines */
-#define SPLIT_HAND_PIN D3
-
 // The 'EH' has previously forced use of I2C so this default has been kept
 // however users can undef to use serial
 #define USE_I2C

+ 3 - 0
keyboards/maple_computing/lets_split_eh/keyboard.json

@@ -38,6 +38,9 @@
     },
     "split": {
         "enabled": true,
+        "handedness": {
+            "pin": "D3"
+        },
         "soft_serial_pin": "D0"
     },
     "processor": "atmega32u4",

+ 0 - 1
keyboards/mlego/m60_split/rev1/config.h

@@ -15,6 +15,5 @@
  */
 #pragma once
 
-#define SPLIT_HAND_PIN B9
 #define SERIAL_USART_TX_PIN B6
 #define SERIAL_USART_SPEED 921600

+ 3 - 0
keyboards/mlego/m60_split/rev1/keyboard.json

@@ -63,6 +63,9 @@
         "bootmagic": {
             "matrix": [5, 0]
         },
+        "handedness": {
+            "pin": "B9"
+        },
         "matrix_pins": {
             "right": {
                 "cols": ["B0", "A3", "A2", "A1", "B7", "B5"],

+ 0 - 1
keyboards/mlego/m60_split/rev2/config.h

@@ -15,7 +15,6 @@
  */
 #pragma once
 
-#define SPLIT_HAND_PIN B9
 #define SERIAL_USART_TX_PIN B6
 
 #define SERIAL_USART_SPEED 921600

Some files were not shown because too many files changed in this diff