Commit | Line | Data |
---|---|---|
dcc36339 M |
1 | #ifndef CONFIG_H |
2 | #define CONFIG_H | |
3 | ||
4 | #include "config_common.h" | |
5 | ||
6 | /* USB Device descriptor parameter */ | |
7 | #define VENDOR_ID 0x1209 | |
8 | #define PRODUCT_ID 0x2328 | |
9 | #define DEVICE_VER 0x501 | |
10 | #define MANUFACTURER K.T.E.C. | |
11 | #define PRODUCT Daisy | |
12 | #define DESCRIPTION qmk port for Daisy | |
13 | ||
14 | /* key matrix size */ | |
15 | #define MATRIX_ROWS 4 | |
16 | #define MATRIX_COLS 11 | |
17 | ||
18 | /* | |
19 | * Keyboard Matrix Assignments | |
20 | * | |
21 | * Change this to how you wired your keyboard | |
22 | * COLS: AVR pins used for columns, left to right | |
23 | * ROWS: AVR pins used for rows, top to bottom | |
24 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | |
25 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | |
26 | * | |
27 | */ | |
28 | #define MATRIX_ROW_PINS { D2, D3, D5, B7 } | |
29 | #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, B6, B5, B4, D7, D6 } | |
30 | #define UNUSED_PINS | |
31 | ||
32 | /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */ | |
33 | #define DIODE_DIRECTION COL2ROW | |
34 | ||
35 | #define BACKLIGHT_PIN D0 | |
36 | #define BACKLIGHT_LEVELS 6 | |
37 | ||
38 | ||
39 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | |
40 | #define DEBOUNCING_DELAY 5 | |
41 | ||
42 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | |
43 | //#define MATRIX_HAS_GHOST | |
44 | ||
45 | /* number of backlight levels */ | |
46 | ||
47 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | |
48 | #define LOCKING_SUPPORT_ENABLE | |
49 | /* Locking resynchronize hack */ | |
50 | #define LOCKING_RESYNC_ENABLE | |
51 | ||
52 | /* | |
53 | * Force NKRO | |
54 | * | |
55 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | |
56 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | |
57 | * makefile for this to work.) | |
58 | * | |
59 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | |
60 | * until the next keyboard reset. | |
61 | * | |
62 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | |
63 | * fully operational during normal computer usage. | |
64 | * | |
65 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | |
66 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | |
67 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | |
68 | * power-up. | |
69 | * | |
70 | */ | |
71 | //#define FORCE_NKRO | |
72 | ||
73 | /* | |
74 | * Magic Key Options | |
75 | * | |
76 | * Magic keys are hotkey commands that allow control over firmware functions of | |
77 | * the keyboard. They are best used in combination with the HID Listen program, | |
78 | * found here: https://www.pjrc.com/teensy/hid_listen.html | |
79 | * | |
80 | * The options below allow the magic key functionality to be changed. This is | |
81 | * useful if your keyboard/keypad is missing keys and you want magic key support. | |
82 | * | |
83 | */ | |
84 | ||
85 | /* key combination for magic key command */ | |
86 | #define IS_COMMAND() ( \ | |
87 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | |
88 | ) | |
89 | ||
90 | /* control how magic key switches layers */ | |
91 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | |
92 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | |
93 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | |
94 | ||
95 | /* override magic key keymap */ | |
96 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | |
97 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | |
98 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | |
99 | //#define MAGIC_KEY_HELP1 H | |
100 | //#define MAGIC_KEY_HELP2 SLASH | |
101 | //#define MAGIC_KEY_DEBUG D | |
102 | //#define MAGIC_KEY_DEBUG_MATRIX X | |
103 | //#define MAGIC_KEY_DEBUG_KBD K | |
104 | //#define MAGIC_KEY_DEBUG_MOUSE M | |
105 | //#define MAGIC_KEY_VERSION V | |
106 | //#define MAGIC_KEY_STATUS S | |
107 | //#define MAGIC_KEY_CONSOLE C | |
108 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | |
109 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | |
110 | //#define MAGIC_KEY_LAYER0 0 | |
111 | //#define MAGIC_KEY_LAYER1 1 | |
112 | //#define MAGIC_KEY_LAYER2 2 | |
113 | //#define MAGIC_KEY_LAYER3 3 | |
114 | //#define MAGIC_KEY_LAYER4 4 | |
115 | //#define MAGIC_KEY_LAYER5 5 | |
116 | //#define MAGIC_KEY_LAYER6 6 | |
117 | //#define MAGIC_KEY_LAYER7 7 | |
118 | //#define MAGIC_KEY_LAYER8 8 | |
119 | //#define MAGIC_KEY_LAYER9 9 | |
120 | //#define MAGIC_KEY_BOOTLOADER PAUSE | |
121 | //#define MAGIC_KEY_LOCK CAPS | |
122 | //#define MAGIC_KEY_EEPROM E | |
123 | //#define MAGIC_KEY_NKRO N | |
124 | //#define MAGIC_KEY_SLEEP_LED Z | |
125 | ||
126 | /* | |
127 | * Feature disable options | |
128 | * These options are also useful to firmware size reduction. | |
129 | */ | |
130 | ||
131 | /* disable debug print */ | |
132 | //#define NO_DEBUG | |
133 | ||
134 | /* disable print */ | |
135 | //#define NO_PRINT | |
136 | ||
137 | /* disable action features */ | |
138 | //#define NO_ACTION_LAYER | |
139 | //#define NO_ACTION_TAPPING | |
140 | //#define NO_ACTION_ONESHOT | |
141 | //#define NO_ACTION_MACRO | |
142 | //#define NO_ACTION_FUNCTION | |
143 | ||
144 | // ws2812 options | |
145 | #define RGB_DI_PIN C7 // pin the DI on the ws2812 is hooked-up to | |
146 | #define RGBLIGHT_ANIMATIONS // run RGB animations | |
147 | #define RGBLED_NUM 8 // number of LEDs | |
148 | #define RGBLIGHT_HUE_STEP 12 // units to step when in/decreasing hue | |
149 | #define RGBLIGHT_SAT_STEP 25 // units to step when in/decresing saturation | |
150 | #define RGBLIGHT_VAL_STEP 12 // units to step when in/decreasing value (brightness) | |
151 | ||
152 | /* | |
153 | * MIDI options | |
154 | */ | |
155 | ||
156 | /* Prevent use of disabled MIDI features in the keymap */ | |
157 | //#define MIDI_ENABLE_STRICT 1 | |
158 | ||
159 | /* enable basic MIDI features: | |
160 | - MIDI notes can be sent when in Music mode is on | |
161 | */ | |
162 | //#define MIDI_BASIC | |
163 | ||
164 | /* enable advanced MIDI features: | |
165 | - MIDI notes can be added to the keymap | |
166 | - Octave shift and transpose | |
167 | - Virtual sustain, portamento, and modulation wheel | |
168 | - etc. | |
169 | */ | |
170 | //#define MIDI_ADVANCED | |
171 | ||
172 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | |
173 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | |
174 | ||
175 | #endif |