diff options
author | Ryan <fauxpark@gmail.com> | 2023-03-10 22:16:56 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-10 22:16:56 +1100 |
commit | dd086a51d82a574a55eb3b89e8943301d72296f3 (patch) | |
tree | db49e94d90e9f3a8a6cf72a9da0d5549dd2a9bcb /keyboards/lfkeyboards/lfk78 | |
parent | 80661e5f1981af4d50a32d41e136e9586d5f5a43 (diff) |
Move matrix config to info.json, part 2 (#19987)
Diffstat (limited to 'keyboards/lfkeyboards/lfk78')
-rw-r--r-- | keyboards/lfkeyboards/lfk78/config.h | 4 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfk78/revb/config.h | 13 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfk78/revb/info.json | 5 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfk78/revc/config.h | 13 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfk78/revc/info.json | 5 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfk78/revj/info.json | 5 |
6 files changed, 15 insertions, 30 deletions
diff --git a/keyboards/lfkeyboards/lfk78/config.h b/keyboards/lfkeyboards/lfk78/config.h index 3e88fe3d37..e71fd36273 100644 --- a/keyboards/lfkeyboards/lfk78/config.h +++ b/keyboards/lfkeyboards/lfk78/config.h @@ -17,10 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once - -/* COL2ROW, ROW2COL*/ -#define DIODE_DIRECTION COL2ROW - #define BACKLIGHT_PWM_MAP { 8, 16, 40, 55, 70, 128, 200, 255 } #define TAPPING_TERM 200 diff --git a/keyboards/lfkeyboards/lfk78/revb/config.h b/keyboards/lfkeyboards/lfk78/revb/config.h index 8437f8efc0..377ea21123 100644 --- a/keyboards/lfkeyboards/lfk78/revb/config.h +++ b/keyboards/lfkeyboards/lfk78/revb/config.h @@ -1,16 +1,3 @@ #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 { B0, B1, B2, B3, B4, F0, F1, F4, F5, F6 } -#define MATRIX_COL_PINS { E6, F7, D2, D3, D4, D5, D6, D7 } - #define RGBLED_NUM 31 diff --git a/keyboards/lfkeyboards/lfk78/revb/info.json b/keyboards/lfkeyboards/lfk78/revb/info.json index 026ec0d0c5..80f734a658 100644 --- a/keyboards/lfkeyboards/lfk78/revb/info.json +++ b/keyboards/lfkeyboards/lfk78/revb/info.json @@ -8,6 +8,11 @@ "pid": "0x3738", "device_version": "0.0.1" }, + "matrix_pins": { + "cols": ["E6", "F7", "D2", "D3", "D4", "D5", "D6", "D7"], + "rows": ["B0", "B1", "B2", "B3", "B4", "F0", "F1", "F4", "F5", "F6"] + }, + "diode_direction": "COL2ROW", "backlight": { "driver": "custom", "levels": 8 diff --git a/keyboards/lfkeyboards/lfk78/revc/config.h b/keyboards/lfkeyboards/lfk78/revc/config.h index 46db66470b..78343dc888 100644 --- a/keyboards/lfkeyboards/lfk78/revc/config.h +++ b/keyboards/lfkeyboards/lfk78/revc/config.h @@ -1,16 +1,3 @@ #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 { D2, D3, D4, D5, D6 } -#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, E6, E7, F0, F1, F2, F3, C0, C1, C2, C3 } - #define RGBLED_NUM 27 diff --git a/keyboards/lfkeyboards/lfk78/revc/info.json b/keyboards/lfkeyboards/lfk78/revc/info.json index 8867f107e8..9ce1fbff5b 100644 --- a/keyboards/lfkeyboards/lfk78/revc/info.json +++ b/keyboards/lfkeyboards/lfk78/revc/info.json @@ -8,6 +8,11 @@ "pid": "0x3738", "device_version": "0.0.1" }, + "matrix_pins": { + "cols": ["A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "E6", "E7", "F0", "F1", "F2", "F3", "C0", "C1", "C2", "C3"], + "rows": ["D2", "D3", "D4", "D5", "D6"] + }, + "diode_direction": "COL2ROW", "backlight": { "driver": "custom", "levels": 8 diff --git a/keyboards/lfkeyboards/lfk78/revj/info.json b/keyboards/lfkeyboards/lfk78/revj/info.json index 320e5f89ec..78c63c82de 100644 --- a/keyboards/lfkeyboards/lfk78/revj/info.json +++ b/keyboards/lfkeyboards/lfk78/revj/info.json @@ -8,6 +8,11 @@ "pid": "0x3738", "device_version": "0.0.1" }, + "matrix_pins": { + "cols": ["A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "E6", "E7", "F0", "F1", "F2", "F3", "C0", "C1", "C2", "C3"], + "rows": ["D2", "D3", "D4", "D5", "D6"] + }, + "diode_direction": "COL2ROW", "backlight": { "driver": "custom", "levels": 8 |