diff options
Diffstat (limited to 'keyboards/binepad/bn003/config.h')
-rw-r--r-- | keyboards/binepad/bn003/config.h | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/keyboards/binepad/bn003/config.h b/keyboards/binepad/bn003/config.h new file mode 100644 index 000000000..de5fb533a --- /dev/null +++ b/keyboards/binepad/bn003/config.h | |||
@@ -0,0 +1,89 @@ | |||
1 | /* Copyright 2020 BINEPAD | ||
2 | * | ||
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 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | #include "config_common.h" | ||
20 | |||
21 | /* USB Device descriptor parameter */ | ||
22 | #define VENDOR_ID 0x4249 // Binepad | ||
23 | #define PRODUCT_ID 0x4287 | ||
24 | #define DEVICE_VER 0x0001 | ||
25 | #define MANUFACTURER Binepad | ||
26 | #define PRODUCT BN003 | ||
27 | |||
28 | /* Key matrix size */ | ||
29 | #define MATRIX_ROWS 1 | ||
30 | #define MATRIX_COLS 3 | ||
31 | |||
32 | #define MATRIX_ROW_PINS { C6 } | ||
33 | #define MATRIX_COL_PINS { B4, B5, B6 } | ||
34 | #define UNUSED_PINS | ||
35 | |||
36 | /* COL2ROW, ROW2COL*/ | ||
37 | #define DIODE_DIRECTION COL2ROW | ||
38 | |||
39 | |||
40 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
41 | #define DEBOUNCE 5 | ||
42 | |||
43 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
44 | //#define MATRIX_HAS_GHOST | ||
45 | |||
46 | |||
47 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
48 | #define LOCKING_SUPPORT_ENABLE | ||
49 | /* Locking resynchronize hack */ | ||
50 | #define LOCKING_RESYNC_ENABLE | ||
51 | |||
52 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
53 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
54 | */ | ||
55 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
56 | |||
57 | /* | ||
58 | * Force NKRO | ||
59 | * | ||
60 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
61 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
62 | * makefile for this to work.) | ||
63 | * | ||
64 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
65 | * until the next keyboard reset. | ||
66 | * | ||
67 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
68 | * fully operational during normal computer usage. | ||
69 | * | ||
70 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
71 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
72 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
73 | * power-up. | ||
74 | * | ||
75 | |||
76 | */ | ||
77 | //#define FORCE_NKRO | ||
78 | |||
79 | /* | ||
80 | * Magic Key Options | ||
81 | * | ||
82 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
83 | * the keyboard. They are best used in combination with the HID Listen program, | ||
84 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
85 | * | ||
86 | * The options below allow the magic key functionality to be changed. This is | ||
87 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
88 | * | ||
89 | */ | ||