]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/maxr1998/pulse4k/config.h
Remove the need to specify NUM_OF_ENCODERS for the Encoder feature (#6328)
[qmk_firmware.git] / keyboards / maxr1998 / pulse4k / config.h
1 /*
2 Copyright (C) 2012-2019  Jun Wako <wakojun@gmail.com>, Maxr1998 <max.rumpf1998@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       0xFEED
24 #define PRODUCT_ID      0x6060
25 #define DEVICE_VER      0x0001
26 #define MANUFACTURER    Maxr1998
27 #define PRODUCT         Pulse 4k
28 #define DESCRIPTION     A four-key macropad
29
30 /* Key matrix size */
31 #define MATRIX_ROWS 2
32 #define MATRIX_COLS 3
33
34 /* Matrix pins */
35 #define MATRIX_ROW_PINS { B4, E6 }
36 #define MATRIX_COL_PINS { B7, B3, F0 }
37 #define UNUSED_PINS
38
39 /* COL2ROW or ROW2COL */
40 #define DIODE_DIRECTION COL2ROW
41
42 /* Set 0 if debouncing isn't needed */
43 #define DEBOUNCE 5
44
45 /* Rotary encoders */
46 #define ENCODERS_PAD_A { D2, F6 }
47 #define ENCODERS_PAD_B { D3, F5 }
48 #define ENCODER_RESOLUTION 4
49
50 /* Combo setup */
51 #define COMBO_COUNT 1
52 #define COMBO_TERM 150
53
54 /* RGB LED Setup */
55 #define RGB_DI_PIN          F7 // pin the DI on the WS2812B is hooked-up to
56 #define RGBLIGHT_ANIMATIONS    // run RGB animations
57 #define RGBLED_NUM          2  // number of LEDs
58
59 /*
60  * Feature disable options
61  *  These options are also useful to firmware size reduction.
62  */
63
64 /* disable debug print */
65 //#define NO_DEBUG
66
67 /* disable print */
68 //#define NO_PRINT
69
70 /* disable action features */
71 //#define NO_ACTION_LAYER
72 //#define NO_ACTION_TAPPING
73 //#define NO_ACTION_ONESHOT
74 //#define NO_ACTION_MACRO
75 //#define NO_ACTION_FUNCTION