]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/dactyl/config.h
Handwired/Dactyl keyboard (#2058)
[qmk_firmware.git] / keyboards / handwired / dactyl / config.h
1 /*
2 Copyright 2012 Jun Wako <wakojun@gmail.com>
3 Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
4 Copyright 2017 Erin Call <hello@erincall.com>
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef DACTYL_CONFIG_H
21 #define DACTYL_CONFIG_H
22
23 #include "config_common.h"
24
25 /* USB Device descriptor parameter */
26 #define VENDOR_ID       0xFEED
27 #define PRODUCT_ID      0x1308
28 #define DEVICE_VER      0x0001
29 #define MANUFACTURER    Adereth
30 #define PRODUCT         Dactyl
31 #define DESCRIPTION     An ortholinear, split, 3D-curved keyboard with thumb clusters.
32
33 /* key matrix size
34  * At this time, "row" in the dactyl's code actually means "column" on the
35  * physical keyboard. It's confusing. I'm sorry. Blame Jack Humbert :P
36  */
37 #define MATRIX_ROWS 12
38 #define MATRIX_COLS 6
39
40 #define MOUSEKEY_INTERVAL     20
41 #define MOUSEKEY_DELAY        0
42 #define MOUSEKEY_TIME_TO_MAX  60
43 #define MOUSEKEY_MAX_SPEED    7
44 #define MOUSEKEY_WHEEL_DELAY  0
45
46 #define TAPPING_TOGGLE  1
47
48 #define TAPPING_TERM    200
49 #define IGNORE_MOD_TAP_INTERRUPT // this makes it possible to do rolling combos (zx) with keys that convert to other keys on hold (z becomes ctrl when you hold it, and when this option isn't enabled, z rapidly followed by x actually sends Ctrl-x. That's bad.)
50
51 /* key combination for command */
52 #define IS_COMMAND() ( \
53     keyboard_report->mods == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
54     keyboard_report->mods == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
55 )
56
57 /* fix space cadet rollover issue */
58 #define DISABLE_SPACE_CADET_ROLLOVER
59
60 /* Set 0 if debouncing isn't needed */
61 #define DEBOUNCE    15
62
63 #define PREVENT_STUCK_MODIFIERS
64
65 #define USB_MAX_POWER_CONSUMPTION 500
66
67 #endif