]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboard/gh60/config.h
4813c4e786ff43012daeffb825534462998f25fc
[qmk_firmware.git] / keyboard / gh60 / 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    geekhack\r
28 #define PRODUCT         GH60\r
29 #define DESCRIPTION     t.m.k. keyboard firmware for GH60\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 // Rev A\r
47 // #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B0, B5, B4, D7, D6, B3 }\r
48 // Rev B/C\r
49    #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B7, B5, B4, D7, D6, B3 }\r
50 #define UNUSED_PINS\r
51 \r
52 /* COL2ROW or ROW2COL */\r
53 #define DIODE_DIRECTION COL2ROW\r
54 \r
55 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */\r
56 #define DEBOUNCING_DELAY 5\r
57 \r
58 /* define if matrix has ghost (lacks anti-ghosting diodes) */\r
59 //#define MATRIX_HAS_GHOST\r
60 \r
61 /* number of backlight levels */\r
62 #define BACKLIGHT_LEVELS 3\r
63 \r
64 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */\r
65 #define LOCKING_SUPPORT_ENABLE\r
66 /* Locking resynchronize hack */\r
67 #define LOCKING_RESYNC_ENABLE\r
68 \r
69 /*\r
70  * Force NKRO\r
71  *\r
72  * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved\r
73  * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the\r
74  * makefile for this to work.)\r
75  *\r
76  * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)\r
77  * until the next keyboard reset.\r
78  *\r
79  * NKRO may prevent your keystrokes from being detected in the BIOS, but it is\r
80  * fully operational during normal computer usage.\r
81  *\r
82  * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)\r
83  * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by\r
84  * bootmagic, NKRO mode will always be enabled until it is toggled again during a\r
85  * power-up.\r
86  *\r
87  */\r
88 //#define FORCE_NKRO\r
89 \r
90 /*\r
91  * Magic Key Options\r
92  *\r
93  * Magic keys are hotkey commands that allow control over firmware functions of\r
94  * the keyboard. They are best used in combination with the HID Listen program,\r
95  * found here: https://www.pjrc.com/teensy/hid_listen.html\r
96  *\r
97  * The options below allow the magic key functionality to be changed. This is\r
98  * useful if your keyboard/keypad is missing keys and you want magic key support.\r
99  *\r
100  */\r
101 \r
102 /* key combination for magic key command */\r
103 #define IS_COMMAND() ( \\r
104   keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \\r
105 )\r
106 \r
107 /* control how magic key switches layers */\r
108 //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true\r
109 //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true\r
110 //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false\r
111 \r
112 /* override magic key keymap */\r
113 //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS\r
114 //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS\r
115 //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM\r
116 //#define MAGIC_KEY_HELP1     H\r
117 //#define MAGIC_KEY_HELP2     SLASH\r
118 //#define MAGIC_KEY_DEBUG     D\r
119 //#define MAGIC_KEY_DEBUG_MATRIX  X\r
120 //#define MAGIC_KEY_DEBUG_KBD   K\r
121 //#define MAGIC_KEY_DEBUG_MOUSE  M\r
122 //#define MAGIC_KEY_VERSION    V\r
123 //#define MAGIC_KEY_STATUS     S\r
124 //#define MAGIC_KEY_CONSOLE    C\r
125 //#define MAGIC_KEY_LAYER0_ALT1  ESC\r
126 //#define MAGIC_KEY_LAYER0_ALT2  GRAVE\r
127 //#define MAGIC_KEY_LAYER0     0\r
128 //#define MAGIC_KEY_LAYER1     1\r
129 //#define MAGIC_KEY_LAYER2     2\r
130 //#define MAGIC_KEY_LAYER3     3\r
131 //#define MAGIC_KEY_LAYER4     4\r
132 //#define MAGIC_KEY_LAYER5     5\r
133 //#define MAGIC_KEY_LAYER6     6\r
134 //#define MAGIC_KEY_LAYER7     7\r
135 //#define MAGIC_KEY_LAYER8     8\r
136 //#define MAGIC_KEY_LAYER9     9\r
137 //#define MAGIC_KEY_BOOTLOADER   PAUSE\r
138 //#define MAGIC_KEY_LOCK      CAPS\r
139 //#define MAGIC_KEY_EEPROM     E\r
140 //#define MAGIC_KEY_NKRO      N\r
141 //#define MAGIC_KEY_SLEEP_LED   Z\r
142 \r
143 /*\r
144  * Feature disable options\r
145  * These options are also useful to firmware size reduction.\r
146  */\r
147 \r
148 /* disable debug print */\r
149 //#define NO_DEBUG\r
150 \r
151 /* disable print */\r
152 //#define NO_PRINT\r
153 \r
154 /* disable action features */\r
155 //#define NO_ACTION_LAYER\r
156 //#define NO_ACTION_TAPPING\r
157 //#define NO_ACTION_ONESHOT\r
158 //#define NO_ACTION_MACRO\r
159 //#define NO_ACTION_FUNCTION\r
160 \r
161 #endif\r