Skip to content

Commit

Permalink
Move matrix config to info.json, part 4 (#20001)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored Mar 10, 2023
1 parent dd086a5 commit 9e64300
Show file tree
Hide file tree
Showing 584 changed files with 1,484 additions and 3,703 deletions.
24 changes: 0 additions & 24 deletions keyboards/b_sides/rev41lp/config.h

This file was deleted.

5 changes: 5 additions & 0 deletions keyboards/b_sides/rev41lp/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0x5F10",
"device_version": "0.0.1"
},
"matrix_pins": {
"cols": ["D4", "C6", "D7", "E6", "B4", "B5"],
"rows": ["F4", "B2", "F5", "B3", "F6", "B1", "F7"]
},
"diode_direction": "COL2ROW",
"backlight": {
"pin": "B6",
"levels": 7,
Expand Down
6 changes: 0 additions & 6 deletions keyboards/bacca70/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once


// 0 1 2 3 4 5 6 7 8 9 A B
#define MATRIX_ROW_PINS { A3, A4, A5, A6, A7, B0, B1, B2, B10, B11, A9, A10 }
#define MATRIX_COL_PINS { A0, A1, A2, B12, B13, B14, B15, A8 }
#define DIODE_DIRECTION COL2ROW

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
Expand Down
5 changes: 5 additions & 0 deletions keyboards/bacca70/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0x6970",
"device_version": "0.0.1"
},
"matrix_pins": {
"cols": ["A0", "A1", "A2", "B12", "B13", "B14", "B15", "A8"],
"rows": ["A3", "A4", "A5", "A6", "A7", "B0", "B1", "B2", "B10", "B11", "A9", "A10"]
},
"diode_direction": "COL2ROW",
"processor": "STM32F072",
"bootloader": "stm32-dfu",
"layouts": {
Expand Down
17 changes: 0 additions & 17 deletions keyboards/baguette/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once


/*
* Keyboard Matrix Assignments
*
* Change this to how you wired your keyboard
* COLS: AVR pins used for columns, left to right
* ROWS: AVR pins used for rows, top to bottom
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
#define MATRIX_ROW_PINS { B3, B2, B1, E6, D6 }
#define MATRIX_COL_PINS { B6, C6, C7, F7, F6, F5, F4, F1, F0, B0, D0, D1, D2, D3, D5, D4 }

/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
Expand Down
5 changes: 5 additions & 0 deletions keyboards/baguette/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0x5050",
"device_version": "0.0.1"
},
"matrix_pins": {
"cols": ["B6", "C6", "C7", "F7", "F6", "F5", "F4", "F1", "F0", "B0", "D0", "D1", "D2", "D3", "D5", "D4"],
"rows": ["B3", "B2", "B1", "E6", "D6"]
},
"diode_direction": "COL2ROW",
"backlight": {
"pin": "B7",
"levels": 5,
Expand Down
6 changes: 0 additions & 6 deletions keyboards/baion_808/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define MATRIX_ROW_PINS { A2, A14, A15, B3, B4, B5 }
#define MATRIX_COL_PINS { A1, B9, A3, A4, A5, A6, A7, B0, B1, B2, B10, B11, B12, B13, B14, B15, A8 }

/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW

/* Ensure we jump to bootloader if the RESET keycode was pressed */
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
5 changes: 5 additions & 0 deletions keyboards/baion_808/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0x4238",
"device_version": "0.0.1"
},
"matrix_pins": {
"cols": ["A1", "B9", "A3", "A4", "A5", "A6", "A7", "B0", "B1", "B2", "B10", "B11", "B12", "B13", "B14", "B15", "A8"],
"rows": ["A2", "A14", "A15", "B3", "B4", "B5"]
},
"diode_direction": "COL2ROW",
"indicators": {
"caps_lock": "B6",
"scroll_lock": "B7",
Expand Down
17 changes: 0 additions & 17 deletions keyboards/bandominedoni/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,12 @@
*/
#pragma once


/*
* Keyboard Matrix Assignments
*
* Change this to how you wired your keyboard
* COLS: AVR pins used for columns, left to right
* ROWS: AVR pins used for rows, top to bottom
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
#define MATRIX_ROW_PINS { B5, B4, D7, F6, C6, D4 }
#define MATRIX_COL_PINS { D1, E6, F7, B1, B3, B2, D0 }

#define MASTER_RIGHT
#ifndef MASTER_RIGHT
// SPLIT_HAND_MATRIX_GRID was initially designed to use with left hand side diode D35 mounted and not pressing K7 on the right hand side during boot. However when a USB cable is reconnected immediately, it fails. Decided to use "MASTER_RIGHT" to make it more reliable.
# define SPLIT_HAND_MATRIX_GRID B5, D0
#endif

/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW

#define SPLIT_USB_DETECT

#define RGB_DI_PIN D3
Expand Down
5 changes: 5 additions & 0 deletions keyboards/bandominedoni/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0xF4B5",
"device_version": "0.0.1"
},
"matrix_pins": {
"cols": ["D1", "E6", "F7", "B1", "B3", "B2", "D0"],
"rows": ["B5", "B4", "D7", "F6", "C6", "D4"]
},
"diode_direction": "COL2ROW",
"split": {
"soft_serial_pin": "D2",
"encoder": {
Expand Down
10 changes: 0 additions & 10 deletions keyboards/bantam44/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once


// Planck PCB default pin-out
// Change this to how you wired your keyboard
// COLS: Left to right, ROWS: Top to bottom
#define MATRIX_ROW_PINS { F0, D6, D4, D5 }
#define MATRIX_COL_PINS { B0, B1, B2, B3, B7, D0, B6, F7, F6, F5, F4, F1 }

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
Expand Down
5 changes: 5 additions & 0 deletions keyboards/bantam44/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0x6060",
"device_version": "0.0.1"
},
"matrix_pins": {
"cols": ["B0", "B1", "B2", "B3", "B7", "D0", "B6", "F7", "F6", "F5", "F4", "F1"],
"rows": ["F0", "D6", "D4", "D5"]
},
"diode_direction": "COL2ROW",
"processor": "atmega32u4",
"bootloader": "halfkay",
"layouts": {
Expand Down
17 changes: 0 additions & 17 deletions keyboards/barracuda/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,6 @@

#pragma once


/*
* Keyboard Matrix Assignments
*
* Change this to how you wired your keyboard
* COLS: AVR pins used for columns, left to right
* ROWS: AVR pins used for rows, top to bottom
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
#define MATRIX_ROW_PINS { C4, C5, C6, D1, D2, D3 }
#define MATRIX_COL_PINS { D4, D5, D6, B0, B1, B2 }

/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
Expand Down
5 changes: 5 additions & 0 deletions keyboards/barracuda/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0x0001",
"device_version": "0.0.1"
},
"matrix_pins": {
"cols": ["D4", "D5", "D6", "B0", "B1", "B2"],
"rows": ["C4", "C5", "C6", "D1", "D2", "D3"]
},
"diode_direction": "COL2ROW",
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
"layouts": {
Expand Down
6 changes: 0 additions & 6 deletions keyboards/basekeys/slice/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

// wiring of each half
#define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 }
#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, B5 }

#define DIODE_DIRECTION COL2ROW

/* Select hand configuration */
//#define EE_HANDS
#define MASTER_LEFT
Expand Down
5 changes: 5 additions & 0 deletions keyboards/basekeys/slice/rev1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0xEC17",
"device_version": "0.0.2"
},
"matrix_pins": {
"cols": ["F4", "F5", "F6", "F7", "B1", "B3", "B2", "B6", "B5"],
"rows": ["D4", "C6", "D7", "E6", "B4"]
},
"diode_direction": "COL2ROW",
"split": {
"soft_serial_pin": "D2"
},
Expand Down
6 changes: 0 additions & 6 deletions keyboards/basekeys/slice/rev1_rgb/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

