aboutsummaryrefslogtreecommitdiff
path: root/keyboards/sofle/keyhive/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/sofle/keyhive/config.h')
-rwxr-xr-xkeyboards/sofle/keyhive/config.h105
1 files changed, 105 insertions, 0 deletions
diff --git a/keyboards/sofle/keyhive/config.h b/keyboards/sofle/keyhive/config.h
new file mode 100755
index 000000000..14303be41
--- /dev/null
+++ b/keyboards/sofle/keyhive/config.h
@@ -0,0 +1,105 @@
1/* Copyright
2 * 2021 solartempest
3 * 2021 QMK
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#pragma once
20#include "config_common.h"
21
22// USB Device descriptor parameter
23
24#define VENDOR_ID 0xFC32
25#define PRODUCT_ID 0x1287
26#define DEVICE_VER 0x0002
27#define MANUFACTURER Keyhive
28#define PRODUCT Sofle // VIA version for this PCB is incorrect for the bottom row
29
30// Key matrix size
31// Rows are doubled-up. Added extra column for rotary encoder VIA mapping.
32#define MATRIX_ROWS 10
33#define MATRIX_COLS 6
34
35// wiring of each half
36#define MATRIX_ROW_PINS \
37 { C6, D7, E6, B4, B5 }
38#define MATRIX_COL_PINS \
39 { B6, B2, B3, B1, F7, F6 }
40#define MATRIX_ROW_PINS_RIGHT \
41 { C6, D7, E6, B4, B5 }
42#define MATRIX_COL_PINS_RIGHT \
43 { F6, F7, B1, B3, B2, B6 }
44
45#define DIODE_DIRECTION COL2ROW
46
47#define DEBOUNCE 5
48
49// Encoder support
50#define ENCODERS_PAD_A \
51 { F5 }
52#define ENCODERS_PAD_B \
53 { F4 }
54#define ENCODERS_PAD_A_RIGHT \
55 { F4 }
56#define ENCODERS_PAD_B_RIGHT \
57 { F5 }
58#define ENCODER_RESOLUTIONS \
59 { 4, 2 } // Left encoder seems to have double-output issue but right does not.
60
61#define TAP_CODE_DELAY 10
62
63// Communication between sides
64#define SOFT_SERIAL_PIN D2
65
66// OLED settings
67#define OLED_TIMEOUT 80000
68#define OLED_BRIGHTNESS 90
69
70#define SPLIT_WPM_ENABLE
71#define SPLIT_OLED_ENABLE
72#define SPLIT_TRANSPORT_MIRROR
73
74// Add RGB underglow
75#define RGB_DI_PIN D3
76#define RGBLED_NUM 74
77#define RGBLED_SPLIT \
78 { 37, 37 }
79
80#define RGBLIGHT_LIMIT_VAL 160 // Power draw may exceed 0.6A at max brightness with white colour.
81#define RGBLIGHT_LAYERS
82#define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF
83#define RGBLIGHT_SLEEP
84
85#define DRIVER_LED_TOTAL RGBLED_NUM
86#define RGB_MATRIX_SPLIT RGBLED_SPLIT
87
88#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
89#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
90#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
91#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
92// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
93// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
94#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
95#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
96// # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
97// # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
98#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
99
100#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_GRADIENT_LEFT_RIGHT
101
102#define RGB_MATRIX_HUE_STEP 8
103#define RGB_MATRIX_SAT_STEP 8
104#define RGB_MATRIX_VAL_STEP 8
105#define RGB_MATRIX_SPD_STEP 10