]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboard/gh60_rev_c/config.h
Merge pull request #364 from techtomas/techtomas
[qmk_firmware.git] / keyboard / gh60_rev_c / config.h
1 /*\r
2 Copyright 2012 Jun Wako <wakojun@gmail.com>\r
3 \r
4 This program is free software: you can redistribute it and/or modify\r
5 it under the terms of the GNU General Public License as published by\r
6 the Free Software Foundation, either version 2 of the License, or\r
7 (at your option) any later version.\r
8 \r
9 This program is distributed in the hope that it will be useful,\r
10 but WITHOUT ANY WARRANTY; without even the implied warranty of\r
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
12 GNU General Public License for more details.\r
13 \r
14 You should have received a copy of the GNU General Public License\r
15 along with this program. If not, see <http://www.gnu.org/licenses/>.\r
16 */\r
17 \r
18 #ifndef CONFIG_H\r
19 #define CONFIG_H\r
20 \r
21 #include "config_common.h"\r
22 \r
23 /* USB Device descriptor parameter */\r
24 #define VENDOR_ID    0xFEED\r
25 #define PRODUCT_ID   0x6060\r
26 #define DEVICE_VER   0x0001\r
27 #define MANUFACTURER  You\r
28 #define PRODUCT     gh60\r
29 #define DESCRIPTION   A custom keyboard\r
30 \r
31 /* key matrix size */\r
32 #define MATRIX_ROWS 5\r
33 #define MATRIX_COLS 14\r
34 \r
35 /*\r
36  * Keyboard Matrix Assignments\r
37  *\r
38  * Change this to how you wired your keyboard\r
39  * COLS: AVR pins used for columns, left to right\r
40  * ROWS: AVR pins used for rows, top to bottom\r
41  * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)\r
42  *         ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)\r
43  *\r
44 */\r
45 #define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }\r
46 #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B7, B5, B4, D7, D6, B3 }\r
47 #define UNUSED_PINS\r
48 \r
49 /* COL2ROW or ROW2COL */\r
50 #define DIODE_DIRECTION COL2ROW\r
51 \r
52 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */\r
53 #define DEBOUNCING_DELAY 5\r
54 \r
55 /* define if matrix has ghost (lacks anti-ghosting diodes) */\r
56 //#define MATRIX_HAS_GHOST\r
57 \r
58 /* number of backlight levels */\r
59 #define BACKLIGHT_LEVELS 3\r
60 \r
61 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */\r
62 #define LOCKING_SUPPORT_ENABLE\r
63 /* Locking resynchronize hack */\r
64 #define LOCKING_RESYNC_ENABLE\r
65 \r
66 /*\r
67  * Force NKRO\r
68  *\r
69  * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved\r
70  * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the\r
71  * makefile for this to work.)\r
72  *\r
73  * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)\r
74  * until the next keyboard reset.\r
75  *\r
76  * NKRO may prevent your keystrokes from being detected in the BIOS, but it is\r
77  * fully operational during normal computer usage.\r
78  *\r
79  * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)\r
80  * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by\r
81  * bootmagic, NKRO mode will always be enabled until it is toggled again during a\r
82  * power-up.\r
83  *\r
84  */\r
85 //#define FORCE_NKRO\r
86 \r
87 /*\r
88  * Magic Key Options\r
89  *\r
90  * Magic keys are hotkey commands that allow control over firmware functions of\r
91  * the keyboard. They are best used in combination with the HID Listen program,\r
92  * found here: https://www.pjrc.com/teensy/hid_listen.html\r
93  *\r
94  * The options below allow the magic key functionality to be changed. This is\r
95  * useful if your keyboard/keypad is missing keys and you want magic key support.\r
96  *\r
97  */\r
98 \r
99 /* key combination for magic key command */\r
100 #define IS_COMMAND() ( \\r
101   keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \\r
102 )\r
103 \r
104 /* control how magic key switches layers */\r
105 //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true\r
106 //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true\r
107 //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false\r
108 \r
109 /* override magic key keymap */\r
110 //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS\r
111 //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS\r
112 //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM\r
113 //#define MAGIC_KEY_HELP1     H\r
114 //#define MAGIC_KEY_HELP2     SLASH\r
115 //#define MAGIC_KEY_DEBUG     D\r
116 //#define MAGIC_KEY_DEBUG_MATRIX  X\r
117 //#define MAGIC_KEY_DEBUG_KBD   K\r
118 //#define MAGIC_KEY_DEBUG_MOUSE  M\r
119 //#define MAGIC_KEY_VERSION    V\r
120 //#define MAGIC_KEY_STATUS     S\r
121 //#define MAGIC_KEY_CONSOLE    C\r
122 //#define MAGIC_KEY_LAYER0_ALT1  ESC\r
123 //#define MAGIC_KEY_LAYER0_ALT2  GRAVE\r
124 //#define MAGIC_KEY_LAYER0     0\r
125 //#define MAGIC_KEY_LAYER1     1\r
126 //#define MAGIC_KEY_LAYER2     2\r
127 //#define MAGIC_KEY_LAYER3     3\r
128 //#define MAGIC_KEY_LAYER4     4\r
129 //#define MAGIC_KEY_LAYER5     5\r
130 //#define MAGIC_KEY_LAYER6     6\r
131 //#define MAGIC_KEY_LAYER7     7\r
132 //#define MAGIC_KEY_LAYER8     8\r
133 //#define MAGIC_KEY_LAYER9     9\r
134 //#define MAGIC_KEY_BOOTLOADER   PAUSE\r
135 //#define MAGIC_KEY_LOCK      CAPS\r
136 //#define MAGIC_KEY_EEPROM     E\r
137 //#define MAGIC_KEY_NKRO      N\r
138 //#define MAGIC_KEY_SLEEP_LED   Z\r
139 \r
140 /*\r
141  * Feature disable options\r
142  * These options are also useful to firmware size reduction.\r
143  */\r
144 \r
145 /* disable debug print */\r
146 //#define NO_DEBUG\r
147 \r
148 /* disable print */\r
149 //#define NO_PRINT\r
150 \r
151 /* disable action features */\r
152 //#define NO_ACTION_LAYER\r
153 //#define NO_ACTION_TAPPING\r
154 //#define NO_ACTION_ONESHOT\r
155 //#define NO_ACTION_MACRO\r
156 //#define NO_ACTION_FUNCTION\r
157 \r
158 #endif\r