]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/converter/usb_usb/config.h
restructure converters (#1825)
[qmk_firmware.git] / keyboards / converter / usb_usb / config.h
1 /*
2 Copyright 2017 Balz Guenat <balz.guenat@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 CONFIG_H
19 #define CONFIG_H
20
21 // do not #include "config_common.h" because the pin names conflict with the USB HID code.
22 // CUSTOM_MATRIX is defined it that file, though, and we need it, so we define it ourselves.
23 // It's a hack, yeah...
24
25 #define CUSTOM_MATRIX 2
26
27 /* USB Device descriptor parameter */
28 #define VENDOR_ID       0xFEED
29 #define PRODUCT_ID      0x005B
30 #define DEVICE_VER      0x0001
31 #define MANUFACTURER    QMK
32 #define PRODUCT         QMK USB-USB Converter
33 #define DESCRIPTION     USB to USB Keyboard Converter with QMK
34
35
36 /* size of virtual matrix */
37 #define MATRIX_ROWS 16
38 #define MATRIX_COLS 16
39
40 /* matrix scanning is done in custom_matrix.cpp */
41 #define DIODE_DIRECTION CUSTOM_MATRIX
42
43 /* key combination for command */
44 #define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) 
45
46 /*
47  * Feature disable options
48  *  These options are also useful to firmware size reduction.
49  */
50
51 /* disable debug print */
52 //#define NO_DEBUG
53
54 /* disable print */
55 //#define NO_PRINT
56
57 /* disable action features */
58 //#define NO_ACTION_LAYER
59 //#define NO_ACTION_TAPPING
60 //#define NO_ACTION_ONESHOT
61 //#define NO_ACTION_MACRO
62 //#define NO_ACTION_FUNCTION
63
64 #endif