]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/keebio/bdn9/config.h
19e625348de30662a5f6ff41d2a8e348a28f1673
[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 NUMBER_OF_ENCODERS 2
42 #define ENCODERS_PAD_A { D1, F5 }
43 #define ENCODERS_PAD_B { D0, F6 }
44
45
46 #define BACKLIGHT_PIN B5
47 // #define BACKLIGHT_BREATHING
48 #define BACKLIGHT_LEVELS 7
49
50 #define RGB_DI_PIN D3
51 #ifdef RGB_DI_PIN
52   #define RGBLED_NUM 4
53   #define RGBLIGHT_HUE_STEP 8
54   #define RGBLIGHT_SAT_STEP 8
55   #define RGBLIGHT_VAL_STEP 8
56   #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
57   #define RGBLIGHT_SLEEP  /* If defined, the RGB lighting will be switched off when the host goes to sleep */
58   /*== all animations enable ==*/
59   #define RGBLIGHT_ANIMATIONS
60 #endif
61
62 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
63 #define DEBOUNCE 5
64
65 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
66 #define LOCKING_SUPPORT_ENABLE
67 /* Locking resynchronize hack */
68 #define LOCKING_RESYNC_ENABLE