diff options
| author | MesaKeyboards <74444813+MesaKeyboards@users.noreply.github.com> | 2021-01-19 18:05:08 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-19 18:05:08 -0800 |
| commit | 974d3f1ffdbc4478f8d430021e74cf76e122661f (patch) | |
| tree | 099960a3939cb545bcd37efc7eaafd6b141f5931 /keyboards/mesa/mesa_tkl/config.h | |
| parent | e6a90c8b043b5b18986c5e56edcc18236c6787db (diff) | |
| download | qmk_firmware-974d3f1ffdbc4478f8d430021e74cf76e122661f.tar.gz qmk_firmware-974d3f1ffdbc4478f8d430021e74cf76e122661f.zip | |
[Keyboard] Add Mesa TKL (#11294)
* Add keyboard: Mesa TKL
* Fix image link in readme
* Update keyboards/mesa/mesa_tkl/mesa_tkl.c
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/mesa/mesa_tkl/rules.mk
White space changes
Co-authored-by: Ryan <fauxpark@gmail.com>
* Replace tabs with spaces per C coding conventions.
* Update keyboards/mesa/mesa_tkl/readme.md
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/mesa/mesa_tkl/config.h')
| -rw-r--r-- | keyboards/mesa/mesa_tkl/config.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/keyboards/mesa/mesa_tkl/config.h b/keyboards/mesa/mesa_tkl/config.h new file mode 100644 index 000000000..f4c26e2a0 --- /dev/null +++ b/keyboards/mesa/mesa_tkl/config.h | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Mesa Keyboards | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0x4E5A | ||
| 24 | #define PRODUCT_ID 0x8001 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Mesa Keyboards | ||
| 27 | #define PRODUCT Mesa TKL | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 6 | ||
| 31 | #define MATRIX_COLS 17 | ||
| 32 | |||
| 33 | /* | ||
| 34 | * Keyboard Matrix Assignments | ||
| 35 | * | ||
| 36 | * Change this to how you wired your keyboard | ||
| 37 | * COLS: AVR pins used for columns, left to right | ||
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 41 | * | ||
| 42 | */ | ||
| 43 | #define MATRIX_ROW_PINS { D2, D1, D0, B0, C6, C7 } | ||
| 44 | #define MATRIX_COL_PINS { D3, D5, D4, D6, D7, B4, B5, B6, F7, F6, F5, F4, F1, F0, B1, B2, B3 } | ||
| 45 | #define UNUSED_PINS { B7 E6 } | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL*/ | ||
| 48 | #define DIODE_DIRECTION COL2ROW | ||
| 49 | |||
| 50 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 51 | #define DEBOUNCE 5 | ||
| 52 | |||
| 53 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 54 | #define LOCKING_SUPPORT_ENABLE | ||
| 55 | /* Locking resynchronize hack */ | ||
| 56 | #define LOCKING_RESYNC_ENABLE | ||
| 57 | |||
| 58 | /* disable these deprecated features by default */ | ||
| 59 | #define NO_ACTION_MACRO | ||
| 60 | #define NO_ACTION_FUNCTION | ||
