summaryrefslogtreecommitdiffstats
path: root/keyboards/converter/numeric_keypad_iie
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-09-05 06:36:33 +1000
committerGitHub <noreply@github.com>2022-09-04 21:36:33 +0100
commit3e02b70d28ae3f39ad41c83400dda2eb8e29e6a6 (patch)
tree566aff36a4988db5fe87a2d0cbab0b1a6926e7d0 /keyboards/converter/numeric_keypad_iie
parenta9f8111eac399f0c667c11ab0e57a04a8cde508d (diff)
Rename keyboards with uppercase letters (#18268)
Diffstat (limited to 'keyboards/converter/numeric_keypad_iie')
-rw-r--r--keyboards/converter/numeric_keypad_iie/config.h92
-rw-r--r--keyboards/converter/numeric_keypad_iie/info.json16
-rw-r--r--keyboards/converter/numeric_keypad_iie/keymaps/default/keymap.c42
-rw-r--r--keyboards/converter/numeric_keypad_iie/keymaps/default/readme.md3
-rw-r--r--keyboards/converter/numeric_keypad_iie/keymaps/newbold/config.h19
-rw-r--r--keyboards/converter/numeric_keypad_iie/keymaps/newbold/keymap.c68
-rw-r--r--keyboards/converter/numeric_keypad_iie/keymaps/newbold/readme.md28
-rw-r--r--keyboards/converter/numeric_keypad_iie/numeric_keypad_iie.c16
-rw-r--r--keyboards/converter/numeric_keypad_iie/numeric_keypad_iie.h30
-rw-r--r--keyboards/converter/numeric_keypad_iie/readme.md16
-rw-r--r--keyboards/converter/numeric_keypad_iie/rules.mk18
11 files changed, 348 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 0000000000..f9fd26163d
--- /dev/null
+++ b/keyboards/converter/numeric_keypad_iie/config.h
@@ -0,0 +1,92 @@
+/*
+Copyright 2019 Adam Newbold <adam@neatnik.net>
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#pragma once
+
+#include "config_common.h"
+
+/*
+
+Pin Mappings
+============
+
+Dsub-15 Connection
+------------------
+
+ Dsub-15 (female)
+ ,-------------------------.
+ \ 08 07 06 05 04 03 02 01 /
+ \ 15 14 13 12 11 10 09 /
+ `---------------------'
+
+Header Pins
+-----------
+ _____________________________________
+| |
+| 11 10 9 8 7 6 5 4 3 2 1 |
+|_____________________________________|
+
+
+Header / Matrix
+---------------
+
+Pin Name Description
+--------------------------------------------------------------
+1,2,5,3,4,6 Y0-Y5 Y-direction key-matrix connections
+7 NC
+9,11,10,8 X4-X7 X-direction key-matrix connections
+
+
+Microcontroller Configuration
+-----------------------------
+
+(Pins are for an Arduino Micro)
+
++-----------------------------------+
+| Dsub-15 | Header | Matrix | Micro |
+|---------+--------+--------+-------|
+| 12 | 11 | X5 | B0 |
+| 11 | 10 | X6 | D3 |
+| 10 | 9 | X4 | B2 |
+| 9 | 8 | X7 | D2 |
+| NC | 7 | NC | -- |
+| 7 | 6 | Y5 | E6 |
+| 6 | 5 | Y2 | D4 |
+| 5 | 4 | Y4 | D7 |
+| 3 | 3 | Y3 | C6 |
+| 2 | 2 | Y1 | D0 |
+| 1 | 1 | Y0 | D1 |
++-----------------------------------+
+
+Note: Dsub-15 pins 4, 8, 13, 14, and 15 are unused
+
+Reference
+---------
+
+https://deskthority.net/wiki/Apple_Numeric_Keypad_IIe
+https://geekhack.org/index.php?topic=78048.0
+http://wiki.apple2.org/index.php?title=Pinouts#Apple_.2F.2Fe_Numeric_Keypad_connector
+
+*/
+
+#define MATRIX_ROWS 4
+#define MATRIX_COLS 6
+#define MATRIX_ROW_PINS { B0, B2, D2, D3 }
+#define MATRIX_COL_PINS { D1, D0, D4, C6, D7, E6 }
+#define DIODE_DIRECTION COL2ROW
+#define SOFT_SERIAL_PIN D0
+#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 0000000000..77b3c38227
--- /dev/null
+++ b/keyboards/converter/numeric_keypad_iie/info.json
@@ -0,0 +1,16 @@
+{
+ "keyboard_name": "Numeric Keypad IIe",
+ "manufacturer": "Apple Inc.",
+ "url": "",
+ "maintainer": "qmk",
+ "usb": {
+ "vid": "0xFEED",
+ "pid": "0x0000",
+ "device_version": "0.0.1"
+ },
+ "layouts": {
+ "LAYOUT": {
+ "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}]
+ }
+ }
+}
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 0000000000..a8b8f568ff
--- /dev/null
+++ b/keyboards/converter/numeric_keypad_iie/keymaps/default/keymap.c
@@ -0,0 +1,42 @@
+/* Copyright 2019 Adam Newbold <adam@neatnik.net>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+#include QMK_KEYBOARD_H
+
+// Defines the keycodes used by our macros in process_record_user
+enum custom_keycodes {
+ QMKBEST = SAFE_RANGE,
+ QMKURL
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+/*
+ +-------+ +-------+-------+-------+ +-------+-------+
+ | Esc | | 7 | 8 | 9 | | ( | ) |
+ +-------+ +-------+-------+-------+ +-------+-------+
+ | <-- | | 4 | 5 | 6 | | - | / |
+ +-------+ +-------+-------+-------+ +-------+-------+
+ | --> | | 1 | 2 | 3 | | + | * |
+ +-------+ +--+-------+-------+-------+ +-------+-------+
+ | Space | | 0 | , | . | | Ret | Print |
+ +-------+ +----------+-------+-------+ +-------+-------+
+*/
+ [0] = LAYOUT(
+ KC_ESCAPE, KC_KP_7, KC_KP_8, KC_KP_9, KC_LEFT_PAREN, KC_RIGHT_PAREN,
+ KC_LEFT, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_MINUS, KC_KP_SLASH,
+ KC_RIGHT, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_PLUS, KC_KP_ASTERISK,
+ KC_SPACE, KC_KP_0, KC_KP_COMMA, KC_KP_DOT, KC_RETURN, KC_QUESTION
+ ),
+};
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 0000000000..c58b09d156
--- /dev/null
+++ b/keyboards/converter/numeric_keypad_iie/keymaps/default/readme.md
@@ -0,0 +1,3 @@
+# Numeric Keypad //e Default Keymap
+
+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 0000000000..667668959a
--- /dev/null
+++ b/keyboards/converter/numeric_keypad_iie/keymaps/newbold/config.h
@@ -0,0 +1,19 @@
+/* Copyright 2019 Adam Newbold <adam@neatnik.net>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+// 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 0000000000..0255798860
--- /dev/null
+++ b/keyboards/converter/numeric_keypad_iie/keymaps/newbold/keymap.c
@@ -0,0 +1,68 @@
+/* Copyright 2019 Adam Newbold <adam@neatnik.net>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+#include QMK_KEYBOARD_H
+
+// Defines the keycodes used by our macros in process_record_user
+enum custom_keycodes {
+ QMKBEST = SAFE_RANGE,
+ QMKURL
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+/*
+ +-------+ +-------+-------+-------+ +-------+-------+
+ | Esc | | 7 | 8 | 9 | | ( | ) |
+ +-------+ +-------+-------+-------+ +-------+-------+
+ | <-- | | 4 | 5 | 6 | | - | / |
+ +-------+ +-------+-------+-------+ +-------+-------+
+ | --> | | 1 | 2 | 3 | | + | * |
+ +-------+ +--+-------+-------+-------+ +-------+-------+
+ | Space | | 0 | , | . | | Ret | Print |
+ +-------+ +----------+-------+-------+ +-------+-------+
+*/
+ [0] = LAYOUT(
+ KC__MUTE, KC_KP_7, KC_KP_8, KC_KP_9, KC_LEFT_PAREN, KC_RIGHT_PAREN, \
+ KC__VOLDOWN, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_MINUS, KC_KP_SLASH, \
+ KC__VOLUP, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_PLUS, KC_KP_ASTERISK, \
+ MO(1), KC_KP_0, KC_KP_COMMA, KC_KP_DOT, KC_RETURN, KC_QUESTION \
+ ),
+ [1] = LAYOUT(
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
+ KC_BRMD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
+ KC_BRMU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, QK_BOOT \
+ ),
+};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ return true;
+}
+
+void keyboard_post_init_user(void) {
+
+}
+
+void matrix_init_user(void) {
+
+}
+
+void matrix_scan_user(void) {
+
+}
+
+void led_set_user(uint8_t usb_led) {
+
+}
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 0000000000..0bccfdb6cf
--- /dev/null
+++ b/keyboards/converter/numeric_keypad_iie/keymaps/newbold/readme.md
@@ -0,0 +1,28 @@
+# @newbold's layout for the Numeric Keypad IIe
+
+Includes the standard layout for all keys except for the left-most column, which is remapped to these keys:
+
+ +-----------------+
+ | Mute |
+ +-----------------+
+ | Volume Down |
+ +-----------------+
+ | Volume Up |
+ +-----------------+
+ | Function |
+ +-----------------+
+
+ With Function held down:
+
+ +-----------------+
+ | Mute |
+ +-----------------+
+ | Brightness Down |
+ +-----------------+
+ | Brightness Up |
+ +-----------------+
+ | Function |
+ +-----------------+
+
+ 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).
+ \ 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 0000000000..341af05b31
--- /dev/null
+++ b/keyboards/converter/numeric_keypad_iie/numeric_keypad_iie.c
@@ -0,0 +1,16 @@
+/* Copyright 2019 Adam Newbold <adam@neatnik.net>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+#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 0000000000..8892b5553b
--- /dev/null
+++ b/keyboards/converter/numeric_keypad_iie/numeric_keypad_iie.h
@@ -0,0 +1,30 @@
+/* Copyright Adam Newbold <adam@neatnik.net>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+#include "quantum.h"
+
+#define LAYOUT( \
+ K_ESC, K_7, K_8, K_9, K_LEFT_PARENS, K_RIGHT_PARENS, \
+ K_LEFT, K_4, K_5, K_6, K_MINUS, K_DIVIDE, \
+ K_RIGHT, K_1, K_2, K_3, K_PLUS, K_MULTIPLY, \
+ K_SPACE, K_0, K_COMMA, K_DOT, K_RETURN, K_PRINT \
+){ \
+ { K_RIGHT_PARENS, K_ESC, K_4, K_5, K_6, K_7 },\
+ { K_DIVIDE, K_LEFT, K_0, K_1, K_2, K_3 },\
+ { K_PRINT, K_SPACE, K_LEFT_PARENS, K_MINUS, K_RETURN, K_COMMA },\
+ { K_MULTIPLY, K_RIGHT, K_8, K_9, K_DOT, K_PLUS },\
+}
diff --git a/keyboards/converter/numeric_keypad_iie/readme.md b/keyboards/converter/numeric_keypad_iie/readme.md
new file mode 100644
index 0000000000..0de562d808
--- /dev/null
+++ b/keyboards/converter/numeric_keypad_iie/readme.md
@@ -0,0 +1,16 @@
+# Numeric Keypad IIe
+
+![Numeric Keypad IIe](https://upload.wikimedia.org/wikipedia/commons/3/3b/Apple_Numeric_Keypad_IIe.jpg)
+
+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).
+
+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).
+
+Keyboard Maintainer: [Adam Newbold](https://github.com/newbold)
+Hardware Supported: Internal Numeric Keypad IIe PCB (Apple part 820.0081.c), ATmega32U4 microcontroller
+
+Make example for this keyboard (after setting up your build environment):
+
+ make converter/numeric_keypad_iie:default
+
+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 0000000000..eae129b29b
--- /dev/null
+++ b/keyboards/converter/numeric_keypad_iie/rules.mk
@@ -0,0 +1,18 @@
+# MCU name
+MCU = atmega32u4
+
+# Bootloader selection
+BOOTLOADER = caterina
+
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
+MOUSEKEY_ENABLE = yes # Mouse keys
+EXTRAKEY_ENABLE = yes # Audio control and System control
+CONSOLE_ENABLE = yes # Console for debug
+COMMAND_ENABLE = yes # Commands for debug and configuration
+NKRO_ENABLE = no # Enable N-Key Rollover
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
+AUDIO_ENABLE = no # Audio output