]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/ergodox_infinity/keymaps/halfkeyboard/config.h
187ce87034e3645775a648b5c7c85436f0fe9eed
[qmk_firmware.git] / keyboards / ergodox_infinity / keymaps / halfkeyboard / config.h
1 /*
2 Copyright 2015 Jun Wako <wakojun@gmail.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 #ifndef INFINITY_ERGODOX_CONFIG_H
19 #define INFINITY_ERGODOX_CONFIG_H
20
21
22 /* USB Device descriptor parameter */
23 #define VENDOR_ID       0xFEED
24 #define PRODUCT_ID      0x6464
25 #define DEVICE_VER      0x0001
26 /* in python2: list(u"whatever".encode('utf-16-le')) */
27 /*   at most 32 characters or the ugly hack in usb_main.c borks */
28 #define MANUFACTURER "QMK"
29 #define PRODUCT "Infinity keyboard/QMK"
30
31 #define MOUSEKEY_INTERVAL       20
32 #define MOUSEKEY_DELAY          0
33 #define MOUSEKEY_TIME_TO_MAX    60
34 #define MOUSEKEY_MAX_SPEED      7
35 #define MOUSEKEY_WHEEL_DELAY 0
36
37 #define TAPPING_TOGGLE  1
38
39 /* define if matrix has ghost */
40 //#define MATRIX_HAS_GHOST
41
42 #define TAPPING_TERM    200
43 #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.)
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 /* key combination for command */
51 #define IS_COMMAND() ( \
52     keyboard_report->mods == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
53     keyboard_report->mods == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
54 )
55
56 /* key matrix size */
57 #define MATRIX_ROWS 18
58 #define MATRIX_COLS 5
59 #define LOCAL_MATRIX_ROWS 9
60
61 /* number of backlight levels */
62 #define BACKLIGHT_LEVELS 3
63
64 #define LED_BRIGHTNESS_LO       100
65 #define LED_BRIGHTNESS_HI       255
66
67 /* define if matrix has ghost */
68 //#define MATRIX_HAS_GHOST
69
70 /* Set 0 if debouncing isn't needed */
71 #define DEBOUNCE    5
72
73 #define SERIAL_LINK_BAUD 562500
74 #define SERIAL_LINK_THREAD_PRIORITY (NORMALPRIO - 1)
75
76 #define VISUALIZER_USER_DATA_SIZE 16
77 /*
78  * music mode options
79  * midi enabled
80  * keymask disabled
81  * so typing normally will result in music
82  *
83  */
84 #define MUSIC_MASK keycode != KC_NO
85 /*
86  * Feature disable options
87  *  These options are also useful to firmware size reduction.
88  */
89
90 /* disable debug print */
91 //#define NO_DEBUG
92
93 /* disable print */
94 //#define NO_PRINT
95
96 /* disable action features */
97 //#define NO_ACTION_LAYER
98 //#define NO_ACTION_TAPPING
99 //#define NO_ACTION_ONESHOT
100 //#define NO_ACTION_MACRO
101 //#define NO_ACTION_FUNCTION
102
103 #endif