diff options
author | Cao Thai Duong <57068549+KD-MM2@users.noreply.github.com> | 2022-09-26 14:42:04 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-25 22:42:04 -0700 |
commit | 6809f154c9b8a405444c1a32839e7e3687ddb8e2 (patch) | |
tree | 6a4165f85c55598ba977592664a8f7fbbf26652a /keyboards/handwired/hwpm87/config.h | |
parent | 04b93bd2a9940bc194b512797a6a9a205c77e8c1 (diff) |
[Keyboard] Add Handwired 87 keys (#17682)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'keyboards/handwired/hwpm87/config.h')
-rw-r--r-- | keyboards/handwired/hwpm87/config.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/keyboards/handwired/hwpm87/config.h b/keyboards/handwired/hwpm87/config.h new file mode 100644 index 0000000000..60ef15ab44 --- /dev/null +++ b/keyboards/handwired/hwpm87/config.h @@ -0,0 +1,29 @@ +// Copyright 2022 CAO THAI DUONG (@KD-MM2) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "config_common.h" + + +/* key matrix size */ +#define MATRIX_ROWS 6 +#define MATRIX_COLS 18 + +/* + * 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 DIODE_DIRECTION ROW2COL + +#define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5 } +#define MATRIX_COL_PINS { D3, D2, D1, D0, D4, C6, D7, E6, B7, F0, F1, D6, C7, B6, F7, F6, F5, F4 } + +#define LED_CAPS_LOCK_PIN D5 +#define LED_PIN_ON_STATE 0 |