]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/orthodox/keymaps/drashna/config.h
Yet another update to drashna keymaps and userspace (#3787)
[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 #pragma once
23
24 /* Use I2C or Serial, not both */
25
26 #define USE_SERIAL
27 #undef USE_I2C
28
29 /* Select hand configuration */
30
31 // #define MASTER_LEFT
32 // #define MASTER_RIGHT
33 #define EE_HANDS
34
35
36 /* key combination for command */
37 #ifdef IS_COMMAND
38 #undef IS_COMMAND
39 #endif
40 #define IS_COMMAND() ( \
41     keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT)) \
42 )
43
44
45 #ifdef RGBLIGHT_ENABLE
46 #define RGB_DI_PIN D3
47 #define RGBLED_NUM 16     // Number of LEDs
48 #define RGBLIGHT_ANIMATIONS
49 #define RGBLIGHT_HUE_STEP 12
50 #define RGBLIGHT_SAT_STEP 12
51 #define RGBLIGHT_VAL_STEP 12
52 #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
53 #define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
54 #define RGBLIGHT_EFFECT_BREATHE_CENTER 1
55 #endif // RGBLIGHT_ENABLE
56
57 #ifdef AUDIO_ENABLE
58 #define C6_AUDIO
59 #ifdef RGBLIGHT_ENABLE
60 #define NO_MUSIC_MODE
61 #endif
62 #endif //AUDIO_ENABLE
63
64 #undef PRODUCT
65 #ifdef KEYBOARD_orthodox_rev1
66 #define PRODUCT         Drashna Hacked Orthodox Rev.1
67 #elif KEYBOARD_orthodox_rev3
68 #define PRODUCT         Drashna Hacked Orthodox Rev.3
69 #endif
70
71 #define QMK_ESC_OUTPUT D7 // usually COL
72 #ifdef KEYBOARD_orthodox_rev1
73 #define QMK_ESC_INPUT D4 // usually ROW
74 #else
75 #define QMK_ESC_INPUT D2 // usually ROW
76 #endif
77 #define QMK_LED B0
78 #define QMK_SPEAKER C6
79
80
81 #define SHFT_LED1 5
82 #define SHFT_LED2 10
83
84 #define CTRL_LED1 6
85 #define CTRL_LED2 9
86
87 #define GUI_LED1 8
88 #define ALT_LED1 7
89