]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/s60_x/config.h
qwerty_code_friendly: configurable left thumb
[qmk_firmware.git] / keyboards / s60_x / config.h
1 /*
2 Copyright 2012 Jun Wako <wakojun@gmail.com>
3 Copyright 2016 Julien Pecqueur <julien@peclu.net>
4 Copyright 2016 Felix Uhl <ifreilicht@gmail.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 CONFIG_H
21 #define CONFIG_H
22
23 #include "config_common.h"
24
25 /* USB Device descriptor parameter */
26 #define VENDOR_ID       0xFEED
27 #define PRODUCT_ID      0x6060
28 #define DEVICE_VER      0x0001
29 #define MANUFACTURER    Massdrop
30
31 /* key matrix size */
32 #define MATRIX_ROWS 5
33 #define MATRIX_COLS 15
34
35 /* number of backlight levels */
36 #define BACKLIGHT_PIN B7
37 #ifdef BACKLIGHT_PIN
38 #define BACKLIGHT_LEVELS 3
39 #endif
40
41 /* COL2ROW or ROW2COL */
42 #define DIODE_DIRECTION COL2ROW
43
44 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
45 #define DEBOUNCING_DELAY 5
46
47 /* key combination for command */
48 #define IS_COMMAND() ( \
49     keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
50 )
51
52 #ifdef SUBPROJECT_default
53     #include "default/config.h"
54 #endif
55 #ifdef SUBPROJECT_rgb
56     #include "rgb/config.h"
57 #endif
58
59 #endif