diff options
Diffstat (limited to 'keyboards/ckeys/thedora/config.h')
| -rwxr-xr-x | keyboards/ckeys/thedora/config.h | 188 |
1 files changed, 188 insertions, 0 deletions
diff --git a/keyboards/ckeys/thedora/config.h b/keyboards/ckeys/thedora/config.h new file mode 100755 index 000000000..f2b93ee70 --- /dev/null +++ b/keyboards/ckeys/thedora/config.h | |||
| @@ -0,0 +1,188 @@ | |||
| 1 | /* Copyright 2019 Branden Byers | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #include "config_common.h" | ||
| 20 | |||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0xFEED | ||
| 23 | #define PRODUCT_ID 0x6060 | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER ckeys | ||
| 26 | #define PRODUCT thedora | ||
| 27 | #define DESCRIPTION A board for keyboard exploration. | ||
| 28 | |||
| 29 | #define ENCODERS_PAD_A { B13 } | ||
| 30 | #define ENCODERS_PAD_B { B15 } | ||
| 31 | #define ENCODER_RESOLUTION 4 | ||
| 32 | |||
| 33 | /* key matrix size */ | ||
| 34 | #define MATRIX_ROWS 4 | ||
| 35 | #define MATRIX_COLS 6 | ||
| 36 | |||
| 37 | #define MATRIX_ROW_PINS { A2, A1, A0, B8 } | ||
| 38 | #define MATRIX_COL_PINS { B5, B4, B3, B2, B1, B0 } | ||
| 39 | |||
| 40 | // #define UNUSED_PINS { B14 } | ||
| 41 | |||
| 42 | /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */ | ||
| 43 | #define DIODE_DIRECTION COL2ROW | ||
| 44 | |||
| 45 | //#define BACKLIGHT_PIN B7 | ||
| 46 | // #define BACKLIGHT_BREATHING | ||
| 47 | //#define BACKLIGHT_LEVELS 3 | ||
| 48 | |||
| 49 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 50 | #define DEBOUNCE 5 | ||
| 51 | |||
| 52 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 53 | //#define MATRIX_HAS_GHOST | ||
| 54 | |||
| 55 | /* number of backlight levels */ | ||
| 56 | |||
| 57 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 58 | #define LOCKING_SUPPORT_ENABLE | ||
| 59 | /* Locking resynchronize hack */ | ||
| 60 | #define LOCKING_RESYNC_ENABLE | ||
| 61 | |||
| 62 | #define AUDIO_CLICKY | ||
| 63 | |||
| 64 | #define DAC_SAMPLE_MAX 65535U | ||
| 65 | |||
| 66 | /* | ||
| 67 | * MIDI options | ||
| 68 | */ | ||
| 69 | |||
| 70 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 71 | //#define MIDI_ENABLE_STRICT 1 | ||
| 72 | |||
| 73 | /* enable basic MIDI features: | ||
| 74 | - MIDI notes can be sent when in Music mode is on | ||
| 75 | */ | ||
| 76 | //#define MIDI_BASIC | ||
| 77 | |||
| 78 | /* enable advanced MIDI features: | ||
| 79 | - MIDI notes can be added to the keymap | ||
| 80 | - Octave shift and transpose | ||
| 81 | - Virtual sustain, portamento, and modulation wheel | ||
| 82 | - etc. | ||
| 83 | */ | ||
| 84 | #define MIDI_ADVANCED | ||
| 85 | |||
| 86 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 87 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
| 88 | |||
| 89 | /* | ||
| 90 | * Force NKRO | ||
| 91 | * | ||
| 92 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 93 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 94 | * makefile for this to work.) | ||
| 95 | * | ||
| 96 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 97 | * until the next keyboard reset. | ||
| 98 | * | ||
| 99 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 100 | * fully operational during normal computer usage. | ||
| 101 | * | ||
| 102 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 103 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 104 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 105 | * power-up. | ||
| 106 | * | ||
| 107 | */ | ||
| 108 | //#define FORCE_NKRO | ||
| 109 | |||
| 110 | /* | ||
| 111 | * Magic Key Options | ||
| 112 | * | ||
| 113 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 114 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 115 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 116 | * | ||
| 117 | * The options below allow the magic key functionality to be changed. This is | ||
| 118 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 119 | * | ||
| 120 | */ | ||
| 121 | |||
| 122 | /* control how magic key switches layers */ | ||
| 123 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 124 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 125 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 126 | |||
| 127 | /* override magic key keymap */ | ||
| 128 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 129 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 130 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 131 | //#define MAGIC_KEY_HELP1 H | ||
| 132 | //#define MAGIC_KEY_HELP2 SLASH | ||
| 133 | //#define MAGIC_KEY_DEBUG D | ||
| 134 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 135 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 136 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 137 | //#define MAGIC_KEY_VERSION V | ||
| 138 | //#define MAGIC_KEY_STATUS S | ||
| 139 | //#define MAGIC_KEY_CONSOLE C | ||
| 140 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
| 141 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
| 142 | //#define MAGIC_KEY_LAYER0 0 | ||
| 143 | //#define MAGIC_KEY_LAYER1 1 | ||
| 144 | //#define MAGIC_KEY_LAYER2 2 | ||
| 145 | //#define MAGIC_KEY_LAYER3 3 | ||
| 146 | //#define MAGIC_KEY_LAYER4 4 | ||
| 147 | //#define MAGIC_KEY_LAYER5 5 | ||
| 148 | //#define MAGIC_KEY_LAYER6 6 | ||
| 149 | //#define MAGIC_KEY_LAYER7 7 | ||
| 150 | //#define MAGIC_KEY_LAYER8 8 | ||
| 151 | //#define MAGIC_KEY_LAYER9 9 | ||
| 152 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
| 153 | //#define MAGIC_KEY_LOCK CAPS | ||
| 154 | //#define MAGIC_KEY_EEPROM E | ||
| 155 | //#define MAGIC_KEY_NKRO N | ||
| 156 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 157 | |||
| 158 | // Audio Click | ||
| 159 | |||
| 160 | // Music Mode Polyphony | ||
| 161 | // NOTE: Must change polyphony_rate to a number higher than 0 in voices.c | ||
| 162 | #define AUDIO_VOICES | ||
| 163 | #define PITCH_STANDARD_A 880.0f | ||
| 164 | |||
| 165 | // Mouse keys | ||
| 166 | #define MOUSEKEY_DELAY 0 | ||
| 167 | #define MOUSEKEY_INTERVAL 20 | ||
| 168 | #define MOUSEKEY_MAX_SPEED 2 | ||
| 169 | #define MOUSEKEY_TIME_TO_MAX 5 | ||
| 170 | #define MOUSEKEY_WHEEL_DELAY 0 | ||
| 171 | |||
| 172 | /* | ||
| 173 | * Feature disable options | ||
| 174 | * These options are also useful to firmware size reduction. | ||
| 175 | */ | ||
| 176 | |||
| 177 | /* disable debug print */ | ||
| 178 | //#define NO_DEBUG | ||
| 179 | |||
| 180 | /* disable print */ | ||
| 181 | //#define NO_PRINT | ||
| 182 | |||
| 183 | /* disable action features */ | ||
| 184 | //#define NO_ACTION_LAYER | ||
| 185 | //#define NO_ACTION_TAPPING | ||
| 186 | //#define NO_ACTION_ONESHOT | ||
| 187 | //#define NO_ACTION_MACRO | ||
| 188 | //#define NO_ACTION_FUNCTION | ||
