diff options
Diffstat (limited to 'keyboards/nknl7jp/config.h')
-rw-r--r-- | keyboards/nknl7jp/config.h | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/keyboards/nknl7jp/config.h b/keyboards/nknl7jp/config.h new file mode 100644 index 000000000..7fb3c0e9c --- /dev/null +++ b/keyboards/nknl7jp/config.h | |||
@@ -0,0 +1,84 @@ | |||
1 | /* | ||
2 | Copyright 2021 Salicylic_Acid | ||
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 0x04D8 | ||
24 | #define PRODUCT_ID 0xEA55 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Salicylic_Acid | ||
27 | #define PRODUCT nknl7jp | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 10 | ||
31 | #define MATRIX_COLS 9 | ||
32 | |||
33 | // wiring of each half | ||
34 | #define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 } | ||
35 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B5, D2 } | ||
36 | |||
37 | #define DIODE_DIRECTION COL2ROW | ||
38 | |||
39 | /* Set 0 if debouncing isn't needed */ | ||
40 | #define DEBOUNCE 5 | ||
41 | |||
42 | /* serial.c configuration for split keyboard */ | ||
43 | #define SOFT_SERIAL_PIN D0 | ||
44 | #define SPLIT_HAND_PIN B6 | ||
45 | |||
46 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
47 | #define LOCKING_SUPPORT_ENABLE | ||
48 | /* Locking resynchronize hack */ | ||
49 | #define LOCKING_RESYNC_ENABLE | ||
50 | |||
51 | /* ws2812 RGB LED */ | ||
52 | #define RGB_DI_PIN D3 | ||
53 | |||
54 | #ifndef RGBLED_NUM | ||
55 | #define RGBLED_NUM 20 | ||
56 | #define RGBLIGHT_SPLIT | ||
57 | #define RGBLED_SPLIT { 9, 11 } | ||
58 | #endif | ||
59 | |||
60 | #define RGBLIGHT_ANIMATIONS | ||
61 | |||
62 | #ifndef IOS_DEVICE_ENABLE | ||
63 | #define RGBLIGHT_LIMIT_VAL 180 | ||
64 | #define RGBLIGHT_VAL_STEP 17 | ||
65 | #else | ||
66 | #define RGBLIGHT_LIMIT_VAL 50 | ||
67 | #define RGBLIGHT_VAL_STEP 4 | ||
68 | #endif | ||
69 | #define RGBLIGHT_HUE_STEP 10 | ||
70 | #define RGBLIGHT_SAT_STEP 17 | ||
71 | |||
72 | #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE) | ||
73 | // USB_MAX_POWER_CONSUMPTION value for naked48 keyboard | ||
74 | // 120 RGBoff, OLEDoff | ||
75 | // 120 OLED | ||
76 | // 330 RGB 6 | ||
77 | // 300 RGB 32 | ||
78 | // 310 OLED & RGB 32 | ||
79 | #define USB_MAX_POWER_CONSUMPTION 400 | ||
80 | #else | ||
81 | // fix iPhone and iPad power adapter issue | ||
82 | // iOS device need lessthan 100 | ||
83 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
84 | #endif | ||