]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/MS_sculpt_mobile/config.h
Merge remote-tracking branch 'upstream/master' into user_led_configuration
[qmk_firmware.git] / keyboards / handwired / MS_sculpt_mobile / 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_H
19 #define CONFIG_H
20
21 #include "config_common.h"
22
23 /* USB Device descriptor parameter */
24 #define VENDOR_ID       0xFEED
25 #define PRODUCT_ID      0x6060
26 #define DEVICE_VER      0x0001
27 #define MANUFACTURER    Microsoftplus
28 #define DESCRIPTION     6000
29
30 /* key matrix size */
31 #define MATRIX_ROWS 8 
32 #define MATRIX_COLS 18 
33
34 #ifdef ASTAR 
35 #define PRODUCT         sculpt mobile astar
36                         /*0   1   2   3    4   5  6   7   8 */
37 #define MATRIX_ROW_PINS {D7, C6, D4, D0, D1, D3, D2, E2}
38 /*                        A  B   C   D   E   F   G   H   I   J  K   L   M   N   O   P   Q  R  */
39 #define MATRIX_COL_PINS {B4, B5, E6, B7, B6, D6,  C7, F7, F6, F4,F5, F1,F0, D5, B0, B1, B2, B3}
40
41 #else
42 #define PRODUCT         sculpt mobile teensypp
43 /*                      0  1  2  3  4 5  6   7 */
44 #define MATRIX_ROW_PINS { F7,F6,F4,F5,F3,F2,F1,F0}
45 /*                        A   B   C   D   E   F   G   H   I   J  K  L   M   N   O   P   Q  R  */
46 #define MATRIX_COL_PINS { B7, D0, D1, D2, D3, D4, D5, D6, D7, E0,E1,C1, C0, C3, C2, C5, C4,C7}
47 #define UNUSED_PINS { B6,B5,B4,B3,B2,B1,B0 }
48
49
50 #endif
51
52 /* COL2ROW or ROW2COL */
53 #define DIODE_DIRECTION ROW2COL
54
55 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
56 #define DEBOUNCING_DELAY 5
57
58 /* define if matrix has ghost (lacks anti-ghosting diodes) */
59 //#define MATRIX_HAS_GHOST
60
61
62 /*
63  * Magic Key Options
64  *
65  * Magic keys are hotkey commands that allow control over firmware functions of
66  * the keyboard. They are best used in combination with the HID Listen program,
67  * found here: https://www.pjrc.com/teensy/hid_listen.html
68  *
69  * The options below allow the magic key functionality to be changed. This is
70  * useful if your keyboard/keypad is missing keys and you want magic key support.
71  *
72  */
73
74 /* key combination for magic key command */
75 #define IS_COMMAND() ( \
76     keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
77 )
78
79
80 /*
81  * Feature disable options
82  *  These options are also useful to firmware size reduction.
83  */
84
85 /* disable debug print */
86 //#define NO_DEBUG
87
88 /* disable print */
89 //#define NO_PRINT
90
91 /* disable action features */
92 //#define NO_ACTION_LAYER
93 //#define NO_ACTION_TAPPING
94 //#define NO_ACTION_ONESHOT
95 //#define NO_ACTION_MACRO
96 //#define NO_ACTION_FUNCTION
97
98 #define PREVENT_STUCK_MODIFIERS
99
100 #endif