aboutsummaryrefslogtreecommitdiff
path: root/keyboards/splitkb/zima/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/splitkb/zima/config.h')
-rw-r--r--keyboards/splitkb/zima/config.h93
1 files changed, 93 insertions, 0 deletions
diff --git a/keyboards/splitkb/zima/config.h b/keyboards/splitkb/zima/config.h
new file mode 100644
index 000000000..b39ef7308
--- /dev/null
+++ b/keyboards/splitkb/zima/config.h
@@ -0,0 +1,93 @@
1/*
2Copyright 2019 Thomas Baart
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along 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 0xFEED
24#define PRODUCT_ID 0xF75B
25#define DEVICE_VER 0x0001
26#define MANUFACTURER splitkb
27#define PRODUCT Zima
28
29/* key matrix size */
30#define MATRIX_ROWS 4
31#define MATRIX_COLS 3
32
33/*
34 * Keyboard Matrix Assignments
35 */
36#define DIRECT_PINS { \
37 { C6, D6, D5 }, \
38 { C7, F7, D4 }, \
39 { E6, F5, F6 }, \
40 { F0, F1, F4 } \
41}
42
43#define UNUSED_PINS
44
45#define ENCODERS_PAD_A { B4 }
46#define ENCODERS_PAD_B { D7 }
47
48// #define QMK_ESC_OUTPUT B7
49// #define QMK_ESC_INPUT C6
50// #define QMK_SPEAKER B6
51
52#define B6_AUDIO
53#define AUDIO_CLICKY
54#define NO_MUSIC_MODE
55
56#define RGB_DI_PIN B5
57#define RGBLED_NUM 5
58#define RGBLIGHT_HUE_STEP 8
59#define RGBLIGHT_SAT_STEP 8
60#define RGBLIGHT_VAL_STEP 8
61#define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
62#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
63#define RGBLIGHT_EFFECT_BREATHING
64#define RGBLIGHT_EFFECT_RAINBOW_MOOD
65#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
66#define RGBLIGHT_EFFECT_STATIC_GRADIENT
67#define RGBLIGHT_EFFECT_TWINKLE
68
69/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
70#define DEBOUNCE 5
71
72/* define if matrix has ghost (lacks anti-ghosting diodes) */
73//#define MATRIX_HAS_GHOST
74
75/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
76// #define LOCKING_SUPPORT_ENABLE
77/* Locking resynchronize hack */
78// #define LOCKING_RESYNC_ENABLE
79
80#define FB_ERM_LRA 0
81#define FB_BRAKEFACTOR 3 /* For 1x:0, 2x:1, 3x:2, 4x:3, 6x:4, 8x:5, 16x:6, Disable Braking:7 */
82#define FB_LOOPGAIN 1 /* For Low:0, Medium:1, High:2, Very High:3 */
83
84/* Please refer to your datasheet for the optimal setting for your specific motor. */
85#define RATED_VOLTAGE 3
86#define V_PEAK 5
87
88#define DRV_GREETING alert_750ms
89#define DRV_MODE_DEFAULT buzz
90// EC11K encoders have a different resolution than other EC11 encoders.
91// When using the default resolution of 4, if you notice your encoder skipping
92// every other tick, lower the resolution to 2.
93#define ENCODER_RESOLUTION 2