diff options
Diffstat (limited to 'keyboards/owlab/voice65/soldered/config.h')
-rw-r--r-- | keyboards/owlab/voice65/soldered/config.h | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/keyboards/owlab/voice65/soldered/config.h b/keyboards/owlab/voice65/soldered/config.h new file mode 100644 index 000000000..bb7ec6102 --- /dev/null +++ b/keyboards/owlab/voice65/soldered/config.h | |||
@@ -0,0 +1,89 @@ | |||
1 | /* | ||
2 | Copyright 2021 kb-elmo<mail@elmo.space> | ||
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 0x4F53 | ||
24 | #define PRODUCT_ID 0x5657 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Owl Studio | ||
27 | #define PRODUCT Voice65 | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 5 | ||
31 | #define MATRIX_COLS 15 | ||
32 | |||
33 | /* Keyboard Matrix Assignments */ | ||
34 | #define MATRIX_ROW_PINS { B0, B1, B2, B10, B11 } | ||
35 | #define MATRIX_COL_PINS { A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A15, B8, B9, B12, B13 } | ||
36 | |||
37 | /* COL2ROW, ROW2COL */ | ||
38 | #define DIODE_DIRECTION COL2ROW | ||
39 | |||
40 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
41 | #define DEBOUNCE 5 | ||
42 | /* NKRO */ | ||
43 | #ifdef NKRO_ENABLE | ||
44 | # define FORCE_NKRO | ||
45 | #endif | ||
46 | |||
47 | /* RGB stripe */ | ||
48 | #define RGB_DI_PIN B15 | ||
49 | #ifdef RGB_DI_PIN | ||
50 | # define RGBLIGHT_EFFECT_ALTERNATING | ||
51 | # define RGBLIGHT_EFFECT_BREATHING | ||
52 | # define RGBLIGHT_EFFECT_CHRISTMAS | ||
53 | # define RGBLIGHT_EFFECT_KNIGHT | ||
54 | # define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
55 | # define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
56 | # define RGBLIGHT_EFFECT_SNAKE | ||
57 | # define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
58 | # define RGBLIGHT_EFFECT_TWINKLE | ||
59 | # define RGBLED_NUM 20 | ||
60 | # define RGBLIGHT_HUE_STEP 8 | ||
61 | # define RGBLIGHT_SAT_STEP 8 | ||
62 | # define RGBLIGHT_VAL_STEP 10 | ||
63 | # define RGBLIGHT_LIMIT_VAL 180 | ||
64 | # define OWL_VOLUME_RANGE 50 | ||
65 | #endif | ||
66 | |||
67 | /* RGB matrix*/ | ||
68 | #ifdef RGB_MATRIX_ENABLE | ||
69 | # define USE_I2CV2 | ||
70 | # define RGB_MATRIX_DISABLE_KEYCODES | ||
71 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | ||
72 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | ||
73 | # define RGB_MATRIX_KEYPRESSES | ||
74 | # define RGB_MATRIX_LED_PROCESS_LIMIT 4 | ||
75 | # define RGB_MATRIX_LED_FLUSH_LIMIT 26 | ||
76 | # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 | ||
77 | # define RGB_MATRIX_STARTUP_VAL 128 | ||
78 | # define DRIVER_ADDR_1 0b0110000 | ||
79 | # define DRIVER_ADDR_2 0b0110000 | ||
80 | # define DRIVER_COUNT 2 | ||
81 | # define DRIVER_1_LED_TOTAL 71 | ||
82 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
83 | #endif | ||
84 | |||
85 | /* Encoder */ | ||
86 | #define ENCODERS_PAD_A { B4 } | ||
87 | #define ENCODERS_PAD_B { B5 } | ||
88 | #define ENCODER_RESOLUTION 4 | ||
89 | #define TAP_CODE_DELAY 10 | ||