diff options
| author | Adam Newbold <adam@neatnik.net> | 2019-03-03 13:29:27 -0500 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-03-03 10:29:27 -0800 |
| commit | b5d85ddc90e248317fb12832f7072dfbcccd48e5 (patch) | |
| tree | 30d601a5fb89ae59c3407036f7d473e784a4f8a1 | |
| parent | 6aba3ce9d2bd108c5a7cc65625085505677fca17 (diff) | |
| download | qmk_firmware-b5d85ddc90e248317fb12832f7072dfbcccd48e5.tar.gz qmk_firmware-b5d85ddc90e248317fb12832f7072dfbcccd48e5.zip | |
[Keyboard] Adding Numeric Keypad //e converter (#5294)
* Adding Numeric Keypad //e to conversions
* Update keyboards/converter/numeric_keypad_IIe/config.h
//e -> IIe
Co-Authored-By: newbold <adam@neatnik.net>
* Update keyboards/converter/numeric_keypad_IIe/config.h
//e -> IIe and wrapped description in quotes for comma inclusion
Co-Authored-By: newbold <adam@neatnik.net>
* Updating info.json for Configurator
* Corrected legend
* Update keyboards/converter/numeric_keypad_IIe/info.json
Corrected layout
Co-Authored-By: newbold <adam@neatnik.net>
12 files changed, 477 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..8cf0eaa40 --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/config.h | |||
| @@ -0,0 +1,101 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 Adam Newbold <adam@neatnik.net> | ||
| 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 | #define DESCRIPTION "Numeric Keypad IIe, A2M2003" | ||
| 29 | |||
| 30 | /* | ||
| 31 | |||
| 32 | Pin Mappings | ||
| 33 | ============ | ||
| 34 | |||
| 35 | Dsub-15 Connection | ||
| 36 | ------------------ | ||
| 37 | |||
| 38 | Dsub-15 (female) | ||
| 39 | ,-------------------------. | ||
| 40 | \ 08 07 06 05 04 03 02 01 / | ||
| 41 | \ 15 14 13 12 11 10 09 / | ||
| 42 | `---------------------' | ||
| 43 | |||
| 44 | Header Pins | ||
| 45 | ----------- | ||
| 46 | _____________________________________ | ||
| 47 | | | | ||
| 48 | | 11 10 9 8 7 6 5 4 3 2 1 | | ||
| 49 | |_____________________________________| | ||
| 50 | |||
| 51 | |||
| 52 | Header / Matrix | ||
| 53 | --------------- | ||
| 54 | |||
| 55 | Pin Name Description | ||
| 56 | -------------------------------------------------------------- | ||
| 57 | 1,2,5,3,4,6 Y0-Y5 Y-direction key-matrix connections | ||
| 58 | 7 NC | ||
| 59 | 9,11,10,8 X4-X7 X-direction key-matrix connections | ||
| 60 | |||
| 61 | |||
| 62 | Microcontroller Configuration | ||
| 63 | ----------------------------- | ||
| 64 | |||
| 65 | (Pins are for an Arduino Micro) | ||
| 66 | |||
| 67 | +-----------------------------------+ | ||
| 68 | | Dsub-15 | Header | Matrix | Micro | | ||
| 69 | |---------+--------+--------+-------| | ||
| 70 | | 12 | 11 | X5 | B0 | | ||
| 71 | | 11 | 10 | X6 | D3 | | ||
| 72 | | 10 | 9 | X4 | B2 | | ||
| 73 | | 9 | 8 | X7 | D2 | | ||
| 74 | | NC | 7 | NC | -- | | ||
| 75 | | 7 | 6 | Y5 | E6 | | ||
| 76 | | 6 | 5 | Y2 | D4 | | ||
| 77 | | 5 | 4 | Y4 | D7 | | ||
| 78 | | 3 | 3 | Y3 | C6 | | ||
| 79 | | 2 | 2 | Y1 | D0 | | ||
| 80 | | 1 | 1 | Y0 | D1 | | ||
| 81 | +-----------------------------------+ | ||
| 82 | |||
| 83 | Note: Dsub-15 pins 4, 8, 13, 14, and 15 are unused | ||
| 84 | |||
| 85 | Reference | ||
| 86 | --------- | ||
| 87 | |||
| 88 | https://deskthority.net/wiki/Apple_Numeric_Keypad_IIe | ||
| 89 | https://geekhack.org/index.php?topic=78048.0 | ||
| 90 | http://wiki.apple2.org/index.php?title=Pinouts#Apple_.2F.2Fe_Numeric_Keypad_connector | ||
| 91 | |||
| 92 | */ | ||
| 93 | |||
| 94 | #define MATRIX_ROWS 4 | ||
| 95 | #define MATRIX_COLS 6 | ||
| 96 | #define MATRIX_ROW_PINS { B0, B2, D2, D3 } | ||
| 97 | #define MATRIX_COL_PINS { D1, D0, D4, C6, D7, E6 } | ||
| 98 | #define UNUSED_PINS | ||
| 99 | #define DIODE_DIRECTION COL2ROW | ||
| 100 | #define SOFT_SERIAL_PIN D0 | ||
| 101 | #define DEBOUNCING_DELAY 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..f1990698a --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Numeric Keypad IIe", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 7.5, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "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}] | ||
| 10 | } | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/keyboards/converter/numeric_keypad_IIe/keymaps/default/config.h b/keyboards/converter/numeric_keypad_IIe/keymaps/default/config.h new file mode 100644 index 000000000..667668959 --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/keymaps/default/config.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | /* Copyright 2019 Adam Newbold <adam@neatnik.net> | ||
| 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/default/keymap.c b/keyboards/converter/numeric_keypad_IIe/keymaps/default/keymap.c new file mode 100644 index 000000000..a8f455355 --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/keymaps/default/keymap.c | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | /* Copyright 2019 Adam Newbold <adam@neatnik.net> | ||
| 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 | }; | ||
| 43 | |||
| 44 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 45 | return true; | ||
| 46 | } | ||
| 47 | |||
| 48 | void keyboard_post_init_user(void) { | ||
| 49 | |||
| 50 | } | ||
| 51 | |||
| 52 | void matrix_init_user(void) { | ||
| 53 | |||
| 54 | } | ||
| 55 | |||
| 56 | void matrix_scan_user(void) { | ||
| 57 | |||
| 58 | } | ||
| 59 | |||
| 60 | void led_set_user(uint8_t usb_led) { | ||
| 61 | |||
| 62 | } | ||
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 <adam@neatnik.net> | ||
| 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 <adam@neatnik.net> | ||
| 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..c29d85d48 --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/numeric_keypad_IIe.c | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | /* Copyright 2019 Adam Newbold <adam@neatnik.net> | ||
| 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" | ||
| 17 | |||
| 18 | void matrix_init_kb(void) { | ||
| 19 | // put your keyboard start-up code here | ||
| 20 | // runs once when the firmware starts up | ||
| 21 | |||
| 22 | matrix_init_user(); | ||
| 23 | } | ||
| 24 | |||
| 25 | void matrix_scan_kb(void) { | ||
| 26 | // put your looping keyboard code here | ||
| 27 | // runs every cycle (a lot) | ||
| 28 | |||
| 29 | matrix_scan_user(); | ||
| 30 | } | ||
| 31 | |||
| 32 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
| 33 | // put your per-action keyboard code here | ||
| 34 | // runs for every action, just before processing by the firmware | ||
| 35 | |||
| 36 | return process_record_user(keycode, record); | ||
| 37 | } | ||
| 38 | |||
| 39 | void led_set_kb(uint8_t usb_led) { | ||
| 40 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
| 41 | |||
| 42 | led_set_user(usb_led); | ||
| 43 | } | ||
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 <adam@neatnik.net> | ||
| 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..f61a7d450 --- /dev/null +++ b/keyboards/converter/numeric_keypad_IIe/rules.mk | |||
| @@ -0,0 +1,76 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Processor frequency. | ||
| 5 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 6 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 7 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 8 | # automatically to create a 32-bit value in your source code. | ||
| 9 | # | ||
| 10 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 11 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 12 | # does not *change* the processor frequency - it should merely be updated to | ||
| 13 | # reflect the processor speed set externally so that the code can use accurate | ||
| 14 | # software delays. | ||
| 15 | F_CPU = 16000000 | ||
| 16 | |||
| 17 | # | ||
| 18 | # LUFA specific | ||
| 19 | # | ||
| 20 | # Target architecture (see library "Board Types" documentation). | ||
| 21 | ARCH = AVR8 | ||
| 22 | |||
| 23 | # Input clock frequency. | ||
| 24 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 25 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 26 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 27 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 28 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 29 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 30 | # source code. | ||
| 31 | # | ||
| 32 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 33 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 34 | F_USB = $(F_CPU) | ||
| 35 | |||
| 36 | # Interrupt driven control endpoint task(+60) | ||
| 37 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 38 | |||
| 39 | # Bootloader selection | ||
| 40 | # Teensy halfkay | ||
| 41 | # Pro Micro caterina | ||
| 42 | # Atmel DFU atmel-dfu | ||
| 43 | # LUFA DFU lufa-dfu | ||
| 44 | # QMK DFU qmk-dfu | ||
| 45 | # atmega32a bootloadHID | ||
| 46 | BOOTLOADER = caterina | ||
| 47 | |||
| 48 | # If you don't know the bootloader type, then you can specify the | ||
| 49 | # Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line | ||
| 50 | # Teensy halfKay 512 | ||
| 51 | # Teensy++ halfKay 1024 | ||
| 52 | # Atmel DFU loader 4096 | ||
| 53 | # LUFA bootloader 4096 | ||
| 54 | # USBaspLoader 2048 | ||
| 55 | # OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
| 56 | |||
| 57 | # Build Options | ||
| 58 | # change yes to no to disable | ||
| 59 | # | ||
| 60 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 61 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 62 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 63 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
| 64 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 65 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 66 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 67 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 68 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 69 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | ||
| 70 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 71 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | ||
| 72 | UNICODE_ENABLE = no # Unicode | ||
| 73 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 74 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 75 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 76 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | ||
