]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/maxr1998/pulse4k/config.h
cb4eab6995b17fc67a1f8413f214ab13d978f39b
[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 NUMBER_OF_ENCODERS 2
47 #define ENCODERS_PAD_A { D2, F6 }
48 #define ENCODERS_PAD_B { D3, F5 }
49 #define ENCODER_RESOLUTION 4
50
51 /* Combo setup */
52 #define COMBO_COUNT 1
53 #define COMBO_TERM 150
54
55 /* RGB LED Setup */
56 #define RGB_DI_PIN          F7 // pin the DI on the WS2812B is hooked-up to
57 #define RGBLIGHT_ANIMATIONS    // run RGB animations
58 #define RGBLED_NUM          2  // number of LEDs
59
60 /*
61  * Feature disable options
62  *  These options are also useful to firmware size reduction.
63  */
64
65 /* disable debug print */
66 //#define NO_DEBUG
67
68 /* disable print */
69 //#define NO_PRINT
70
71 /* disable action features */
72 //#define NO_ACTION_LAYER
73 //#define NO_ACTION_TAPPING
74 //#define NO_ACTION_ONESHOT
75 //#define NO_ACTION_MACRO
76 //#define NO_ACTION_FUNCTION