// wiring of each half
#define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 }
#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, B5 }

#define DIODE_DIRECTION COL2ROW

/* Select hand configuration */
//#define EE_HANDS
#define MASTER_LEFT
Expand Down
5 changes: 5 additions & 0 deletions keyboards/basekeys/slice/rev1_rgb/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0xEC15",
"device_version": "0.0.2"
},
"matrix_pins": {
"cols": ["F4", "F5", "F6", "F7", "B1", "B3", "B2", "B6", "B5"],
"rows": ["D4", "C6", "D7", "E6", "B4"]
},
"diode_direction": "COL2ROW",
"split": {
"soft_serial_pin": "D2"
},
Expand Down
10 changes: 0 additions & 10 deletions keyboards/basekeys/trifecta/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@

#pragma once


/* key matrix pins */

#define MATRIX_ROW_PINS { B0, B7, F7, B1, B6, C6, C7, B5, F6, D2 }
#define MATRIX_COL_PINS { F0, F1, F4, F5, D1, B2, D0, B3 }

/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW


#define RGB_DI_PIN E6
#define RGB_MATRIX_LED_COUNT 80

Expand Down
5 changes: 5 additions & 0 deletions keyboards/basekeys/trifecta/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0xEAF3",
"device_version": "0.0.1"
},
"matrix_pins": {
"cols": ["F0", "F1", "F4", "F5", "D1", "B2", "D0", "B3"],
"rows": ["B0", "B7", "F7", "B1", "B6", "C6", "C7", "B5", "F6", "D2"]
},
"diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "D4", "pin_b": "B4"},
Expand Down
7 changes: 0 additions & 7 deletions keyboards/basketweave/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@

