diff options
Diffstat (limited to 'keyboards/dm9records/plaid/config.h')
-rw-r--r-- | keyboards/dm9records/plaid/config.h | 143 |
1 files changed, 143 insertions, 0 deletions
diff --git a/keyboards/dm9records/plaid/config.h b/keyboards/dm9records/plaid/config.h new file mode 100644 index 000000000..86ff5be35 --- /dev/null +++ b/keyboards/dm9records/plaid/config.h | |||
@@ -0,0 +1,143 @@ | |||
1 | /* | ||
2 | Copyright 2019 Takuya Urakawa (dm9records.com) | ||
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 | /* VID & PID from vusb project, see tmk_core/protocol/vusb/USB-IDs-for-free.txt"*/ | ||
24 | #define VENDOR_ID 0x16c0 | ||
25 | #define PRODUCT_ID 0x27db | ||
26 | #define DEVICE_VER 0x0002 | ||
27 | #define MANUFACTURER dm9records | ||
28 | #define PRODUCT Plaid | ||
29 | |||
30 | /* key matrix size */ | ||
31 | #define MATRIX_ROWS 4 | ||
32 | #define MATRIX_COLS 12 | ||
33 | |||
34 | /* | ||
35 | * Keyboard Matrix Assignments | ||
36 | * | ||
37 | * Change this to how you wired your keyboard | ||
38 | * COLS: AVR pins used for columns, left to right | ||
39 | * ROWS: AVR pins used for rows, top to bottom | ||
40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
42 | * | ||
43 | */ | ||
44 | #define MATRIX_ROW_PINS { B4, B5, B3, D4 } | ||
45 | #define MATRIX_COL_PINS { B0, D7, D6, D5, B2, B1, C0, C1, C2, C3, D1, D0 } | ||
46 | #define UNUSED_PINS | ||
47 | |||
48 | /* COL2ROW, ROW2COL*/ | ||
49 | #define DIODE_DIRECTION COL2ROW | ||
50 | |||
51 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
52 | |||
53 | /* | ||
54 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
55 | */ | ||
56 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
57 | |||
58 | // #define BACKLIGHT_PIN B7 | ||
59 | // #define BACKLIGHT_BREATHING | ||
60 | // #define BACKLIGHT_LEVELS 3 | ||
61 | |||
62 | // #define RGB_DI_PIN E2 | ||
63 | // #ifdef RGB_DI_PIN | ||
64 | // #define RGBLED_NUM 16 | ||
65 | // #define RGBLIGHT_HUE_STEP 8 | ||
66 | // #define RGBLIGHT_SAT_STEP 8 | ||
67 | // #define RGBLIGHT_VAL_STEP 8 | ||
68 | // #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
69 | // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
70 | // /*== all animations enable ==*/ | ||
71 | // #define RGBLIGHT_ANIMATIONS | ||
72 | // /*== or choose animations ==*/ | ||
73 | // #define RGBLIGHT_EFFECT_BREATHING | ||
74 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
75 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
76 | // #define RGBLIGHT_EFFECT_SNAKE | ||
77 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
78 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
79 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
80 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
81 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
82 | // #endif | ||
83 | |||
84 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
85 | #define DEBOUNCE 5 | ||
86 | |||
87 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
88 | //#define MATRIX_HAS_GHOST | ||
89 | |||
90 | /* number of backlight levels */ | ||
91 | |||
92 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
93 | #define LOCKING_SUPPORT_ENABLE | ||
94 | /* Locking resynchronize hack */ | ||
95 | #define LOCKING_RESYNC_ENABLE | ||
96 | |||
97 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
98 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
99 | */ | ||
100 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
101 | |||
102 | /* | ||
103 | * Force NKRO | ||
104 | * | ||
105 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
106 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
107 | * makefile for this to work.) | ||
108 | * | ||
109 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
110 | * until the next keyboard reset. | ||
111 | * | ||
112 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
113 | * fully operational during normal computer usage. | ||
114 | * | ||
115 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
116 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
117 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
118 | * power-up. | ||
119 | * | ||
120 | */ | ||
121 | //#define FORCE_NKRO | ||
122 | |||
123 | /* | ||
124 | * Feature disable options | ||
125 | * These options are also useful to firmware size reduction. | ||
126 | */ | ||
127 | |||
128 | /* disable debug print */ | ||
129 | //#define NO_DEBUG | ||
130 | |||
131 | /* disable print */ | ||
132 | //#define NO_PRINT | ||
133 | |||
134 | /* disable action features */ | ||
135 | //#define NO_ACTION_LAYER | ||
136 | //#define NO_ACTION_TAPPING | ||
137 | //#define NO_ACTION_ONESHOT | ||
138 | //#define NO_ACTION_MACRO | ||
139 | //#define NO_ACTION_FUNCTION | ||
140 | |||
141 | /* Bootmagic Lite key configuration */ | ||
142 | // #define BOOTMAGIC_LITE_ROW 0 | ||
143 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||