]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/touchpad/config.h
Adds support for JacoBurge's TouchPad (#4186)
[qmk_firmware.git] / keyboards / touchpad / config.h
1 /*
2 Copyright 2018 Jack Humbert <jack.humb@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 #pragma once
19
20 #include "config_common.h"
21
22 /* USB Device descriptor parameter */
23 #define VENDOR_ID       0x16D0
24 #define PRODUCT_ID      0x0DB8
25 #define DEVICE_VER      0x0001
26 #define MANUFACTURER    JacoBurge
27 #define PRODUCT         TouchPad
28 #define DESCRIPTION     A capacitive touchpad
29
30 /* key matrix size */
31 #define MATRIX_ROWS 6
32 #define MATRIX_COLS 6
33
34
35 /* define if matrix has ghost */
36 //#define MATRIX_HAS_GHOST
37
38 /* number of backlight levels */
39 #define BACKLIGHT_LEVELS 3
40
41 /* Set 0 if debouncing isn't needed */
42 #define DEBOUNCING_DELAY 5
43
44 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
45 #define LOCKING_SUPPORT_ENABLE
46 /* Locking resynchronize hack */
47 #define LOCKING_RESYNC_ENABLE
48
49 /* key combination for command */
50 #define IS_COMMAND() ( \
51     keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
52 )
53
54 /*
55  * Feature disable options
56  *  These options are also useful to firmware size reduction.
57  */
58
59 /* disable debug print */
60 //#define NO_DEBUG
61
62 /* disable print */
63 //#define NO_PRINT
64
65 /* disable action features */
66 //#define NO_ACTION_LAYER
67 //#define NO_ACTION_TAPPING
68 //#define NO_ACTION_ONESHOT
69 //#define NO_ACTION_MACRO
70 //#define NO_ACTION_FUNCTION