diff options
author | kopibeng <52724926+kopibeng@users.noreply.github.com> | 2022-12-09 00:48:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 03:48:42 +1100 |
commit | 1df41e6db1e4e5367ce431330e0b4a855be1158b (patch) | |
tree | 2894ff8087601c058d1450237756eaa06603654e /keyboards/kopibeng/mnk65_stm32/config.h | |
parent | 5447b075f946dcf8fb931e49083f5098042a7261 (diff) |
Add support for MNK65_STM32 (#18744)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/kopibeng/mnk65_stm32/config.h')
-rw-r--r-- | keyboards/kopibeng/mnk65_stm32/config.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/keyboards/kopibeng/mnk65_stm32/config.h b/keyboards/kopibeng/mnk65_stm32/config.h new file mode 100644 index 0000000000..b539cb6348 --- /dev/null +++ b/keyboards/kopibeng/mnk65_stm32/config.h @@ -0,0 +1,54 @@ +/* Copyright 2021 Samuel Lu + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#pragma once + +#include "config_common.h" + + +/* key matrix size */ +#define MATRIX_ROWS 5 +#define MATRIX_COLS 15 + +/* + * 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 { A10, B9, A1, B11, A3 } +#define MATRIX_COL_PINS { A9, B8, F0, C15, C14, C13, B10, B2, B1, B0, A7, A6, A5, A4, A2 } +#define UNUSED_PINS + +#define LED_CAPS_LOCK_PIN A8 + +/* COL2ROW, ROW2COL*/ +#define DIODE_DIRECTION COL2ROW + +/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ +#define DEBOUNCE 5 + +/* define if matrix has ghost (lacks anti-ghosting diodes) */ +//#define MATRIX_HAS_GHOST + +/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ +#define LOCKING_SUPPORT_ENABLE +/* Locking resynchronize hack */ +#define LOCKING_RESYNC_ENABLE |