diff options
author | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
commit | dc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch) | |
tree | 4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/converter/numeric_keypad_IIe |
Diffstat (limited to 'keyboards/converter/numeric_keypad_IIe')
11 files changed, 350 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 | ||
diff --git a/keyboards/converter/numeric_keypad_IIe/info.json b/keyboards/converter/numeric_keypad_IIe/info.json new file mode 100644 index 000000000..97e40bbad --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/info.json | |||
@@ -0,0 +1,10 @@ | |||
1 | { | ||
2 | "keyboard_name": "Numeric Keypad IIe", | ||
3 | "url": "", | ||
4 | "maintainer": "qmk", | ||
5 | "layouts": { | ||
6 | "LAYOUT": { | ||
7 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"7", "x":2, "y":0}, {"label":"8", "x":3, "y":0}, {"label":"9", "x":4, "y":0}, {"label":"(", "x":5.5, "y":0}, {"label":")", "x":6.5, "y":0}, {"label":"\u2190", "x":0, "y":1}, {"label":"4", "x":2, "y":1}, {"label":"5", "x":3, "y":1}, {"label":"6", "x":4, "y":1}, {"label":"\u2212", "x":5.5, "y":1}, {"label":"\u00f7", "x":6.5, "y":1}, {"label":"\u2192", "x":0, "y":2}, {"label":"1", "x":2, "y":2}, {"label":"2", "x":3, "y":2}, {"label":"3", "x":4, "y":2}, {"label":"+", "x":5.5, "y":2}, {"label":"\u00d7", "x":6.5, "y":2}, {"label":"Space", "x":0, "y":3}, {"label":"0", "x":1.5, "y":3, "w":1.5}, {"label":",", "x":3, "y":3}, {"label":".", "x":4, "y":3}, {"label":"Ret", "x":5.5, "y":3}, {"label":"Print", "x":6.5, "y":3}] | ||
8 | } | ||
9 | } | ||
10 | } | ||
diff --git a/keyboards/converter/numeric_keypad_IIe/keymaps/default/keymap.c b/keyboards/converter/numeric_keypad_IIe/keymaps/default/keymap.c new file mode 100644 index 000000000..a8b8f568f --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/keymaps/default/keymap.c | |||
@@ -0,0 +1,42 @@ | |||
1 | /* Copyright 2019 Adam Newbold <[email protected]> | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include QMK_KEYBOARD_H | ||
17 | |||
18 | // Defines the keycodes used by our macros in process_record_user | ||
19 | enum custom_keycodes { | ||
20 | QMKBEST = SAFE_RANGE, | ||
21 | QMKURL | ||
22 | }; | ||
23 | |||
24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
25 | /* | ||
26 | +-------+ +-------+-------+-------+ +-------+-------+ | ||
27 | | Esc | | 7 | 8 | 9 | | ( | ) | | ||
28 | +-------+ +-------+-------+-------+ +-------+-------+ | ||
29 | | <-- | | 4 | 5 | 6 | | - | / | | ||
30 | +-------+ +-------+-------+-------+ +-------+-------+ | ||
31 | | --> | | 1 | 2 | 3 | | + | * | | ||
32 | +-------+ +--+-------+-------+-------+ +-------+-------+ | ||
33 | | Space | | 0 | , | . | | Ret | Print | | ||
34 | +-------+ +----------+-------+-------+ +-------+-------+ | ||
35 | */ | ||
36 | [0] = LAYOUT( | ||
37 | KC_ESCAPE, KC_KP_7, KC_KP_8, KC_KP_9, KC_LEFT_PAREN, KC_RIGHT_PAREN, | ||
38 | KC_LEFT, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_MINUS, KC_KP_SLASH, | ||
39 | KC_RIGHT, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_PLUS, KC_KP_ASTERISK, | ||
40 | KC_SPACE, KC_KP_0, KC_KP_COMMA, KC_KP_DOT, KC_RETURN, KC_QUESTION | ||
41 | ), | ||
42 | }; | ||
diff --git a/keyboards/converter/numeric_keypad_IIe/keymaps/default/readme.md b/keyboards/converter/numeric_keypad_IIe/keymaps/default/readme.md new file mode 100644 index 000000000..c58b09d15 --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/keymaps/default/readme.md | |||
@@ -0,0 +1,3 @@ | |||
1 | # Numeric Keypad //e Default Keymap | ||
2 | |||
3 | All keys perform their default functions displayed on the stock keycaps. Note that the "Print" key presses a question mark (?), which was the default behavior on the Apple //e (with ? the shorthand for the AppleSoft BASIC PRINT command). | ||
diff --git a/keyboards/converter/numeric_keypad_IIe/keymaps/newbold/config.h b/keyboards/converter/numeric_keypad_IIe/keymaps/newbold/config.h new file mode 100644 index 000000000..667668959 --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/keymaps/newbold/config.h | |||
@@ -0,0 +1,19 @@ | |||
1 | /* Copyright 2019 Adam Newbold <[email protected]> | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | // place overrides here | ||
diff --git a/keyboards/converter/numeric_keypad_IIe/keymaps/newbold/keymap.c b/keyboards/converter/numeric_keypad_IIe/keymaps/newbold/keymap.c new file mode 100644 index 000000000..e0f04557c --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/keymaps/newbold/keymap.c | |||
@@ -0,0 +1,68 @@ | |||
1 | /* Copyright 2019 Adam Newbold <[email protected]> | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include QMK_KEYBOARD_H | ||
17 | |||
18 | // Defines the keycodes used by our macros in process_record_user | ||
19 | enum custom_keycodes { | ||
20 | QMKBEST = SAFE_RANGE, | ||
21 | QMKURL | ||
22 | }; | ||
23 | |||
24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
25 | /* | ||
26 | +-------+ +-------+-------+-------+ +-------+-------+ | ||
27 | | Esc | | 7 | 8 | 9 | | ( | ) | | ||
28 | +-------+ +-------+-------+-------+ +-------+-------+ | ||
29 | | <-- | | 4 | 5 | 6 | | - | / | | ||
30 | +-------+ +-------+-------+-------+ +-------+-------+ | ||
31 | | --> | | 1 | 2 | 3 | | + | * | | ||
32 | +-------+ +--+-------+-------+-------+ +-------+-------+ | ||
33 | | Space | | 0 | , | . | | Ret | Print | | ||
34 | +-------+ +----------+-------+-------+ +-------+-------+ | ||
35 | */ | ||
36 | [0] = LAYOUT( | ||
37 | KC__MUTE, KC_KP_7, KC_KP_8, KC_KP_9, KC_LEFT_PAREN, KC_RIGHT_PAREN, \ | ||
38 | KC__VOLDOWN, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_MINUS, KC_KP_SLASH, \ | ||
39 | KC__VOLUP, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_PLUS, KC_KP_ASTERISK, \ | ||
40 | MO(1), KC_KP_0, KC_KP_COMMA, KC_KP_DOT, KC_RETURN, KC_QUESTION \ | ||
41 | ), | ||
42 | [1] = LAYOUT( | ||
43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
44 | KC_BRMD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
45 | KC_BRMU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET \ | ||
47 | ), | ||
48 | }; | ||
49 | |||
50 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
51 | return true; | ||
52 | } | ||
53 | |||
54 | void keyboard_post_init_user(void) { | ||
55 | |||
56 | } | ||
57 | |||
58 | void matrix_init_user(void) { | ||
59 | |||
60 | } | ||
61 | |||
62 | void matrix_scan_user(void) { | ||
63 | |||
64 | } | ||
65 | |||
66 | void led_set_user(uint8_t usb_led) { | ||
67 | |||
68 | } | ||
diff --git a/keyboards/converter/numeric_keypad_IIe/keymaps/newbold/readme.md b/keyboards/converter/numeric_keypad_IIe/keymaps/newbold/readme.md new file mode 100644 index 000000000..0bccfdb6c --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/keymaps/newbold/readme.md | |||
@@ -0,0 +1,28 @@ | |||
1 | # @newbold's layout for the Numeric Keypad IIe | ||
2 | |||
3 | Includes the standard layout for all keys except for the left-most column, which is remapped to these keys: | ||
4 | |||
5 | +-----------------+ | ||
6 | | Mute | | ||
7 | +-----------------+ | ||
8 | | Volume Down | | ||
9 | +-----------------+ | ||
10 | | Volume Up | | ||
11 | +-----------------+ | ||
12 | | Function | | ||
13 | +-----------------+ | ||
14 | |||
15 | With Function held down: | ||
16 | |||
17 | +-----------------+ | ||
18 | | Mute | | ||
19 | +-----------------+ | ||
20 | | Brightness Down | | ||
21 | +-----------------+ | ||
22 | | Brightness Up | | ||
23 | +-----------------+ | ||
24 | | Function | | ||
25 | +-----------------+ | ||
26 | |||
27 | And also with Function held down, "Print" (the lower right key) will trigger RESET (putting the controller into bootloader mode so it can be flashed). | ||
28 | \ No newline at end of file | ||
diff --git a/keyboards/converter/numeric_keypad_IIe/numeric_keypad_IIe.c b/keyboards/converter/numeric_keypad_IIe/numeric_keypad_IIe.c new file mode 100644 index 000000000..a2f8a5bd6 --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/numeric_keypad_IIe.c | |||
@@ -0,0 +1,16 @@ | |||
1 | /* Copyright 2019 Adam Newbold <[email protected]> | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include "numeric_keypad_IIe.h" | ||
diff --git a/keyboards/converter/numeric_keypad_IIe/numeric_keypad_IIe.h b/keyboards/converter/numeric_keypad_IIe/numeric_keypad_IIe.h new file mode 100644 index 000000000..8892b5553 --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/numeric_keypad_IIe.h | |||
@@ -0,0 +1,30 @@ | |||
1 | /* Copyright Adam Newbold <[email protected]> | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #pragma once | ||
18 | #include "quantum.h" | ||
19 | |||
20 | #define LAYOUT( \ | ||
21 | K_ESC, K_7, K_8, K_9, K_LEFT_PARENS, K_RIGHT_PARENS, \ | ||
22 | K_LEFT, K_4, K_5, K_6, K_MINUS, K_DIVIDE, \ | ||
23 | K_RIGHT, K_1, K_2, K_3, K_PLUS, K_MULTIPLY, \ | ||
24 | K_SPACE, K_0, K_COMMA, K_DOT, K_RETURN, K_PRINT \ | ||
25 | ){ \ | ||
26 | { K_RIGHT_PARENS, K_ESC, K_4, K_5, K_6, K_7 },\ | ||
27 | { K_DIVIDE, K_LEFT, K_0, K_1, K_2, K_3 },\ | ||
28 | { K_PRINT, K_SPACE, K_LEFT_PARENS, K_MINUS, K_RETURN, K_COMMA },\ | ||
29 | { K_MULTIPLY, K_RIGHT, K_8, K_9, K_DOT, K_PLUS },\ | ||
30 | } | ||
diff --git a/keyboards/converter/numeric_keypad_IIe/readme.md b/keyboards/converter/numeric_keypad_IIe/readme.md new file mode 100644 index 000000000..9eba41610 --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/readme.md | |||
@@ -0,0 +1,16 @@ | |||
1 | # Numeric Keypad IIe | ||
2 | |||
3 |  | ||
4 | |||
5 | This is a conversion project for the Numeric Keypad IIe, model A2M2003. This was an external keypad that connected to the Apple //e's motherboard (and as such, it lacked any kind of onboard controller). | ||
6 | |||
7 | The reference conversion setup uses the keyboard's DB15 (VGA) fixed cable connected to a DB15 wiring terminal with breakout board ([this one](https://www.amazon.com/gp/product/B07437293Y/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1), specifically) and wired to an [Arduino Micro](https://store.arduino.cc/usa/arduino-micro). | ||
8 | |||
9 | Keyboard Maintainer: [Adam Newbold](https://github.com/newbold) | ||
10 | Hardware Supported: Internal Numeric Keypad IIe PCB (Apple part 820.0081.c), ATmega32U4 microcontroller | ||
11 | |||
12 | Make example for this keyboard (after setting up your build environment): | ||
13 | |||
14 | make converter/numeric_keypad_IIe:default | ||
15 | |||
16 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/converter/numeric_keypad_IIe/rules.mk b/keyboards/converter/numeric_keypad_IIe/rules.mk new file mode 100644 index 000000000..eae129b29 --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/rules.mk | |||
@@ -0,0 +1,18 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = caterina | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = yes # Console for debug | ||
14 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
15 | NKRO_ENABLE = no # Enable N-Key Rollover | ||
16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
18 | AUDIO_ENABLE = no # Audio output | ||