Skip to content

Commit

Permalink
Move matrix config to info.json, part 1 (qmk#19985)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpskenn committed Nov 4, 2023
1 parent 80a86b3 commit 1f66cf3
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
5 changes: 0 additions & 5 deletions keyboards/nora/v01/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

// Same pins for Round-Robin matrix.
#define MATRIX_ROW_PINS { F1, B7, D2, F6, F7, B0, F4, F5, C7, B6 }
#define MATRIX_COL_PINS { F0, D3, D5, D4, D6, D7, B4, B5 }
#define DIODE_DIRECTION COL2ROW

/* RGBLIGHT */
#define RGBLED_NUM 16
#define RGBLIGHT_HUE_STEP 8
Expand Down
5 changes: 5 additions & 0 deletions keyboards/nora/v01/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"matrix_pins": {
"cols": ["F0", "D3", "D5", "D4", "D6", "D7", "B4", "B5"],
"rows": ["F1", "B7", "D2", "F6", "F7", "B0", "F4", "F5", "C7", "B6"]
},
"diode_direction": "COL2ROW",
"ws2812": {
"pin": "E6"
},
Expand Down
5 changes: 0 additions & 5 deletions keyboards/nora/v03/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

// Same pins for Round-Robin matrix.
#define MATRIX_ROW_PINS { D3, D2, D7, B7, F1, D5, D4, D6, B4, F0 }
#define MATRIX_COL_PINS { B0, C7, B6, B5, F7, F6, F5, F4 }
#define DIODE_DIRECTION COL2ROW

/* RGBLIGHT */
#ifdef RGB_MATRIX_ENABLE
#define RGB_MATRIX_LED_COUNT 71
Expand Down
5 changes: 5 additions & 0 deletions keyboards/nora/v03/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0xC9D7",
"device_version": "0.3.0"
},
"matrix_pins": {
"cols": ["B0", "C7", "B6", "B5", "F7", "F6", "F5", "F4"],
"rows": ["D3", "D2", "D7", "B7", "F1", "D5", "D4", "D6", "B4", "F0"]
},
"diode_direction": "COL2ROW",
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"ws2812": {
Expand Down
5 changes: 0 additions & 5 deletions keyboards/nora/v031/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

// Same pins for Round-Robin matrix.
#define MATRIX_ROW_PINS { D3, D2, D7, B7, F1, D5, D4, D6, B4, F0 }
#define MATRIX_COL_PINS { B0, C7, B6, B5, F7, F6, F5, F4 }
#define DIODE_DIRECTION COL2ROW

/* Rotary Encoder */
#ifdef ENCODER_ENABLE
// Encoder triggers specific key matrix position,
Expand Down
5 changes: 5 additions & 0 deletions keyboards/nora/v031/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"matrix_pins": {
"cols": ["B0", "C7", "B6", "B5", "F7", "F6", "F5", "F4"],
"rows": ["D3", "D2", "D7", "B7", "F1", "D5", "D4", "D6", "B4", "F0"]
},
"diode_direction": "COL2ROW",
"ws2812": {
"pin": "E6"
},
Expand Down
5 changes: 0 additions & 5 deletions keyboards/nora/v1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

// Same pins for Round-Robin matrix.
#define MATRIX_ROW_PINS { D3, D2, D7, B7, F1, D5, D4, D6, B4, F0 }
#define MATRIX_COL_PINS { B0, C7, B6, B5, F7, F6, F5, F4 }
#define DIODE_DIRECTION COL2ROW

/* Rotary Encoder */
#ifdef ENCODER_ENABLE
// Encoder triggers specific key matrix position,
Expand Down
5 changes: 5 additions & 0 deletions keyboards/nora/v1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"matrix_pins": {
"cols": ["B0", "C7", "B6", "B5", "F7", "F6", "F5", "F4"],
"rows": ["D3", "D2", "D7", "B7", "F1", "D5", "D4", "D6", "B4", "F0"]
},
"diode_direction": "COL2ROW",
"ws2812": {
"pin": "E6"
},
Expand Down

0 comments on commit 1f66cf3

Please sign in to comment.