Commit | Line | Data |
---|---|---|
ed8d9a09 JH |
1 | /* |
2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | |
3 | ||
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. | |
8 | ||
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. | |
13 | ||
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/>. | |
16 | */ | |
17 | ||
18 | #ifndef CONFIG_H | |
19 | #define CONFIG_H | |
20 | ||
35a81f5b | 21 | #include "config_common.h" |
ed8d9a09 JH |
22 | |
23 | /* USB Device descriptor parameter */ | |
24 | #define VENDOR_ID 0xFEED | |
91176d85 | 25 | #define PRODUCT_ID 0x6060 |
4d5eeb3d | 26 | #define MANUFACTURER OLKB |
ec3e065f | 27 | #define PRODUCT Planck |
cb3e499c | 28 | #define DESCRIPTION A compact ortholinear keyboard |
ed8d9a09 JH |
29 | |
30 | /* key matrix size */ | |
31 | #define MATRIX_ROWS 4 | |
32 | #define MATRIX_COLS 12 | |
33 | ||
04885a3b | 34 | /* Planck PCB default pin-out */ |
aaa758f1 ET |
35 | #define MATRIX_ROW_PINS { D0, D5, B5, B6 } |
36 | #define MATRIX_COL_PINS { F1, F0, B0, C7, F4, F5, F6, F7, D4, D6, B4, D7 } | |
37 | #define UNUSED_PINS | |
04885a3b | 38 | |
ec3e065f JH |
39 | #define QMK_ESC_OUTPUT F1 |
40 | #define QMK_ESC_INPUT D5 | |
41 | #define QMK_LED E6 | |
42 | #define QMK_SPEAKER C6 | |
43 | ||
438a5d68 | 44 | #define AUDIO_VOICES |
ea7590c8 | 45 | #define C6_AUDIO |
438a5d68 | 46 | |
13bb6b4b JH |
47 | #define BACKLIGHT_PIN B7 |
48 | ||
5bb7ef00 JH |
49 | /* COL2ROW or ROW2COL */ |
50 | #define DIODE_DIRECTION COL2ROW | |
51 | ||
ed8d9a09 JH |
52 | /* define if matrix has ghost */ |
53 | //#define MATRIX_HAS_GHOST | |
54 | ||
15b9bce6 | 55 | /* number of backlight levels */ |
1f52d60e | 56 | #define BACKLIGHT_LEVELS 3 |
15b9bce6 | 57 | |
ed8d9a09 | 58 | /* Set 0 if debouncing isn't needed */ |
faaaa134 | 59 | #define DEBOUNCE 5 |
ed8d9a09 JH |
60 | |
61 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | |
62 | #define LOCKING_SUPPORT_ENABLE | |
63 | /* Locking resynchronize hack */ | |
64 | #define LOCKING_RESYNC_ENABLE | |
65 | ||
ed8d9a09 JH |
66 | /* |
67 | * Feature disable options | |
68 | * These options are also useful to firmware size reduction. | |
69 | */ | |
70 | ||
71 | /* disable debug print */ | |
2597fb7c | 72 | //#define NO_DEBUG |
ed8d9a09 JH |
73 | |
74 | /* disable print */ | |
2597fb7c | 75 | //#define NO_PRINT |
ed8d9a09 JH |
76 | |
77 | /* disable action features */ | |
78 | //#define NO_ACTION_LAYER | |
79 | //#define NO_ACTION_TAPPING | |
80 | //#define NO_ACTION_ONESHOT | |
81 | //#define NO_ACTION_MACRO | |
82 | //#define NO_ACTION_FUNCTION | |
83 | ||
84 | #endif |