]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/planck/keymaps/pvc/config.h
17f351756ec9d0004460dab9f75454b9ae802589
[qmk_firmware.git] / keyboards / planck / keymaps / pvc / config.h
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_USER_H
19 #define CONFIG_USER_H
20
21 #include "config_common.h"
22
23 /* key matrix size */
24 #define MATRIX_ROWS 4
25 #define MATRIX_COLS 12
26
27 /* Planck PCB default pin-out */
28 #define MATRIX_ROW_PINS { D0, D5, B5, B6 }
29 #define MATRIX_COL_PINS { F1, F0, B0, C7, F4, F5, F6, F7, D4, D6, B4, D7 }
30 #define UNUSED_PINS
31
32 /* COL2ROW or ROW2COL */
33 #define DIODE_DIRECTION COL2ROW
34
35 /* define if matrix has ghost */
36 //#define MATRIX_HAS_GHOST
37
38 /* number of backlight levels */
39 #define BACKLIGHT_LEVELS 3
40
41 /* Set 0 if debouncing isn't needed */
42 #define DEBOUNCING_DELAY 5
43
44 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
45 #define LOCKING_SUPPORT_ENABLE
46 /* Locking resynchronize hack */
47 #define LOCKING_RESYNC_ENABLE
48
49 /* key combination for command */
50 #define IS_COMMAND() ( \
51     keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
52 )
53
54 #define BACKLIGHT_PIN B7
55 #define BACKLIGHT_BREATHING
56
57 /*
58  * Feature disable options
59  *  These options are also useful to firmware size reduction.
60  */
61
62 /* disable debug print */
63 #ifndef NO_DEBUG
64 #  define NO_DEBUG
65 #endif
66
67 /* disable print */
68 // #ifndef NO_PRINT
69 // #  define NO_PRINT
70 // #endif
71
72 /* Only print user print statements */
73 #define USER_PRINT
74
75
76 /* disable action features */
77 //#define NO_ACTION_LAYER
78 //#define NO_ACTION_TAPPING
79 //#define NO_ACTION_ONESHOT
80 //#define NO_ACTION_MACRO
81 //#define NO_ACTION_FUNCTION
82
83 #endif