]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/ms_sculpt_mobile/config.h
[Keyboard] fixed pins for numpad_5x4 layout (#6311)
[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 #endif
50
51 /* COL2ROW or ROW2COL */
52 #define DIODE_DIRECTION ROW2COL
53
54 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
55 #define DEBOUNCE 5
56
57 /* define if matrix has ghost (lacks anti-ghosting diodes) */
58 //#define MATRIX_HAS_GHOST
59
60 /*
61  * Magic Key Options
62  *
63  * Magic keys are hotkey commands that allow control over firmware functions of
64  * the keyboard. They are best used in combination with the HID Listen program,
65  * found here: https://www.pjrc.com/teensy/hid_listen.html
66  *
67  * The options below allow the magic key functionality to be changed. This is
68  * useful if your keyboard/keypad is missing keys and you want magic key support.
69  *
70  */
71
72 /*
73  * Feature disable options
74  *  These options are also useful to firmware size reduction.
75  */
76
77 /* disable debug print */
78 //#define NO_DEBUG
79
80 /* disable print */
81 //#define NO_PRINT
82
83 /* disable action features */
84 //#define NO_ACTION_LAYER
85 //#define NO_ACTION_TAPPING
86 //#define NO_ACTION_ONESHOT
87 //#define NO_ACTION_MACRO
88 //#define NO_ACTION_FUNCTION
89
90 #endif