aboutsummaryrefslogtreecommitdiff
path: root/keyboards/helix/rev3_4rows/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/helix/rev3_4rows/config.h')
-rw-r--r--keyboards/helix/rev3_4rows/config.h245
1 files changed, 245 insertions, 0 deletions
diff --git a/keyboards/helix/rev3_4rows/config.h b/keyboards/helix/rev3_4rows/config.h
new file mode 100644
index 000000000..d2de347b9
--- /dev/null
+++ b/keyboards/helix/rev3_4rows/config.h
@@ -0,0 +1,245 @@
1/*
2Copyright 2020 yushakobo
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#include <stdio.h>
22
23/* USB Device descriptor parameter */
24#define VENDOR_ID 0x3265 //yushakobo
25#define PRODUCT_ID 0x0004 //Helix rev3 4rows
26#define DEVICE_VER 0x0001
27#define MANUFACTURER yushakobo
28#define PRODUCT Helix rev3 4rows
29
30/* key matrix size */
31#define MATRIX_ROWS 8
32#define MATRIX_COLS 7
33
34/*
35 * Keyboard Matrix Assignments
36 *
37 * Change this to how you wired your keyboard
38 * COLS: AVR pins used for columns, left to right
39 * ROWS: AVR pins used for rows, top to bottom
40 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
41 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
42 *
43 */
44#define MATRIX_ROW_PINS { D4, C6, D7, E6 }
45#define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 }
46#define UNUSED_PINS
47
48/* COL2ROW, ROW2COL*/
49#define DIODE_DIRECTION COL2ROW
50
51/* Split hand configration */
52#define SPLIT_HAND_MATRIX_GRID D7,B2
53
54/* Dip switch on matrix grid */
55#define DIP_SWITCH_MATRIX_GRID { {0,6}, {1,6}, {5,6}, {6,6} }
56
57/*
58 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
59 */
60#define SOFT_SERIAL_PIN D2 // or D1, D2, D3, E6
61
62#define RGB_DI_PIN D3
63#define RGBLED_NUM 50 // Number of LEDs
64
65#ifdef RGB_MATRIX_ENABLE
66 #define DRIVER_LED_TOTAL RGBLED_NUM
67# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
68// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
69// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
70# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
71# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
72// # 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)
73// # 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)
74# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
75# define RGB_MATRIX_HUE_STEP 8
76# define RGB_MATRIX_SAT_STEP 8
77# define RGB_MATRIX_VAL_STEP 8
78# define RGB_MATRIX_SPD_STEP 10
79#endif
80
81#ifdef RGBLIGHT_ENABLE
82 #define RGBLIGHT_SPLIT
83 #define RGBLED_SPLIT { 25, 25 }
84// #define RGBLIGHT_HUE_STEP 8
85// #define RGBLIGHT_SAT_STEP 8
86// #define RGBLIGHT_VAL_STEP 8
87 #define RGBLIGHT_LIMIT_VAL 120 /* The maximum brightness level */
88// #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
89// /*== all animations enable ==*/
90// #define RGBLIGHT_ANIMATIONS
91// /*== or choose animations ==*/
92// #define RGBLIGHT_EFFECT_BREATHING
93 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
94 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
95// #define RGBLIGHT_EFFECT_SNAKE
96// #define RGBLIGHT_EFFECT_KNIGHT
97// #define RGBLIGHT_EFFECT_CHRISTMAS
98 #define RGBLIGHT_EFFECT_STATIC_GRADIENT
99 #define RGBLIGHT_EFFECT_RGB_TEST
100// #define RGBLIGHT_EFFECT_ALTERNATING
101#endif
102
103/* Custom font */
104#define OLED_FONT_H "keyboards/helix/common/glcdfont.c"
105
106/* Encorder */
107#define ENCODERS_PAD_A { B6 }
108#define ENCODERS_PAD_B { B5 }
109
110/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
111#define DEBOUNCE 5
112
113/* define if matrix has ghost (lacks anti-ghosting diodes) */
114//#define MATRIX_HAS_GHOST
115
116/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
117#define LOCKING_SUPPORT_ENABLE
118/* Locking resynchronize hack */
119#define LOCKING_RESYNC_ENABLE
120
121/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
122 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
123 */
124// #define GRAVE_ESC_CTRL_OVERRIDE
125
126/*
127 * Force NKRO
128 *
129 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
130 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
131 * makefile for this to work.)
132 *
133 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
134 * until the next keyboard reset.
135 *
136 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
137 * fully operational during normal computer usage.
138 *
139 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
140 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
141 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
142 * power-up.
143 *
144 */
145//#define FORCE_NKRO
146
147/*
148 * Magic Key Options
149 *
150 * Magic keys are hotkey commands that allow control over firmware functions of
151 * the keyboard. They are best used in combination with the HID Listen program,
152 * found here: https://www.pjrc.com/teensy/hid_listen.html
153 *
154 * The options below allow the magic key functionality to be changed. This is
155 * useful if your keyboard/keypad is missing keys and you want magic key support.
156 *
157 */
158
159/* key combination for magic key command */
160/* defined by default; to change, uncomment and set to the combination you want */
161// #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT)
162
163/* control how magic key switches layers */
164//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
165//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
166//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
167
168/* override magic key keymap */
169//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
170//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
171//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
172//#define MAGIC_KEY_HELP H
173//#define MAGIC_KEY_HELP_ALT SLASH
174//#define MAGIC_KEY_DEBUG D
175//#define MAGIC_KEY_DEBUG_MATRIX X
176//#define MAGIC_KEY_DEBUG_KBD K
177//#define MAGIC_KEY_DEBUG_MOUSE M
178//#define MAGIC_KEY_VERSION V
179//#define MAGIC_KEY_STATUS S
180//#define MAGIC_KEY_CONSOLE C
181//#define MAGIC_KEY_LAYER0 0
182//#define MAGIC_KEY_LAYER0_ALT GRAVE
183//#define MAGIC_KEY_LAYER1 1
184//#define MAGIC_KEY_LAYER2 2
185//#define MAGIC_KEY_LAYER3 3
186//#define MAGIC_KEY_LAYER4 4
187//#define MAGIC_KEY_LAYER5 5
188//#define MAGIC_KEY_LAYER6 6
189//#define MAGIC_KEY_LAYER7 7
190//#define MAGIC_KEY_LAYER8 8
191//#define MAGIC_KEY_LAYER9 9
192//#define MAGIC_KEY_BOOTLOADER B
193//#define MAGIC_KEY_BOOTLOADER_ALT ESC
194//#define MAGIC_KEY_LOCK CAPS
195//#define MAGIC_KEY_EEPROM E
196//#define MAGIC_KEY_EEPROM_CLEAR BSPACE
197//#define MAGIC_KEY_NKRO N
198//#define MAGIC_KEY_SLEEP_LED Z
199
200/*
201 * Feature disable options
202 * These options are also useful to firmware size reduction.
203 */
204
205/* disable debug print */
206//#define NO_DEBUG
207
208/* disable print */
209//#define NO_PRINT
210
211/* disable action features */
212//#define NO_ACTION_LAYER
213//#define NO_ACTION_TAPPING
214//#define NO_ACTION_ONESHOT
215
216/* disable these deprecated features by default */
217#define NO_ACTION_MACRO
218#define NO_ACTION_FUNCTION
219
220/*
221 * MIDI options
222 */
223
224/* Prevent use of disabled MIDI features in the keymap */
225//#define MIDI_ENABLE_STRICT 1
226
227/* enable basic MIDI features:
228 - MIDI notes can be sent when in Music mode is on
229*/
230//#define MIDI_BASIC
231
232/* enable advanced MIDI features:
233 - MIDI notes can be added to the keymap
234 - Octave shift and transpose
235 - Virtual sustain, portamento, and modulation wheel
236 - etc.
237*/
238//#define MIDI_ADVANCED
239
240/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
241//#define MIDI_TONE_KEYCODE_OCTAVES 1
242
243/* Bootmagic Lite key configuration */
244// #define BOOTMAGIC_LITE_ROW 0
245// #define BOOTMAGIC_LITE_COLUMN 0