2 Copyright 2012 Jun Wako <wakojun@gmail.com>
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include "config_common.h"
23 /* USB Device descriptor parameter */
25 #define DEVICE_VER 0x0003
27 /* COL2ROW or ROW2COL */
28 #define DIODE_DIRECTION COL2ROW
30 /* define if matrix has ghost */
31 //#define MATRIX_HAS_GHOST
33 /* Set 0 if debouncing isn't needed */
34 #define DEBOUNCING_DELAY 5
36 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
37 #define LOCKING_SUPPORT_ENABLE
38 /* Locking resynchronize hack */
39 #define LOCKING_RESYNC_ENABLE
41 /* key combination for command */
42 #define IS_COMMAND() ( \
43 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
46 /* Backlight configuration
48 #define BACKLIGHT_LEVELS 3
50 /* Underlight configuration
52 #undef RGBLIGHT_HUE_STEP
53 #undef RGBLIGHT_SAT_STEP
54 #undef RGBLIGHT_VAL_STEP
55 #define RGBLIGHT_HUE_STEP 10
56 #define RGBLIGHT_SAT_STEP 17
57 #define RGBLIGHT_VAL_STEP 17
60 * Feature disable options
61 * These options are also useful to firmware size reduction.
64 /* disable debug print */
70 /* disable action features */
71 //#define NO_ACTION_LAYER
72 //#define NO_ACTION_TAPPING
73 //#define NO_ACTION_ONESHOT
74 //#define NO_ACTION_MACRO
75 //#define NO_ACTION_FUNCTION
79 #define TAPPING_TOGGLE 1
80 #define TAPPING_TERM 300
86 /* Prevent use of disabled MIDI features in the keymap */
87 #define MIDI_ENABLE_STRICT 1
89 /* enable basic MIDI features:
90 - MIDI notes can be sent when in Music mode is on
94 /* enable advanced MIDI features:
95 - MIDI notes can be added to the keymap
96 - Octave shift and transpose
97 - Virtual sustain, portamento, and modulation wheel
100 #define MIDI_ADVANCED
102 /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
103 #define MIDI_TONE_KEYCODE_OCTAVES 2
105 // Space Cadet Rollover - if set, allows to tap opposite shift key to cancel erroneous press
106 #define DISABLE_SPACE_CADET_ROLLOVER