]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/ergodox_infinity/config.h
Creates a layouts/ folder for keymaps shared between keyboards (#1609)
[qmk_firmware.git] / keyboards / ergodox_infinity / 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 "TMK"
29 #define USBSTR_MANUFACTURER    'T', '\x00', 'M', '\x00', 'K', '\x00', ' ', '\x00'
30 #define PRODUCT "Infinity keyboard/TMK"
31 #define USBSTR_PRODUCT         'I', '\x00', 'n', '\x00', 'f', '\x00', 'i', '\x00', 'n', '\x00', 'i', '\x00', 't', '\x00', 'y', '\x00', ' ', '\x00', 'k', '\x00', 'e', '\x00', 'y', '\x00', 'b', '\x00', 'o', '\x00', 'a', '\x00', 'r', '\x00', 'd', '\x00', '/', '\x00', 'T', '\x00', 'M', '\x00', 'K', '\x00'
32
33 #define MOUSEKEY_INTERVAL       20
34 #define MOUSEKEY_DELAY          0
35 #define MOUSEKEY_TIME_TO_MAX    60
36 #define MOUSEKEY_MAX_SPEED      7
37 #define MOUSEKEY_WHEEL_DELAY 0
38
39 #define TAPPING_TOGGLE  1
40
41 /* define if matrix has ghost */
42 //#define MATRIX_HAS_GHOST
43
44 #define TAPPING_TERM    200
45 #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.)
46
47 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
48 #define LOCKING_SUPPORT_ENABLE
49 /* Locking resynchronize hack */
50 #define LOCKING_RESYNC_ENABLE
51
52 /* key combination for command */
53 #define IS_COMMAND() ( \
54     keyboard_report->mods == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
55     keyboard_report->mods == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
56 )
57
58 /* key matrix size */
59 #define MATRIX_ROWS 18
60 #define MATRIX_COLS 5
61 #define LOCAL_MATRIX_ROWS 9
62
63 /* number of backlight levels */
64 #define BACKLIGHT_LEVELS 3
65
66 #define LED_BRIGHTNESS_LO       100
67 #define LED_BRIGHTNESS_HI       255
68
69 /* define if matrix has ghost */
70 //#define MATRIX_HAS_GHOST
71
72 /* Set 0 if debouncing isn't needed */
73 #define DEBOUNCE    5
74
75 #define SERIAL_LINK_BAUD 562500
76 #define SERIAL_LINK_THREAD_PRIORITY (NORMALPRIO - 1)
77
78 #define VISUALIZER_USER_DATA_SIZE 16
79
80 /*
81  * Feature disable options
82  *  These options are also useful to firmware size reduction.
83  */
84
85 /* disable debug print */
86 //#define NO_DEBUG
87
88 /* disable print */
89 //#define NO_PRINT
90
91 /* disable action features */
92 //#define NO_ACTION_LAYER
93 //#define NO_ACTION_TAPPING
94 //#define NO_ACTION_ONESHOT
95 //#define NO_ACTION_MACRO
96 //#define NO_ACTION_FUNCTION
97
98 #endif