diff options
author | Álvaro A. Volpato <alvaro.volpato@usp.br> | 2021-12-29 07:57:22 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-29 02:57:22 -0800 |
commit | dea23720e67d95278830a1172dac57a4e502a050 (patch) | |
tree | 11dada790ca5d4ad7292009b4b37d709d4fa60d8 /keyboards/mode/m80v2/config.h | |
parent | 9475767e7a0e0c6e0ceccc446bec848002d6fc77 (diff) |
[Keyboard] Add Mode Eighty M80v2 PCB support (#15486)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/mode/m80v2/config.h')
-rw-r--r-- | keyboards/mode/m80v2/config.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/keyboards/mode/m80v2/config.h b/keyboards/mode/m80v2/config.h new file mode 100644 index 0000000000..fbe5fb86df --- /dev/null +++ b/keyboards/mode/m80v2/config.h @@ -0,0 +1,45 @@ +/* + Copyright 2020 Álvaro "Gondolindrim" Volpato <alvaro.volpato@usp.br> + +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 + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0x00DE +#define DEVICE_VER 0x0002 +#define MANUFACTURER Mode + +/* key matrix size */ +#define MATRIX_ROWS 6 +#define MATRIX_COLS 17 + +#define MATRIX_ROW_PINS { B12, B13, B14, B3, B4, B9 } +#define MATRIX_COL_PINS { A1, A2, A3, A4, A5, A6, A7, B0, B1, B10, A8, A10, B15, A15, B5, B8, C13 } + +#define DIODE_DIRECTION COL2ROW + +/* define if matrix has ghost */ +//#define MATRIX_HAS_GHOST + +/* Set 0 if debouncing isn't needed */ +#define DEBOUNCE 5 + +/* 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 + +#define LED_CAPS_LOCK_PIN A0 |