diff options
Diffstat (limited to 'keyboards/converter/numeric_keypad_IIe/config.h')
-rw-r--r-- | keyboards/converter/numeric_keypad_IIe/config.h | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/keyboards/converter/numeric_keypad_IIe/config.h b/keyboards/converter/numeric_keypad_IIe/config.h new file mode 100644 index 000000000..be21814f8 --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/config.h | |||
@@ -0,0 +1,100 @@ | |||
1 | /* | ||
2 | Copyright 2019 Adam Newbold <[email protected]> | ||
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 | #pragma once | ||
19 | |||
20 | #include "config_common.h" | ||
21 | |||
22 | /* USB Device descriptor parameter */ | ||
23 | #define VENDOR_ID 0xFEED | ||
24 | #define PRODUCT_ID 0x0000 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Apple Inc. | ||
27 | #define PRODUCT Numeric Keypad IIe | ||
28 | |||
29 | /* | ||
30 | |||
31 | Pin Mappings | ||
32 | ============ | ||
33 | |||
34 | Dsub-15 Connection | ||
35 | ------------------ | ||
36 | |||
37 | Dsub-15 (female) | ||
38 | ,-------------------------. | ||
39 | \ 08 07 06 05 04 03 02 01 / | ||
40 | \ 15 14 13 12 11 10 09 / | ||
41 | `---------------------' | ||
42 | |||
43 | Header Pins | ||
44 | ----------- | ||
45 | _____________________________________ | ||
46 | | | | ||
47 | | 11 10 9 8 7 6 5 4 3 2 1 | | ||
48 | |_____________________________________| | ||
49 | |||
50 | |||
51 | Header / Matrix | ||
52 | --------------- | ||
53 | |||
54 | Pin Name Description | ||
55 | -------------------------------------------------------------- | ||
56 | 1,2,5,3,4,6 Y0-Y5 Y-direction key-matrix connections | ||
57 | 7 NC | ||
58 | 9,11,10,8 X4-X7 X-direction key-matrix connections | ||
59 | |||
60 | |||
61 | Microcontroller Configuration | ||
62 | ----------------------------- | ||
63 | |||
64 | (Pins are for an Arduino Micro) | ||
65 | |||
66 | +-----------------------------------+ | ||
67 | | Dsub-15 | Header | Matrix | Micro | | ||
68 | |---------+--------+--------+-------| | ||
69 | | 12 | 11 | X5 | B0 | | ||
70 | | 11 | 10 | X6 | D3 | | ||
71 | | 10 | 9 | X4 | B2 | | ||
72 | | 9 | 8 | X7 | D2 | | ||
73 | | NC | 7 | NC | -- | | ||
74 | | 7 | 6 | Y5 | E6 | | ||
75 | | 6 | 5 | Y2 | D4 | | ||
76 | | 5 | 4 | Y4 | D7 | | ||
77 | | 3 | 3 | Y3 | C6 | | ||
78 | | 2 | 2 | Y1 | D0 | | ||
79 | | 1 | 1 | Y0 | D1 | | ||
80 | +-----------------------------------+ | ||
81 | |||
82 | Note: Dsub-15 pins 4, 8, 13, 14, and 15 are unused | ||
83 | |||
84 | Reference | ||
85 | --------- | ||
86 | |||
87 | https://deskthority.net/wiki/Apple_Numeric_Keypad_IIe | ||
88 | https://geekhack.org/index.php?topic=78048.0 | ||
89 | http://wiki.apple2.org/index.php?title=Pinouts#Apple_.2F.2Fe_Numeric_Keypad_connector | ||
90 | |||
91 | */ | ||
92 | |||
93 | #define MATRIX_ROWS 4 | ||
94 | #define MATRIX_COLS 6 | ||
95 | #define MATRIX_ROW_PINS { B0, B2, D2, D3 } | ||
96 | #define MATRIX_COL_PINS { D1, D0, D4, C6, D7, E6 } | ||
97 | #define UNUSED_PINS | ||
98 | #define DIODE_DIRECTION COL2ROW | ||
99 | #define SOFT_SERIAL_PIN D0 | ||
100 | #define DEBOUNCE 5 | ||