diff options
Diffstat (limited to 'keyboards/a_dux')
-rw-r--r-- | keyboards/a_dux/config.h | 30 | ||||
-rw-r--r-- | keyboards/a_dux/info.json | 20 |
2 files changed, 20 insertions, 30 deletions
diff --git a/keyboards/a_dux/config.h b/keyboards/a_dux/config.h index d6551e60c4..d636139928 100644 --- a/keyboards/a_dux/config.h +++ b/keyboards/a_dux/config.h @@ -16,36 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once - -/* key matrix size */ -#define MATRIX_ROWS 8 -#define MATRIX_COLS 5 - -/* - * 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) - * NO_DIODE = switches are directly connected to AVR pins - * -*/ -#define DIRECT_PINS { \ - { C6, D2, F7, B2, F4 }, \ - { D7, D0, F6, B3, F5 }, \ - { E6, D4, D3, B1, B6 }, \ - { B4, B5, NO_PIN, NO_PIN, NO_PIN } \ -} - -#define DIRECT_PINS_RIGHT { \ - { F4, B2, F7, D2, C6 }, \ - { F5, B3, F6, D0, D7 }, \ - { B6, B1, D3, D4, E6 }, \ - { B5, B4, NO_PIN, NO_PIN, NO_PIN } \ -} - /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE diff --git a/keyboards/a_dux/info.json b/keyboards/a_dux/info.json index d5a8365279..6292d5e707 100644 --- a/keyboards/a_dux/info.json +++ b/keyboards/a_dux/info.json @@ -10,6 +10,26 @@ }, "processor": "atmega32u4", "bootloader": "atmel-dfu", + "matrix_pins": { + "direct": [ + ["C6", "D2", "F7", "B2", "F4"], + ["D7", "D0", "F6", "B3", "F5"], + ["E6", "D4", "D3", "B1", "B6"], + ["B4", "B5", null, null, null] + ] + }, + "split": { + "matrix_pins": { + "right": { + "direct": [ + ["F4", "B2", "F7", "D2", "C6"], + ["F5", "B3", "F6", "D0", "D7"], + ["B6", "B1", "D3", "D4", "E6"], + ["B5", "B4", null, null, null] + ] + } + } + }, "community_layouts": ["split_3x5_2"], "layouts": { "LAYOUT_split_3x5_2": { |