aboutsummaryrefslogtreecommitdiff
path: root/users/drashna/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/drashna/config.h')
-rw-r--r--users/drashna/config.h172
1 files changed, 137 insertions, 35 deletions
diff --git a/users/drashna/config.h b/users/drashna/config.h
index 5f7c32ff3..ab0080234 100644
--- a/users/drashna/config.h
+++ b/users/drashna/config.h
@@ -17,57 +17,81 @@
17#pragma once 17#pragma once
18 18
19// Use custom magic number so that when switching branches, EEPROM always gets reset 19// Use custom magic number so that when switching branches, EEPROM always gets reset
20#define EECONFIG_MAGIC_NUMBER (uint16_t)0x1339 20#define EECONFIG_MAGIC_NUMBER (uint16_t)0x1339
21 21
22/* Set Polling rate to 1000Hz */ 22/* Set Polling rate to 1000Hz */
23#define USB_POLLING_INTERVAL_MS 1 23#define USB_POLLING_INTERVAL_MS 1
24 24
25#if defined(SPLIT_KEYBOARD) 25#if defined(SPLIT_KEYBOARD)
26// # define SPLIT_TRANSPORT_MIRROR
27# define SPLIT_LAYER_STATE_ENABLE
28# define SPLIT_LED_STATE_ENABLE
26# define SPLIT_MODS_ENABLE 29# define SPLIT_MODS_ENABLE
27# define SPLIT_TRANSPORT_MIRROR 30# ifdef WPM_ENABLE
28# define SERIAL_USE_MULTI_TRANSACTION 31# define SPLIT_WPM_ENABLE
29// # define SPLIT_NUM_TRANSACTIONS_KB 2 32# endif
33# define SELECT_SOFT_SERIAL_SPEED 1
34# define SPLIT_TRANSACTION_IDS_USER RPC_ID_USER_STATE_SYNC, RPC_ID_USER_KEYMAP_SYNC, RPC_ID_USER_CONFIG_SYNC
30#endif 35#endif
31 36
32#ifdef AUDIO_ENABLE 37#ifdef AUDIO_ENABLE
33
34# define AUDIO_CLICKY 38# define AUDIO_CLICKY
35# define STARTUP_SONG SONG(RICK_ROLL)
36# define GOODBYE_SONG SONG(SONIC_RING)
37# define DEFAULT_LAYER_SONGS \
38 { SONG(QWERTY_SOUND), SONG(COLEMAK_SOUND), SONG(DVORAK_SOUND), SONG(OVERWATCH_THEME) }
39
40# define AUDIO_CLICKY_FREQ_RANDOMNESS 1.5f 39# define AUDIO_CLICKY_FREQ_RANDOMNESS 1.5f
41 40
42# define UNICODE_SONG_MAC SONG(RICK_ROLL) 41# ifdef USER_SONG_LIST
43# define UNICODE_SONG_LNX SONG(RICK_ROLL) 42# define STARTUP_SONG SONG(RICK_ROLL)
44# define UNICODE_SONG_WIN SONG(RICK_ROLL) 43# define GOODBYE_SONG SONG(SONIC_RING)
45# define UNICODE_SONG_BSD SONG(RICK_ROLL) 44# define DEFAULT_LAYER_SONGS \
46# define UNICODE_SONG_WINC SONG(RICK_ROLL) 45 { SONG(QWERTY_SOUND), SONG(COLEMAK_SOUND), SONG(DVORAK_SOUND), SONG(OVERWATCH_THEME) }
46# define UNICODE_SONG_MAC SONG(MARIO_THEME)
47# define UNICODE_SONG_LNX SONG(MARIO_POWERUP)
48# define UNICODE_SONG_WIN SONG(MARIO_ONEUP)
49# define UNICODE_SONG_BSD SONG(RICK_ROLL)
50# define UNICODE_SONG_WINC SONG(RICK_ROLL)
51# else
52# define STARTUP_SONG SONG(STARTUP_SOUND)
53# define GOODBYE_SONG SONG(GOODBYE_SOUND)
54# define DEFAULT_LAYER_SONGS \
55 { SONG(QWERTY_SOUND), SONG(COLEMAK_SOUND), SONG(DVORAK_SOUND), SONG(WORKMAN_SOUND) }
56# define UNICODE_SONG_MAC SONG(QWERTY_SOUND)
57# define UNICODE_SONG_LNX SONG(COLEMAK_SOUND)
58# define UNICODE_SONG_WIN SONG(DVORAK_SOUND)
59# define UNICODE_SONG_BSD SONG(WORKMAN_SOUND)
60# define UNICODE_SONG_WINC SONG(PLOVER_GOODBYE_SOUND)
61# endif
47#endif // !AUDIO_ENABLE 62#endif // !AUDIO_ENABLE
48 63
64#define UNICODE_SELECTED_MODES UC_WIN, UC_MAC
65
49#ifdef RGBLIGHT_ENABLE 66#ifdef RGBLIGHT_ENABLE
50# define RGBLIGHT_SLEEP 67# define RGBLIGHT_SLEEP
68# undef RGBLIGHT_ANIMATIONS
51# if defined(__AVR__) && !defined(__AVR_AT90USB1286__) 69# if defined(__AVR__) && !defined(__AVR_AT90USB1286__)
52# undef RGBLIGHT_ANIMATIONS
53# define RGBLIGHT_EFFECT_BREATHING 70# define RGBLIGHT_EFFECT_BREATHING
54# define RGBLIGHT_EFFECT_SNAKE 71# define RGBLIGHT_EFFECT_SNAKE
55# define RGBLIGHT_EFFECT_KNIGHT 72# define RGBLIGHT_EFFECT_KNIGHT
56# else 73# else
57# define RGBLIGHT_ANIMATIONS 74# define RGBLIGHT_EFFECT_BREATHING
75# define RGBLIGHT_EFFECT_RAINBOW_MOOD
76# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
77# define RGBLIGHT_EFFECT_SNAKE
78# define RGBLIGHT_EFFECT_KNIGHT
79// # define RGBLIGHT_EFFECT_CHRISTMAS
80// # define RGBLIGHT_EFFECT_STATIC_GRADIENT
81// # define RGBLIGHT_EFFECT_RGB_TEST
82// # define RGBLIGHT_EFFECT_ALTERNATING
83# define RGBLIGHT_EFFECT_TWINKLE
58# endif 84# endif
59# define RGBLIGHT_EFFECT_TWINKLE_LIFE 250 85# define RGBLIGHT_EFFECT_TWINKLE_LIFE 250
60# define RGBLIGHT_EFFECT_TWINKLE_PROBABILITY 1/24 86# define RGBLIGHT_EFFECT_TWINKLE_PROBABILITY 1 / 24
61#endif // RGBLIGHT_ENABLE 87#endif // RGBLIGHT_ENABLE
62 88
63#ifdef RGB_MATRIX_ENABLE 89#ifdef RGB_MATRIX_ENABLE
64# define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot) 90# define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot)
65// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (not recommened) 91// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (not recommened)
66# define RGB_MATRIX_FRAMEBUFFER_EFFECTS 92# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
67// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects 93// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
68# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended 94// # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
69// # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
70// # define EECONFIG_RGB_MATRIX (uint32_t *)16
71 95
72# if defined(__AVR__) && !defined(__AVR_AT90USB1286__) && !defined(KEYBOARD_launchpad) 96# if defined(__AVR__) && !defined(__AVR_AT90USB1286__) && !defined(KEYBOARD_launchpad)
73# define DISABLE_RGB_MATRIX_ALPHAS_MODS 97# define DISABLE_RGB_MATRIX_ALPHAS_MODS
@@ -120,7 +144,7 @@
120# ifdef OLED_FONT_H 144# ifdef OLED_FONT_H
121# undef OLED_FONT_H 145# undef OLED_FONT_H
122# endif 146# endif
123# define OLED_FONT_H "drashna_font.h" 147# define OLED_FONT_H "drashna_font.h"
124# define OLED_FONT_END 255 148# define OLED_FONT_END 255
125// # define OLED_FONT_5X5 149// # define OLED_FONT_5X5
126// # define OLED_FONT_AZTECH 150// # define OLED_FONT_AZTECH
@@ -143,8 +167,8 @@
143 167
144#ifdef QMK_KEYS_PER_SCAN 168#ifdef QMK_KEYS_PER_SCAN
145# undef QMK_KEYS_PER_SCAN 169# undef QMK_KEYS_PER_SCAN
146# define QMK_KEYS_PER_SCAN 2 170#endif
147#endif // !QMK_KEYS_PER_SCAN 171#define QMK_KEYS_PER_SCAN 4
148 172
149// this makes it possible to do rolling combos (zx) with keys that 173// this makes it possible to do rolling combos (zx) with keys that
150// convert to other keys on hold (z becomes ctrl when you hold it, 174// convert to other keys on hold (z becomes ctrl when you hold it,
@@ -152,9 +176,9 @@
152// actually sends Ctrl-x. That's bad.) 176// actually sends Ctrl-x. That's bad.)
153#define IGNORE_MOD_TAP_INTERRUPT 177#define IGNORE_MOD_TAP_INTERRUPT
154#undef PERMISSIVE_HOLD 178#undef PERMISSIVE_HOLD
155//#define TAPPING_FORCE_HOLD 179//#define TAPPING_FORCE_HOLD_PER_KEY
156//#define RETRO_TAPPING 180//#define RETRO_TAPPING_PER_KEY
157#ifndef KEYBOARD_kyria_rev1 181#if !defined(KEYBOARD_kyria) && !defined(KEYBOARD_splitkb_kyria)
158# define TAPPING_TERM_PER_KEY 182# define TAPPING_TERM_PER_KEY
159#endif 183#endif
160 184
@@ -185,14 +209,16 @@
185# undef LOCKING_RESYNC_ENABLE 209# undef LOCKING_RESYNC_ENABLE
186#endif 210#endif
187 211
212#define LAYER_STATE_16BIT
213
188#ifdef CONVERT_TO_PROTON_C 214#ifdef CONVERT_TO_PROTON_C
189// pins that are available but not present on Pro Micro 215// pins that are available but not present on Pro Micro
190# define A3 PAL_LINE(GPIOA, 3) 216# define A3 PAL_LINE(GPIOA, 3)
191# define A4 PAL_LINE(GPIOA, 4) 217# define A4 PAL_LINE(GPIOA, 4)
192# define A5 PAL_LINE(GPIOA, 5) 218# define A5 PAL_LINE(GPIOA, 5)
193# define A6 PAL_LINE(GPIOA, 6) 219# define A6 PAL_LINE(GPIOA, 6)
194# define A7 PAL_LINE(GPIOA, 7) 220# define A7 PAL_LINE(GPIOA, 7)
195# define A8 PAL_LINE(GPIOA, 8) 221# define A8 PAL_LINE(GPIOA, 8)
196# define A13 PAL_LINE(GPIOA, 13) 222# define A13 PAL_LINE(GPIOA, 13)
197# define A14 PAL_LINE(GPIOA, 14) 223# define A14 PAL_LINE(GPIOA, 14)
198# define A15 PAL_LINE(GPIOA, 15) 224# define A15 PAL_LINE(GPIOA, 15)
@@ -203,3 +229,79 @@
203# define C14 PAL_LINE(GPIOC, 14) 229# define C14 PAL_LINE(GPIOC, 14)
204# define C15 PAL_LINE(GPIOC, 15) 230# define C15 PAL_LINE(GPIOC, 15)
205#endif 231#endif
232
233#ifdef MOUSEKEY_ENABLE
234// mouse movement config
235# ifdef MK_3_SPEED
236# undef MK_3_SPEED
237# endif
238# define MK_KINETIC_SPEED
239# ifdef MK_KINETIC_SPEED
240# ifndef MOUSEKEY_DELAY
241# define MOUSEKEY_DELAY 8
242# endif
243# ifndef MOUSEKEY_INTERVAL
244# define MOUSEKEY_INTERVAL 20
245# endif
246# ifdef MOUSEKEY_MOVE_DELTA
247# define MOUSEKEY_MOVE_DELTA 25
248# endif
249# else
250# ifndef MOUSEKEY_DELAY
251# define MOUSEKEY_DELAY 300
252# endif
253# ifndef MOUSEKEY_INTERVAL
254# define MOUSEKEY_INTERVAL 50
255# endif
256# ifndef MOUSEKEY_MOVE_DELTA
257# define MOUSEKEY_MOVE_DELTA 5
258# endif
259# endif
260# ifndef MOUSEKEY_MAX_SPEED
261# define MOUSEKEY_MAX_SPEED 7
262# endif
263# ifndef MOUSEKEY_TIME_TO_MAX
264# define MOUSEKEY_TIME_TO_MAX 60
265# endif
266# ifndef MOUSEKEY_INITIAL_SPEED
267# define MOUSEKEY_INITIAL_SPEED 100
268# endif
269# ifndef MOUSEKEY_BASE_SPEED
270# define MOUSEKEY_BASE_SPEED 1000
271# endif
272# ifndef MOUSEKEY_DECELERATED_SPEED
273# define MOUSEKEY_DECELERATED_SPEED 400
274# endif
275# ifndef MOUSEKEY_ACCELERATED_SPEED
276# define MOUSEKEY_ACCELERATED_SPEED 3000
277# endif
278// mouse scroll config
279# ifndef MOUSEKEY_WHEEL_DELAY
280# define MOUSEKEY_WHEEL_DELAY 15
281# endif
282# ifndef MOUSEKEY_WHEEL_DELTA
283# define MOUSEKEY_WHEEL_DELTA 1
284# endif
285# ifndef MOUSEKEY_WHEEL_INTERVAL
286# define MOUSEKEY_WHEEL_INTERVAL 50
287# endif
288# ifndef MOUSEKEY_WHEEL_MAX_SPEED
289# define MOUSEKEY_WHEEL_MAX_SPEED 8
290# endif
291# ifndef MOUSEKEY_WHEEL_TIME_TO_MAX
292# define MOUSEKEY_WHEEL_TIME_TO_MAX 80
293# endif
294// mouse scroll kinetic config
295# ifndef MOUSEKEY_WHEEL_INITIAL_MOVEMENTS
296# define MOUSEKEY_WHEEL_INITIAL_MOVEMENTS 8
297# endif
298# ifndef MOUSEKEY_WHEEL_BASE_MOVEMENTS
299# define MOUSEKEY_WHEEL_BASE_MOVEMENTS 48
300# endif
301# ifndef MOUSEKEY_WHEEL_ACCELERATED_MOVEMENTS
302# define MOUSEKEY_WHEEL_ACCELERATED_MOVEMENTS 48
303# endif
304# ifndef MOUSEKEY_WHEEL_DECELERATED_MOVEMENTS
305# define MOUSEKEY_WHEEL_DECELERATED_MOVEMENTS 8
306# endif
307#endif // MOUSEKEY_ENABLE