#pragma once


#define MATRIX_ROW_PINS { A6, C6, C7, A7, A5 }
#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, B0, B1, B2, D5, D6, C5, C4, C3, C2, C1 }

/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW

#define USB_MAX_POWER_CONSUMPTION 100

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
Expand Down
5 changes: 5 additions & 0 deletions keyboards/basketweave/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0x8989",
"device_version": "0.0.1"
},
"matrix_pins": {
"cols": ["A0", "A1", "A2", "A3", "A4", "B0", "B1", "B2", "D5", "D6", "C5", "C4", "C3", "C2", "C1"],
"rows": ["A6", "C6", "C7", "A7", "A5"]
},
"diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "D7", "pin_b": "C0"}
Expand Down
6 changes: 0 additions & 6 deletions keyboards/bastardkb/charybdis/3x5/blackpill/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@

#pragma once

/* Key matrix configuration. */
#define MATRIX_ROW_PINS \
{ A2, B8, A8, B9 }
#define MATRIX_COL_PINS \
{ B1, B10, B3, B4, B5 }

/* Handedness. */
#define SPLIT_HAND_PIN A3 // High -> left, Low -> right.

Expand Down
5 changes: 5 additions & 0 deletions keyboards/bastardkb/charybdis/3x5/blackpill/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
"usb": {
"device_version": "1.0.0"
},
"matrix_pins": {
"cols": ["B1", "B10", "B3", "B4", "B5"],
"rows": ["A2", "B8", "A8", "B9"]
},
"diode_direction": "ROW2COL",
"processor": "STM32F411",
"bootloader": "stm32-dfu",
"board": "BLACKPILL_STM32_F411"
Expand Down
2 changes: 0 additions & 2 deletions keyboards/bastardkb/charybdis/3x5/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

#pragma once

#define DIODE_DIRECTION ROW2COL

/* Trackball angle adjustment. */
#define ROTATIONAL_TRANSFORM_ANGLE -25

Expand Down
11 changes: 0 additions & 11 deletions keyboards/bastardkb/charybdis/3x5/v1/elitec/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,6 @@

#pragma once

/* Key matrix configuration. */
#define MATRIX_ROW_PINS \
{ B7, C6, D4, B5 }
#define MATRIX_COL_PINS \
{ C7, F0, D7, E6, B4 }

#define MATRIX_ROW_PINS_RIGHT \
{ F0, C6, D4, B5 }
#define MATRIX_COL_PINS_RIGHT \
{ C7, B7, D7, E6, B4 }

/* Handedness. */
#define MASTER_RIGHT

Expand Down
Loading

0 comments on commit 9e64300

Please sign in to comment.