]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/dactyl/config.h
Fix Command feature: use get_mods() instead of keyboard_report->mods (#4955)
[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 #define DIODE_DIRECTION ROW2COL
34 #define MATRIX_ROWS 6
35 #define MATRIX_COLS 12
36 #define COL_EXPANDED { true, true, true, true, true, true, false, false, false, false, false, false}
37 #define MATRIX_ONBOARD_ROW_PINS { F0, F1, F4, F5, F6, F7 }
38 #define MATRIX_ONBOARD_COL_PINS { 0, 0, 0, 0, 0, 0, B1, B2, B3, D2, D3, C6 }
39 #define EXPANDER_COL_REGISTER 0
40 #define MATRIX_EXPANDER_COL_PINS {0, 1, 2, 3, 4, 5}
41 #define MATRIX_EXPANDER_ROW_PINS {0, 1, 2, 3, 4, 5}
42
43 #define MOUSEKEY_INTERVAL     20
44 #define MOUSEKEY_DELAY        0
45 #define MOUSEKEY_TIME_TO_MAX  60
46 #define MOUSEKEY_MAX_SPEED    7
47 #define MOUSEKEY_WHEEL_DELAY  0
48
49 #define TAPPING_TOGGLE  1
50
51 #define TAPPING_TERM    200
52 #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.)
53
54 /* key combination for command */
55 #define IS_COMMAND() ( \
56     get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
57     get_mods() == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
58 )
59
60 /* fix space cadet rollover issue */
61 #define DISABLE_SPACE_CADET_ROLLOVER
62
63 /* Set 0 if debouncing isn't needed */
64 #define DEBOUNCE    15
65
66 #define USB_MAX_POWER_CONSUMPTION 500
67
68 #endif