]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/orthodox/keymaps/drashna/config.h
Update to drashna userspace (Keymap Templating) (#2338)
[qmk_firmware.git] / keyboards / orthodox / keymaps / drashna / config.h
1 /*
2 This is the c configuration file for the keymap
3
4 Copyright 2012 Jun Wako <wakojun@gmail.com>
5 Copyright 2015 Jack Humbert
6 Copyright 2017 Art Ortenburger
7
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 */
21
22 #ifndef CONFIG_USER_H
23 #define CONFIG_USER_H
24
25 #include QMK_KEYBOARD_CONFIG_H
26
27 /* Use I2C or Serial, not both */
28
29 #define USE_SERIAL
30 #undef USE_I2C
31
32 /* Select hand configuration */
33
34 // #define MASTER_LEFT
35 // #define MASTER_RIGHT
36 #define EE_HANDS
37
38 #ifdef TAPPING_TERM
39 #undef TAPPING_TERM
40 #endif
41 #define TAPPING_TERM 150
42 #undef PERMISSIVE_HOLD
43 #define IGNORE_MOD_TAP_INTERRUPT // this makes it possible to do rolling combos (zx) with keys that convert to other keys on hold (z becomes ctrl when you hold it, and when this option isn't enabled, z rapidly followed by x actually sends Ctrl-x. That's bad.)
44 #define ONESHOT_TAP_TOGGLE 2
45
46
47
48 /* key combination for command */
49 #ifdef IS_COMMAND
50 #undef IS_COMMAND
51 #endif
52 #define IS_COMMAND() ( \
53     keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT)) \
54 )
55
56
57 #ifdef RGBLIGHT_ENABLE
58 #define RGB_DI_PIN D3
59 #define RGBLED_NUM 16     // Number of LEDs
60 #define RGBLIGHT_ANIMATIONS
61 #define RGBLIGHT_HUE_STEP 12
62 #define RGBLIGHT_SAT_STEP 12
63 #define RGBLIGHT_VAL_STEP 12
64 #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
65 #define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
66 #define RGBLIGHT_EFFECT_BREATHE_CENTER 1
67 #endif // RGBLIGHT_ENABLE
68
69 #ifdef AUDIO_ENABLE
70 #define C6_AUDIO
71 #define STARTUP_SONG SONG(IMPERIAL_MARCH)
72 #endif
73
74 #undef PRODUCT
75 #ifdef KEYBOARD_orthodox_rev1
76 #define PRODUCT         Drashna Hacked Orthodox Rev.1
77 #elif KEYBOARD_orthodox_rev3
78 #define PRODUCT         Drashna Hacked Orthodox Rev.3
79 #endif
80 #endif