summaryrefslogtreecommitdiff
path: root/keyboards/alf
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-03-11 05:41:58 +1100
committerGitHub <noreply@github.com>2023-03-11 05:41:58 +1100
commite933e0411f442fa411d3d5ec488180fee241e2ef (patch)
treef091f00a1408d752389385ff793c2878ec99e368 /keyboards/alf
parent1022afa6c24a64c78d1c9be99a695ff5335876f7 (diff)
Move matrix config to info.json, part 5 (#20003)
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'keyboards/alf')
-rw-r--r--keyboards/alf/dc60/config.h17
-rw-r--r--keyboards/alf/dc60/info.json5
-rw-r--r--keyboards/alf/x11/config.h17
-rw-r--r--keyboards/alf/x11/info.json5
-rw-r--r--keyboards/alf/x2/config.h10
-rw-r--r--keyboards/alf/x2/info.json5
6 files changed, 15 insertions, 44 deletions
diff --git a/keyboards/alf/dc60/config.h b/keyboards/alf/dc60/config.h
index e81b6a2010..b62a2cc0ac 100644
--- a/keyboards/alf/dc60/config.h
+++ b/keyboards/alf/dc60/config.h
@@ -17,23 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18#pragma once 18#pragma once
19 19
20
21/*
22 * Keyboard Matrix Assignments
23 *
24 * Change this to how you wired your keyboard
25 * COLS: AVR pins used for columns, left to right
26 * ROWS: AVR pins used for rows, top to bottom
27 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
28 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
29 *
30*/
31#define MATRIX_ROW_PINS { B0, B1, B2, B3, B4 }
32#define MATRIX_COL_PINS { B5, D0, D1, D2, D3, D4, D5, D6, D7, C6, C7, F4, F5, F6, F7 }
33
34/* COL2ROW, ROW2COL*/
35#define DIODE_DIRECTION COL2ROW
36
37#define RGB_DI_PIN E6 20#define RGB_DI_PIN E6
38#ifdef RGB_DI_PIN 21#ifdef RGB_DI_PIN
39#define RGBLIGHT_EFFECT_BREATHING 22#define RGBLIGHT_EFFECT_BREATHING
diff --git a/keyboards/alf/dc60/info.json b/keyboards/alf/dc60/info.json
index faf199d8a0..1ec142f403 100644
--- a/keyboards/alf/dc60/info.json
+++ b/keyboards/alf/dc60/info.json
@@ -7,6 +7,11 @@
7 "pid": "0x0000", 7 "pid": "0x0000",
8 "device_version": "0.0.1" 8 "device_version": "0.0.1"
9 }, 9 },
10 "matrix_pins": {
11 "cols": ["B5", "D0", "D1", "D2", "D3", "D4", "D5", "D6", "D7", "C6", "C7", "F4", "F5", "F6", "F7"],
12 "rows": ["B0", "B1", "B2", "B3", "B4"]
13 },
14 "diode_direction": "COL2ROW",
10 "backlight": { 15 "backlight": {
11 "pin": "B6", 16 "pin": "B6",
12 "levels": 5, 17 "levels": 5,
diff --git a/keyboards/alf/x11/config.h b/keyboards/alf/x11/config.h
index 04ebe0c657..1c4361c5c5 100644
--- a/keyboards/alf/x11/config.h
+++ b/keyboards/alf/x11/config.h
@@ -17,23 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18#pragma once 18#pragma once
19 19
20
21/*
22 * Keyboard Matrix Assignments
23 *
24 * Change this to how you wired your keyboard
25 * COLS: AVR pins used for columns, left to right
26 * ROWS: AVR pins used for rows, top to bottom
27 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
28 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
29 *
30*/
31#define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5, B6 }
32#define MATRIX_COL_PINS { D0, D1, D2, D3, D4, D5, D6, D7, F0, F1, F4, F5, F6 }
33
34/* COL2ROW, ROW2COL*/
35#define DIODE_DIRECTION COL2ROW
36
37#define RGB_DI_PIN F7 20#define RGB_DI_PIN F7
38#ifdef RGB_DI_PIN 21#ifdef RGB_DI_PIN
39 #define RGBLED_NUM 28 22 #define RGBLED_NUM 28
diff --git a/keyboards/alf/x11/info.json b/keyboards/alf/x11/info.json
index 8b3ae6f2ba..a3e18ce9b3 100644
--- a/keyboards/alf/x11/info.json
+++ b/keyboards/alf/x11/info.json
@@ -8,6 +8,11 @@
8 "pid": "0x0001", 8 "pid": "0x0001",
9 "device_version": "0.0.1" 9 "device_version": "0.0.1"
10 }, 10 },
11 "matrix_pins": {
12 "cols": ["D0", "D1", "D2", "D3", "D4", "D5", "D6", "D7", "F0", "F1", "F4", "F5", "F6"],
13 "rows": ["B0", "B1", "B2", "B3", "B4", "B5", "B6"]
14 },
15 "diode_direction": "COL2ROW",
11 "backlight": { 16 "backlight": {
12 "pin": "B7", 17 "pin": "B7",
13 "breathing": true 18 "breathing": true
diff --git a/keyboards/alf/x2/config.h b/keyboards/alf/x2/config.h
index 374873d5d5..5faf0aad8b 100644
--- a/keyboards/alf/x2/config.h
+++ b/keyboards/alf/x2/config.h
@@ -16,16 +16,6 @@
16 16
17#pragma once 17#pragma once
18 18
19
20/* key matrix pins */
21#define MATRIX_ROW_PINS \
22 { D0, D1, D2, D3, D5 }
23#define MATRIX_COL_PINS \
24 { F0, F1, E6, C7, C6, B7, D4, B1, B0, B5, B4, D7, D6, B3, F4 }
25
26/* COL2ROW or ROW2COL */
27#define DIODE_DIRECTION COL2ROW
28
29/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ 19/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
30#define LOCKING_SUPPORT_ENABLE 20#define LOCKING_SUPPORT_ENABLE
31 21
diff --git a/keyboards/alf/x2/info.json b/keyboards/alf/x2/info.json
index 5e0b3087a8..7c1b3b9967 100644
--- a/keyboards/alf/x2/info.json
+++ b/keyboards/alf/x2/info.json
@@ -8,6 +8,11 @@
8 "pid": "0x6060", 8 "pid": "0x6060",
9 "device_version": "0.0.1" 9 "device_version": "0.0.1"
10 }, 10 },
11 "matrix_pins": {
12 "cols": ["F0", "F1", "E6", "C7", "C6", "B7", "D4", "B1", "B0", "B5", "B4", "D7", "D6", "B3", "F4"],
13 "rows": ["D0", "D1", "D2", "D3", "D5"]
14 },
15 "diode_direction": "COL2ROW",
11 "indicators": { 16 "indicators": {
12 "caps_lock": "B2", 17 "caps_lock": "B2",
13 "on_state": 0 18 "on_state": 0