aboutsummaryrefslogtreecommitdiff
path: root/keyboards/helix/rev3_5rows/config.h
diff options
context:
space:
mode:
authorMakotoKurauchi <pluis@me.com>2020-10-12 11:37:31 +0900
committerGitHub <noreply@github.com>2020-10-12 11:37:31 +0900
commit4f923b1673fe35644af3dfe5c8e2a766116e0012 (patch)
treeb2890b314456bb0c456cb73133b1e996a925e29a /keyboards/helix/rev3_5rows/config.h
parentcacf495c91c7f6ad0e31edcefa8355eba98f75b6 (diff)
downloadqmk_firmware-4f923b1673fe35644af3dfe5c8e2a766116e0012.tar.gz
qmk_firmware-4f923b1673fe35644af3dfe5c8e2a766116e0012.zip
[Keyboard] Add Helix rev3 (#10297)
* add Helix Type-R keyboard * add default 4Rows keymaps * cleanup 4row keymaps * update about SPLIT_HAND_MATRIX_GRID and DIP_SWITCH_MATRIX_GRID * change how to toggle mac/win * update "Hardware Availability" * add a section of "How to build" * update "Hardware Supported" * add dip-sw sections * comment updated in function `encoder_update_user` * revert how to toggle mac/win * remove 4Rows variant build options * rename helix_type_r to helix_5r * add helix type-R 4Rows edition * small modifications in keymap.c * small modifications according to renaming * change project root directory * continuous work on ee2c39f1f9bffd97a2deb8f430746933a8d8684c * cleanup unused files * update info.json files * cleanup 5rows' keymaps * rename and update readme.md * update config.h * update helix's readme.md and rules.mk * update keymaps' overviews * split into each keyboard * optimize firmware size for via keymaps * fix LAYOUT to LAYOUT4 in 4rows/rev3.h * remove LAYOUT_kc lines from both keymaps * rename tyep-r to rev3 * enable to SPLIT_HAND_MATRIX_GRID_LOW_IS_RIGHT * remove image from readme * clean up for PR * delete unnecessary comments * change keyboard directory * rename LAYOUT4 to LAYOUT for rev3_4rows * Update keyboards/helix/rev3_4rows/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/helix/rev3_4rows/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/helix/rev3_4rows/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/helix/rev3_4rows/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/helix/rev3_4rows/keymaps/via/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/helix/rev3_4rows/keymaps/via/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/helix/rev3_4rows/keymaps/via/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/helix/rev3_4rows/rules.mk Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/helix/rev3_5rows/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/helix/rev3_5rows/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/helix/rev3_5rows/keymaps/via/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/helix/rev3_5rows/keymaps/via/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/helix/rev3_5rows/keymaps/via/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/helix/rev3_5rows/rules.mk Co-authored-by: Drashna Jaelre <drashna@live.com> * Cleanup ADJUST Layer code for VIA * change SEND_STRING to tap_code * update readme * moved the oled code from the keymap to the keyboard * moved the dip switch code from the keymap to the keyboard * change layout name for info.json * Update keyboards/helix/rev3_4rows/rev3_4rows.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_4rows/rev3_4rows.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_4rows/rev3_4rows.h Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_5rows/rev3_5rows.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_5rows/rev3_5rows.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_5rows/keymaps/default/keymap.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_5rows/keymaps/via/keymap.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_5rows/keymaps/via/keymap.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_5rows/oled_display.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_5rows/keymaps/default/keymap.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_5rows/rev3_5rows.h Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_4rows/keymaps/default/keymap.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_4rows/keymaps/default/keymap.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_4rows/keymaps/via/keymap.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_4rows/keymaps/via/keymap.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_4rows/oled_display.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_4rows/oled_display.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/helix/rev3_5rows/config.h Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/helix/rev3_5rows/info.json Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/helix/rev3_4rows/oled_display.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_5rows/oled_display.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rules.mk Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/helix/rev3_4rows/config.h Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * Update keyboards/helix/rev3_4rows/oled_display.c Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> * deleted key_count in info.json Co-authored-by: keyaki-namiki <28521374+keyaki-namiki@users.noreply.github.com> Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Takeshi ISHII <2170248+mtei@users.noreply.github.com> Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'keyboards/helix/rev3_5rows/config.h')
-rw-r--r--keyboards/helix/rev3_5rows/config.h246
1 files changed, 246 insertions, 0 deletions
diff --git a/keyboards/helix/rev3_5rows/config.h b/keyboards/helix/rev3_5rows/config.h
new file mode 100644
index 000000000..bea914000
--- /dev/null
+++ b/keyboards/helix/rev3_5rows/config.h
@@ -0,0 +1,246 @@
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 0x0003 //Helix rev3 5rows
26#define DEVICE_VER 0x0001
27#define MANUFACTURER yushakobo
28#define PRODUCT Helix rev3 5rows
29
30/* key matrix size */
31#define MATRIX_ROWS 10
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, B4 }
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#define SPLIT_HAND_MATRIX_GRID_LOW_IS_RIGHT
54
55/* Dip switch on matrix grid */
56#define DIP_SWITCH_MATRIX_GRID { {0,6}, {1,6}, {5,6}, {6,6} }
57
58/*
59 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
60 */
61#define SOFT_SERIAL_PIN D2 // or D1, D2, D3, E6
62
63#define RGB_DI_PIN D3
64#define RGBLED_NUM 64 // Number of LEDs
65
66#ifdef RGB_MATRIX_ENABLE
67 #define DRIVER_LED_TOTAL RGBLED_NUM
68# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
69// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
70// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
71# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
72# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
73// # 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)
74// # 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)
75# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
76# define RGB_MATRIX_HUE_STEP 8
77# define RGB_MATRIX_SAT_STEP 8
78# define RGB_MATRIX_VAL_STEP 8
79# define RGB_MATRIX_SPD_STEP 10
80#endif
81
82#ifdef RGBLIGHT_ENABLE
83 #define RGBLIGHT_SPLIT
84 #define RGBLED_SPLIT { 32, 32 }
85// #define RGBLIGHT_HUE_STEP 8
86// #define RGBLIGHT_SAT_STEP 8
87// #define RGBLIGHT_VAL_STEP 8
88 #define RGBLIGHT_LIMIT_VAL 120 /* The maximum brightness level */
89// #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
90// /*== all animations enable ==*/
91// #define RGBLIGHT_ANIMATIONS
92// /*== or choose animations ==*/
93// #define RGBLIGHT_EFFECT_BREATHING
94 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
95 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
96// #define RGBLIGHT_EFFECT_SNAKE
97// #define RGBLIGHT_EFFECT_KNIGHT
98// #define RGBLIGHT_EFFECT_CHRISTMAS
99 #define RGBLIGHT_EFFECT_STATIC_GRADIENT
100 #define RGBLIGHT_EFFECT_RGB_TEST
101// #define RGBLIGHT_EFFECT_ALTERNATING
102#endif
103
104/* Custom font */
105#define OLED_FONT_H "keyboards/helix/common/glcdfont.c"
106
107/* Encorder */
108#define ENCODERS_PAD_A { B6 }
109#define ENCODERS_PAD_B { B5 }
110
111/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
112#define DEBOUNCE 5
113
114/* define if matrix has ghost (lacks anti-ghosting diodes) */
115//#define MATRIX_HAS_GHOST
116
117/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
118#define LOCKING_SUPPORT_ENABLE
119/* Locking resynchronize hack */
120#define LOCKING_RESYNC_ENABLE
121
122/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
123 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
124 */
125// #define GRAVE_ESC_CTRL_OVERRIDE
126
127/*
128 * Force NKRO
129 *
130 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
131 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
132 * makefile for this to work.)
133 *
134 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
135 * until the next keyboard reset.
136 *
137 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
138 * fully operational during normal computer usage.
139 *
140 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
141 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
142 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
143 * power-up.
144 *
145 */
146//#define FORCE_NKRO
147
148/*
149 * Magic Key Options
150 *
151 * Magic keys are hotkey commands that allow control over firmware functions of
152 * the keyboard. They are best used in combination with the HID Listen program,
153 * found here: https://www.pjrc.com/teensy/hid_listen.html
154 *
155 * The options below allow the magic key functionality to be changed. This is
156 * useful if your keyboard/keypad is missing keys and you want magic key support.
157 *
158 */
159
160/* key combination for magic key command */
161/* defined by default; to change, uncomment and set to the combination you want */
162// #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT)
163
164/* control how magic key switches layers */
165//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
166//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
167//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
168
169/* override magic key keymap */
170//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
171//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
172//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
173//#define MAGIC_KEY_HELP H
174//#define MAGIC_KEY_HELP_ALT SLASH
175//#define MAGIC_KEY_DEBUG D
176//#define MAGIC_KEY_DEBUG_MATRIX X
177//#define MAGIC_KEY_DEBUG_KBD K
178//#define MAGIC_KEY_DEBUG_MOUSE M
179//#define MAGIC_KEY_VERSION V
180//#define MAGIC_KEY_STATUS S
181//#define MAGIC_KEY_CONSOLE C
182//#define MAGIC_KEY_LAYER0 0
183//#define MAGIC_KEY_LAYER0_ALT GRAVE
184//#define MAGIC_KEY_LAYER1 1
185//#define MAGIC_KEY_LAYER2 2
186//#define MAGIC_KEY_LAYER3 3
187//#define MAGIC_KEY_LAYER4 4
188//#define MAGIC_KEY_LAYER5 5
189//#define MAGIC_KEY_LAYER6 6
190//#define MAGIC_KEY_LAYER7 7
191//#define MAGIC_KEY_LAYER8 8
192//#define MAGIC_KEY_LAYER9 9
193//#define MAGIC_KEY_BOOTLOADER B
194//#define MAGIC_KEY_BOOTLOADER_ALT ESC
195//#define MAGIC_KEY_LOCK CAPS
196//#define MAGIC_KEY_EEPROM E
197//#define MAGIC_KEY_EEPROM_CLEAR BSPACE
198//#define MAGIC_KEY_NKRO N
199//#define MAGIC_KEY_SLEEP_LED Z
200
201/*
202 * Feature disable options
203 * These options are also useful to firmware size reduction.
204 */
205
206/* disable debug print */
207//#define NO_DEBUG
208
209/* disable print */
210//#define NO_PRINT
211
212/* disable action features */
213//#define NO_ACTION_LAYER
214//#define NO_ACTION_TAPPING
215//#define NO_ACTION_ONESHOT
216
217/* disable these deprecated features by default */
218#define NO_ACTION_MACRO
219#define NO_ACTION_FUNCTION
220
221/*
222 * MIDI options
223 */
224
225/* Prevent use of disabled MIDI features in the keymap */
226//#define MIDI_ENABLE_STRICT 1
227
228/* enable basic MIDI features:
229 - MIDI notes can be sent when in Music mode is on
230*/
231//#define MIDI_BASIC
232
233/* enable advanced MIDI features:
234 - MIDI notes can be added to the keymap
235 - Octave shift and transpose
236 - Virtual sustain, portamento, and modulation wheel
237 - etc.
238*/
239//#define MIDI_ADVANCED
240
241/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
242//#define MIDI_TONE_KEYCODE_OCTAVES 1
243
244/* Bootmagic Lite key configuration */
245// #define BOOTMAGIC_LITE_ROW 0
246// #define BOOTMAGIC_LITE_COLUMN 0