diff options
author | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
commit | dc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch) | |
tree | 4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/0xcb/1337/config.h |
Diffstat (limited to 'keyboards/0xcb/1337/config.h')
-rw-r--r-- | keyboards/0xcb/1337/config.h | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/keyboards/0xcb/1337/config.h b/keyboards/0xcb/1337/config.h new file mode 100644 index 000000000..d134d1ab4 --- /dev/null +++ b/keyboards/0xcb/1337/config.h | |||
@@ -0,0 +1,84 @@ | |||
1 | /* | ||
2 | Copyright 2021 0xCB - Conor Burns | ||
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 | #pragma once | ||
18 | |||
19 | #include "config_common.h" | ||
20 | // clang-format off | ||
21 | |||
22 | /* USB Device descriptor parameter */ | ||
23 | #define VENDOR_ID 0xCB00 | ||
24 | #define PRODUCT_ID 0x1337 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER 0xCB | ||
27 | #define PRODUCT 1337 | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 3 | ||
31 | #define MATRIX_COLS 3 | ||
32 | |||
33 | /* Keyboard Matrix Assignments */ | ||
34 | #define DIRECT_PINS { \ | ||
35 | { D2, D4, F4 }, \ | ||
36 | { D7, B1, B3 }, \ | ||
37 | { E6, B4, B2 } \ | ||
38 | } | ||
39 | #define TAP_CODE_DELAY 10 | ||
40 | #define ENCODER_RESOLUTION 4 | ||
41 | #define ENCODERS_PAD_A { F6 } | ||
42 | #define ENCODERS_PAD_B { F5 } | ||
43 | |||
44 | #define BACKLIGHT_PIN B5 | ||
45 | #define BACKLIGHT_BREATHING | ||
46 | #define BACKLIGHT_LEVELS 7 | ||
47 | |||
48 | #define RGB_DI_PIN D3 | ||
49 | #ifdef RGB_DI_PIN | ||
50 | #define RGBLED_NUM 4 | ||
51 | #define RGBLIGHT_HUE_STEP 8 | ||
52 | #define RGBLIGHT_SAT_STEP 8 | ||
53 | #define RGBLIGHT_VAL_STEP 8 | ||
54 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
55 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
56 | #define RGBLIGHT_ANIMATIONS /* comment this and uncomment the lines below to save space */ | ||
57 | // #define RGBLIGHT_EFFECT_BREATHING | ||
58 | // #define RGBLIGHT_EFFECT_SNAKE | ||
59 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
60 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
61 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
62 | /* default setup after eeprom reset */ | ||
63 | #define RGBLIGHT_DEFAULT_MODE RGBLIGHT_EFFECT_BREATHING + 2 | ||
64 | #define RGBLIGHT_DEFAULT_HUE 152 | ||
65 | #define RGBLIGHT_DEFAULT_SAT 232 | ||
66 | #define RGBLIGHT_DEFAULT_VAR 255 | ||
67 | #define RGBLIGHT_DEFAULT_SPD 2 | ||
68 | #endif | ||
69 | // clang-format on | ||
70 | |||
71 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
72 | #define DEBOUNCE 5 | ||
73 | |||
74 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
75 | #define LOCKING_SUPPORT_ENABLE | ||
76 | /* Locking resynchronize hack */ | ||
77 | #define LOCKING_RESYNC_ENABLE | ||
78 | /* Oled Size */ | ||
79 | #define OLED_DISPLAY_128X64 | ||
80 | #define OLED_FONT_END 255 | ||
81 | #define OLED_FONT_H "gfxfont.c" | ||
82 | |||
83 | /* QMK DFU */ | ||
84 | #define QMK_LED B0 | ||