diff options
Diffstat (limited to 'keyboards/teleport/numpad/config.h')
-rw-r--r-- | keyboards/teleport/numpad/config.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/keyboards/teleport/numpad/config.h b/keyboards/teleport/numpad/config.h new file mode 100644 index 000000000..f3573483b --- /dev/null +++ b/keyboards/teleport/numpad/config.h | |||
@@ -0,0 +1,39 @@ | |||
1 | /* | ||
2 | Copyright 2021 Moritz Plattner | ||
3 | This program is free software: you can redistribute it and/or modify | ||
4 | it under the terms of the GNU General Public License as published by | ||
5 | the Free Software Foundation, either version 2 of the License, or | ||
6 | (at your option) any later version. | ||
7 | This program is distributed in the hope that it will be useful, | ||
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | GNU General Public License for more details. | ||
11 | You should have received a copy of the GNU General Public License | ||
12 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
13 | */ | ||
14 | |||
15 | #pragma once | ||
16 | |||
17 | #include "config_common.h" | ||
18 | |||
19 | /* USB Device descriptor parameter */ | ||
20 | #define VENDOR_ID 0x7470 //"tp" | ||
21 | #define PRODUCT_ID 0x0001 | ||
22 | #define DEVICE_VER 0x0001 | ||
23 | #define MANUFACTURER tlprt | ||
24 | #define PRODUCT NumPad | ||
25 | |||
26 | /* key matrix size */ | ||
27 | #define MATRIX_ROWS 5 | ||
28 | #define MATRIX_COLS 4 | ||
29 | |||
30 | /* Keyboard Matrix Assignments */ | ||
31 | #define MATRIX_ROW_PINS { D7, D4, D6, B4, B5 } | ||
32 | #define MATRIX_COL_PINS { F6, F5, F7, F4 } | ||
33 | #define UNUSED_PINS { B0, B1, B2, B3, B6, B7, D0, D1, D2, D3, D5, F0, F1, E6, C6, C7 } | ||
34 | |||
35 | /* COL2ROW, ROW2COL*/ | ||
36 | #define DIODE_DIRECTION COL2ROW | ||
37 | |||
38 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
39 | #define DEBOUNCE 5 | ||