diff options
author | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
commit | dc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch) | |
tree | 4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/bear_face/config.h |
Diffstat (limited to 'keyboards/bear_face/config.h')
-rw-r--r-- | keyboards/bear_face/config.h | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/keyboards/bear_face/config.h b/keyboards/bear_face/config.h new file mode 100644 index 000000000..9b389f127 --- /dev/null +++ b/keyboards/bear_face/config.h | |||
@@ -0,0 +1,99 @@ | |||
1 | /* | ||
2 | Copyright 2020 chemicalwill <https://github.com/chemicalwill> | ||
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 0xFEED | ||
24 | #define PRODUCT_ID 0x09f5 | ||
25 | #define MANUFACTURER chemicalwill | ||
26 | #define PRODUCT bear_face | ||
27 | |||
28 | /* key matrix size */ | ||
29 | #define MATRIX_ROWS 6 | ||
30 | #define MATRIX_COLS 15 | ||
31 | |||
32 | /* bear_face matrix pinout */ | ||
33 | #define MATRIX_ROW_PINS { F5, F6, F4, F1, B0, B6 } | ||
34 | #define MATRIX_COL_PINS { B5, C7, C6, F0, E6, B7, D0, D1, D2, D3, D5, D4, D6, D7, B4 } | ||
35 | #define UNUSED_PINS | ||
36 | |||
37 | /* COL2ROW or ROW2COL */ | ||
38 | #define DIODE_DIRECTION COL2ROW | ||
39 | |||
40 | #define BACKLIGHT_PIN F7 | ||
41 | |||
42 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
43 | #define DEBOUNCE 6 | ||
44 | |||
45 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
46 | #define LOCKING_SUPPORT_ENABLE | ||
47 | /* Locking resynchronize hack */ | ||
48 | #define LOCKING_RESYNC_ENABLE | ||
49 | |||
50 | /* | ||
51 | * Force NKRO | ||
52 | * | ||
53 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
54 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
55 | * makefile for this to work.) | ||
56 | * | ||
57 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
58 | * until the next keyboard reset. | ||
59 | * | ||
60 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
61 | * fully operational during normal computer usage. | ||
62 | * | ||
63 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
64 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
65 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
66 | * power-up. | ||
67 | * | ||
68 | */ | ||
69 | #define FORCE_NKRO | ||
70 | |||
71 | /* | ||
72 | * Magic Key Options | ||
73 | * | ||
74 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
75 | * the keyboard. They are best used in combination with the HID Listen program, | ||
76 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
77 | * | ||
78 | * The options below allow the magic key functionality to be changed. This is | ||
79 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
80 | * | ||
81 | */ | ||
82 | |||
83 | /* | ||
84 | * Feature disable options | ||
85 | * These options are also useful to firmware size reduction. | ||
86 | */ | ||
87 | |||
88 | /* disable debug print */ | ||
89 | //#define NO_DEBUG | ||
90 | |||
91 | /* disable print */ | ||
92 | //#define NO_PRINT | ||
93 | |||
94 | /* disable action features */ | ||
95 | //#define NO_ACTION_LAYER | ||
96 | //#define NO_ACTION_TAPPING | ||
97 | //#define NO_ACTION_ONESHOT | ||
98 | //#define NO_ACTION_MACRO | ||
99 | //#define NO_ACTION_FUNCTION | ||