diff options
Diffstat (limited to 'keyboards/handwired/dc/mc/001/config.h')
-rw-r--r-- | keyboards/handwired/dc/mc/001/config.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/keyboards/handwired/dc/mc/001/config.h b/keyboards/handwired/dc/mc/001/config.h new file mode 100644 index 000000000..4c687ae7f --- /dev/null +++ b/keyboards/handwired/dc/mc/001/config.h | |||
@@ -0,0 +1,83 @@ | |||
1 | /* | ||
2 | Copyright 2021 Daniel Cormier | ||
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 0x4443 // 'D' 'C' | ||
24 | #define PRODUCT_ID 0x4D43 // 'M' 'C' | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Daniel Cormier | ||
27 | #define PRODUCT DC MC 001 | ||
28 | |||
29 | /* | ||
30 | BUTTON_MUTE = _BV(4), | ||
31 | BUTTON_STOP = _BV(0), | ||
32 | BUTTON_TRACK_PREVIOUS = _BV(1), | ||
33 | BUTTON_TRACK_NEXT = _BV(2), | ||
34 | BUTTON_PLAY_PAUSE = _BV(3), | ||
35 | */ | ||
36 | #define DIRECT_PINS \ | ||
37 | { \ | ||
38 | { B4, B0, B1, B2, B3 } \ | ||
39 | } | ||
40 | #define UNUSED_PINS | ||
41 | |||
42 | /* | ||
43 | RE_CHANNEL_A = _BV(6), | ||
44 | RE_CHANNEL_B = _BV(5), | ||
45 | */ | ||
46 | #define ENCODERS_PAD_A \ | ||
47 | { B6 } | ||
48 | #define ENCODERS_PAD_B \ | ||
49 | { B5 } | ||
50 | #define ENCODER_RESOLUTION 4 | ||
51 | |||
52 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
53 | // All the keys just need 5ms of debounce, but the mute button on the rotary | ||
54 | // encoderneeds much more (50ms). | ||
55 | #define DEBOUNCE 50 | ||
56 | |||
57 | /* | ||
58 | * Feature disable options | ||
59 | * These options are also useful to firmware size reduction. | ||
60 | */ | ||
61 | |||
62 | /* disable debug print */ | ||
63 | //#define NO_DEBUG | ||
64 | |||
65 | /* disable print */ | ||
66 | //#define NO_PRINT | ||
67 | |||
68 | /* disable action features */ | ||
69 | #define NO_ACTION_LAYER | ||
70 | #define NO_ACTION_TAPPING | ||
71 | #define NO_ACTION_ONESHOT | ||
72 | |||
73 | /* disable these deprecated features by default */ | ||
74 | #define NO_ACTION_MACRO | ||
75 | #define NO_ACTION_FUNCTION | ||
76 | |||
77 | /* Bootmagic Lite key configuration */ | ||
78 | // The (default) Stop key | ||
79 | // Doesn't work, though. Maybe becuase of the bootloader that's in use? | ||
80 | #define BOOTMAGIC_LITE_ROW 0 | ||
81 | #define BOOTMAGIC_LITE_COLUMN 1 | ||
82 | |||
83 | #define USB_MAX_POWER_CONSUMPTION 100 | ||