diff options
Diffstat (limited to 'keyboards/al1/config.h')
-rw-r--r-- | keyboards/al1/config.h | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/keyboards/al1/config.h b/keyboards/al1/config.h new file mode 100644 index 000000000..b003a9cd6 --- /dev/null +++ b/keyboards/al1/config.h | |||
@@ -0,0 +1,94 @@ | |||
1 | /* | ||
2 | Copyright 2018 MechMerlin | ||
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 0x6050 | ||
25 | #define DEVICE_VER 0x0104 | ||
26 | #define MANUFACTURER Alsoran | ||
27 | #define PRODUCT AL1 | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 7 | ||
31 | #define MATRIX_COLS 20 | ||
32 | |||
33 | #define LED_NUM_LOCK_PIN D0 | ||
34 | #define LED_CAPS_LOCK_PIN B7 | ||
35 | #define LED_SCROLL_LOCK_PIN D1 | ||
36 | #define LED_PIN_ON_STATE 0 | ||
37 | |||
38 | #define BACKLIGHT_PIN B6 | ||
39 | #define BACKLIGHT_LEVELS 3 | ||
40 | #define BACKLIGHT_BREATHING | ||
41 | |||
42 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
43 | #define DEBOUNCE 5 | ||
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 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
51 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
52 | */ | ||
53 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
54 | |||
55 | /* | ||
56 | * Force NKRO | ||
57 | * | ||
58 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
59 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
60 | * makefile for this to work.) | ||
61 | * | ||
62 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
63 | * until the next keyboard reset. | ||
64 | * | ||
65 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
66 | * fully operational during normal computer usage. | ||
67 | * | ||
68 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
69 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
70 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
71 | * power-up. | ||
72 | * | ||
73 | */ | ||
74 | //#define FORCE_NKRO | ||
75 | |||
76 | /* | ||
77 | * Feature disable options | ||
78 | * These options are also useful to firmware size reduction. | ||
79 | */ | ||
80 | |||
81 | /* disable debug print */ | ||
82 | //#define NO_DEBUG | ||
83 | |||
84 | /* disable print */ | ||
85 | //#define NO_PRINT | ||
86 | |||
87 | /* disable action features */ | ||
88 | //#define NO_ACTION_LAYER | ||
89 | //#define NO_ACTION_TAPPING | ||
90 | //#define NO_ACTION_ONESHOT | ||
91 | |||
92 | /* disable these deprecated features by default */ | ||
93 | #define NO_ACTION_MACRO | ||
94 | #define NO_ACTION_FUNCTION | ||