]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/frenchdev/config.h
b01eec7aa08c10b8ae2e242c75c2aa6e8102b75a
[qmk_firmware.git] / keyboards / handwired / frenchdev / config.h
1 /*
2 Copyright 201 Nicolas Poirey <nicolas.poirey@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 FRENCHDEV_V1_CONFIG_H
19 #define FRENCHDEV_V1_CONFIG_H
20
21 #include "config_common.h"
22
23 /* USB Device descriptor parameter */
24 #define VENDOR_ID       0xFEED
25 #define PRODUCT_ID      0x1307
26 #define DEVICE_VER      0x0001
27 #define MANUFACTURER    Nicolas Poirey
28 #define PRODUCT         Frenchdev V1
29 #define DESCRIPTION     QMK keyboard firmware for Frenchdev
30
31 /* key matrix size */
32 #define MATRIX_ROWS 16
33 #define MATRIX_COLS 6
34
35 /* number of backlight levels */
36 #define BACKLIGHT_LEVELS 3
37
38 #define LED_BRIGHTNESS_LO       15
39 #define LED_BRIGHTNESS_HI       255
40
41 /* Set 0 if debouncing isn't needed */
42 #define DEBOUNCE    5
43
44 #define USB_MAX_POWER_CONSUMPTION 500
45
46 #define MOUSEKEY_INTERVAL       20
47 #define MOUSEKEY_DELAY          0
48 #define MOUSEKEY_TIME_TO_MAX    5
49 #define MOUSEKEY_MAX_SPEED      2
50 #define MOUSEKEY_WHEEL_DELAY 0
51
52 #define TAPPING_TOGGLE  1
53
54 /* define if matrix has ghost */
55 //#define MATRIX_HAS_GHOST
56
57 #define TAPPING_TERM    200
58 #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.)
59
60 /* key combination for command */
61 #define IS_COMMAND() ( \
62     get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
63     get_mods() == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
64 )
65
66 /*
67  * Feature disable options
68  *  These options are also useful to firmware size reduction.
69  */
70
71 /* disable debug print */
72 // #define NO_DEBUG
73
74 /* disable print */
75 // #define NO_PRINT
76
77 /* disable action features */
78 //#define NO_ACTION_LAYER
79 //#define NO_ACTION_TAPPING
80 //#define NO_ACTION_ONESHOT
81 //#define NO_ACTION_MACRO
82 //#define NO_ACTION_FUNCTION
83 //#define DEBUG_MATRIX_SCAN_RATE
84
85 #endif //FRENCHDEV_V1_CONFIG_H