]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/keebio/bdn9/config.h
Remove the need to specify NUM_OF_ENCODERS for the Encoder feature (#6328)
[qmk_firmware.git] / keyboards / keebio / bdn9 / config.h
1 /*
2 Copyright 2019 Danny Nguyen <danny@keeb.io>
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       0xCB10
24 #define PRODUCT_ID      0x1133
25 #define DEVICE_VER      0x0100
26 #define MANUFACTURER    Keebio
27 #define PRODUCT         BDN9
28 #define DESCRIPTION     3x3 Macropad with Rotary Encoders
29
30 /* key matrix size */
31 #define MATRIX_ROWS 3
32 #define MATRIX_COLS 3
33
34 /* Keyboard Matrix Assignments */
35 #define DIRECT_PINS { \
36     { D2, D4, F4 }, \
37     { D7, B1, B3 }, \
38     { E6, B4, B2 } \
39 }
40
41 #define ENCODERS_PAD_A { D1, F5 }
42 #define ENCODERS_PAD_B { D0, F6 }
43
44
45 #define BACKLIGHT_PIN B5
46 // #define BACKLIGHT_BREATHING
47 #define BACKLIGHT_LEVELS 7
48
49 #define RGB_DI_PIN D3
50 #ifdef RGB_DI_PIN
51   #define RGBLED_NUM 4
52   #define RGBLIGHT_HUE_STEP 8
53   #define RGBLIGHT_SAT_STEP 8
54   #define RGBLIGHT_VAL_STEP 8
55   #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
56   #define RGBLIGHT_SLEEP  /* If defined, the RGB lighting will be switched off when the host goes to sleep */
57   /*== all animations enable ==*/
58   #define RGBLIGHT_ANIMATIONS
59 #endif
60
61 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
62 #define DEBOUNCE 5
63
64 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
65 #define LOCKING_SUPPORT_ENABLE
66 /* Locking resynchronize hack */
67 #define LOCKING_RESYNC_ENABLE