2 Copyright 2019 Danny Nguyen <danny@keeb.io>
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.
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.
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/>.
20 #include "config_common.h"
22 /* USB Device descriptor parameter */
23 #define VENDOR_ID 0xCB10
24 #define PRODUCT_ID 0x1133
25 #define DEVICE_VER 0x0100
26 #define MANUFACTURER Keebio
28 #define DESCRIPTION 3x3 Macropad with Rotary Encoders
34 /* Keyboard Matrix Assignments */
36 #define MATRIX_ROW_PINS { NO_PIN }
37 #define MATRIX_COL_PINS { D2, D4, F4, D7, B1, B3, E6, B4, B2 }
39 /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
40 #define DIODE_DIRECTION COL2ROW
42 #define NUMBER_OF_ENCODERS 2
43 #define ENCODERS_PAD_A { D1, F5 }
44 #define ENCODERS_PAD_B { D0, F6 }
47 #define BACKLIGHT_PIN B5
48 // #define BACKLIGHT_BREATHING
49 #define BACKLIGHT_LEVELS 7
54 #define RGBLIGHT_HUE_STEP 8
55 #define RGBLIGHT_SAT_STEP 8
56 #define RGBLIGHT_VAL_STEP 8
57 #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
58 #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
59 /*== all animations enable ==*/
60 #define RGBLIGHT_ANIMATIONS
63 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
64 #define DEBOUNCING_DELAY 5
66 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
67 #define LOCKING_SUPPORT_ENABLE
68 /* Locking resynchronize hack */
69 #define LOCKING_RESYNC_ENABLE
71 /* key combination for magic key command */
72 #define IS_COMMAND() ( \
73 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \