diff options
Diffstat (limited to 'keyboards/w1_at/config.h')
-rw-r--r-- | keyboards/w1_at/config.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/keyboards/w1_at/config.h b/keyboards/w1_at/config.h new file mode 100644 index 000000000..e923773de --- /dev/null +++ b/keyboards/w1_at/config.h | |||
@@ -0,0 +1,83 @@ | |||
1 | /* | ||
2 | Copyright 2021 Yiancar-Designs | ||
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 0x8968 | ||
24 | #define PRODUCT_ID 0x5754 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Yiancar-Designs | ||
27 | #define PRODUCT W1-AT | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 5 | ||
31 | #define MATRIX_COLS 20 | ||
32 | |||
33 | #define MATRIX_ROW_PINS { A2, B9, B8, B5, B4 } | ||
34 | #define MATRIX_COL_PINS { B7, A0, A1, B1, B0, A7, A6, A5, A4, A3, B2, B10, B11, B12, B13, B14, B15, A8, A9, A10 } | ||
35 | |||
36 | /* COL2ROW, ROW2COL*/ | ||
37 | #define DIODE_DIRECTION COL2ROW | ||
38 | |||
39 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
40 | #define DEBOUNCE 5 | ||
41 | |||
42 | /* Ensure we jump to bootloader if the RESET keycode was pressed */ | ||
43 | #define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE | ||
44 | |||
45 | /* Indicator LEDs */ | ||
46 | #define LED_CAPS_LOCK_PIN B6 | ||
47 | #define LED_NUM_LOCK_PIN B3 | ||
48 | #define LED_SCROLL_LOCK_PIN A15 | ||
49 | #define LED_KANA_PIN A13 | ||
50 | #define LED_PIN_ON_STATE 0 | ||
51 | |||
52 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
53 | //#define MATRIX_HAS_GHOST | ||
54 | |||
55 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
56 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
57 | */ | ||
58 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
59 | |||
60 | /* | ||
61 | * Force NKRO | ||
62 | * | ||
63 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
64 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
65 | * makefile for this to work.) | ||
66 | * | ||
67 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
68 | * until the next keyboard reset. | ||
69 | * | ||
70 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
71 | * fully operational during normal computer usage. | ||
72 | * | ||
73 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
74 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
75 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
76 | * power-up. | ||
77 | * | ||
78 | */ | ||
79 | //#define FORCE_NKRO | ||
80 | |||
81 | /* Bootmagic Lite key configuration */ | ||
82 | #define BOOTMAGIC_LITE_ROW 0 | ||
83 | #define BOOTMAGIC_LITE_COLUMN 2 | ||