summaryrefslogtreecommitdiff
path: root/keyboards/ibm
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ibm')
-rw-r--r--keyboards/ibm/model_m/ashpil_usbc/ashpil_usbc.c36
-rw-r--r--keyboards/ibm/model_m/ashpil_usbc/info.json270
-rw-r--r--keyboards/ibm/model_m/ashpil_usbc/keymaps/ashpil/config.h23
-rw-r--r--keyboards/ibm/model_m/ashpil_usbc/keymaps/ashpil/keymap.c47
-rw-r--r--keyboards/ibm/model_m/ashpil_usbc/keymaps/ashpil/rules.mk1
-rw-r--r--keyboards/ibm/model_m/ashpil_usbc/keymaps/default/keymap.c27
-rw-r--r--keyboards/ibm/model_m/ashpil_usbc/readme.md14
-rw-r--r--keyboards/ibm/model_m/ashpil_usbc/rules.mk12
-rw-r--r--keyboards/ibm/model_m/modelm/readme.md24
-rw-r--r--keyboards/ibm/model_m/mschwingen/config.h77
-rw-r--r--keyboards/ibm/model_m/mschwingen/info.json143
-rw-r--r--keyboards/ibm/model_m/mschwingen/keymaps/default/keymap.c86
-rw-r--r--keyboards/ibm/model_m/mschwingen/led_ffc/readme.md21
-rw-r--r--keyboards/ibm/model_m/mschwingen/led_ffc/rules.mk1
-rw-r--r--keyboards/ibm/model_m/mschwingen/led_wired/readme.md21
-rw-r--r--keyboards/ibm/model_m/mschwingen/led_wired/rules.mk1
-rw-r--r--keyboards/ibm/model_m/mschwingen/led_ws2812/readme.md21
-rw-r--r--keyboards/ibm/model_m/mschwingen/led_ws2812/rules.mk1
-rw-r--r--keyboards/ibm/model_m/mschwingen/matrix.c113
-rw-r--r--keyboards/ibm/model_m/mschwingen/mschwingen.c213
-rw-r--r--keyboards/ibm/model_m/mschwingen/mschwingen.h22
-rw-r--r--keyboards/ibm/model_m/mschwingen/post_rules.mk3
-rw-r--r--keyboards/ibm/model_m/mschwingen/readme.md25
-rw-r--r--keyboards/ibm/model_m/mschwingen/rules.mk29
-rw-r--r--keyboards/ibm/model_m/teensy2/config.h37
-rw-r--r--keyboards/ibm/model_m/teensy2/info.json149
-rw-r--r--keyboards/ibm/model_m/teensy2/keymaps/default/keymap.c27
-rw-r--r--keyboards/ibm/model_m/teensy2/keymaps/default/readme.md1
-rw-r--r--keyboards/ibm/model_m/teensy2/readme.md29
-rw-r--r--keyboards/ibm/model_m/teensy2/rules.mk12
-rw-r--r--keyboards/ibm/model_m/teensypp/config.h37
-rw-r--r--keyboards/ibm/model_m/teensypp/info.json145
-rw-r--r--keyboards/ibm/model_m/teensypp/keymaps/default/keymap.c27
-rw-r--r--keyboards/ibm/model_m/teensypp/keymaps/default/readme.md1
-rw-r--r--keyboards/ibm/model_m/teensypp/keymaps/iw0rm3r/config.h19
-rw-r--r--keyboards/ibm/model_m/teensypp/keymaps/iw0rm3r/keymap.c43
-rw-r--r--keyboards/ibm/model_m/teensypp/keymaps/iw0rm3r/readme.md5
-rw-r--r--keyboards/ibm/model_m/teensypp/readme.md42
-rw-r--r--keyboards/ibm/model_m/teensypp/rules.mk12
-rw-r--r--keyboards/ibm/model_m/teensypp/teensypp.c36
-rw-r--r--keyboards/ibm/model_m/yugo_m/config.h42
-rw-r--r--keyboards/ibm/model_m/yugo_m/info.json398
-rw-r--r--keyboards/ibm/model_m/yugo_m/keymaps/default/keymap.c46
-rw-r--r--keyboards/ibm/model_m/yugo_m/keymaps/default/readme.md1
-rw-r--r--keyboards/ibm/model_m/yugo_m/readme.md25
-rw-r--r--keyboards/ibm/model_m/yugo_m/rules.mk12
-rw-r--r--keyboards/ibm/model_m/yugo_m/yugo_m.c35
-rw-r--r--keyboards/ibm/model_m_122/ibm122m/config.h42
-rw-r--r--keyboards/ibm/model_m_122/ibm122m/info.json169
-rw-r--r--keyboards/ibm/model_m_122/ibm122m/keymaps/andresteare/keymap.c29
-rw-r--r--keyboards/ibm/model_m_122/ibm122m/keymaps/default/config.h19
-rw-r--r--keyboards/ibm/model_m_122/ibm122m/keymaps/default/keymap.c29
-rw-r--r--keyboards/ibm/model_m_122/ibm122m/keymaps/default/readme.md2
-rw-r--r--keyboards/ibm/model_m_122/ibm122m/keymaps/lukaus/config.h19
-rw-r--r--keyboards/ibm/model_m_122/ibm122m/keymaps/lukaus/keymap.c558
-rw-r--r--keyboards/ibm/model_m_122/ibm122m/keymaps/lukaus/readme.md2
-rw-r--r--keyboards/ibm/model_m_122/ibm122m/keymaps/via/keymap.c63
-rw-r--r--keyboards/ibm/model_m_122/ibm122m/keymaps/via/rules.mk1
-rw-r--r--keyboards/ibm/model_m_122/ibm122m/readme.md31
-rw-r--r--keyboards/ibm/model_m_122/ibm122m/rules.mk11
-rw-r--r--keyboards/ibm/model_m_122/m122_3270/blackpill/info.json13
-rw-r--r--keyboards/ibm/model_m_122/m122_3270/blackpill/readme.md3
-rw-r--r--keyboards/ibm/model_m_122/m122_3270/blackpill/rules.mk12
-rw-r--r--keyboards/ibm/model_m_122/m122_3270/bluepill/info.json12
-rw-r--r--keyboards/ibm/model_m_122/m122_3270/bluepill/readme.md2
-rw-r--r--keyboards/ibm/model_m_122/m122_3270/bluepill/rules.mk0
-rw-r--r--keyboards/ibm/model_m_122/m122_3270/info.json161
-rw-r--r--keyboards/ibm/model_m_122/m122_3270/keymaps/default/keymap.c214
-rw-r--r--keyboards/ibm/model_m_122/m122_3270/keymaps/default/readme.md35
-rw-r--r--keyboards/ibm/model_m_122/m122_3270/readme.md33
-rw-r--r--keyboards/ibm/model_m_122/m122_3270/teensy/info.json12
-rw-r--r--keyboards/ibm/model_m_122/m122_3270/teensy/readme.md3
-rw-r--r--keyboards/ibm/model_m_122/m122_3270/teensy/rules.mk12
-rw-r--r--keyboards/ibm/model_m_122/readme.md24
-rw-r--r--keyboards/ibm/model_m_ssk/readme.md24
-rw-r--r--keyboards/ibm/model_m_ssk/teensypp_ssk/config.h37
-rw-r--r--keyboards/ibm/model_m_ssk/teensypp_ssk/info.json128
-rw-r--r--keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/default/keymap.c114
-rw-r--r--keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/default/readme.md1
-rw-r--r--keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/tiltowait/config.h21
-rw-r--r--keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/tiltowait/keymap.c116
-rw-r--r--keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/tiltowait/readme.md11
-rw-r--r--keyboards/ibm/model_m_ssk/teensypp_ssk/readme.md55
-rw-r--r--keyboards/ibm/model_m_ssk/teensypp_ssk/rules.mk12
84 files changed, 4442 insertions, 0 deletions
diff --git a/keyboards/ibm/model_m/ashpil_usbc/ashpil_usbc.c b/keyboards/ibm/model_m/ashpil_usbc/ashpil_usbc.c
new file mode 100644
index 0000000000..92b577635c
--- /dev/null
+++ b/keyboards/ibm/model_m/ashpil_usbc/ashpil_usbc.c
@@ -0,0 +1,36 @@
+/* Copyright 2019 ashpil
+ *
+ * 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 "quantum.h"
+
+void keyboard_pre_init_kb(void) {
+ /* Setting status LEDs pins to output and +5V (off) */
+ setPinOutput(D5);
+ setPinOutput(D6);
+ setPinOutput(D7);
+ writePinHigh(D5);
+ writePinHigh(D6);
+ writePinHigh(D7);
+}
+
+bool led_update_kb(led_t led_state) {
+ if(led_update_user(led_state)) {
+ writePin(D5, !led_state.num_lock);
+ writePin(D6, !led_state.caps_lock);
+ writePin(D7, !led_state.scroll_lock);
+ }
+ return true;
+}
diff --git a/keyboards/ibm/model_m/ashpil_usbc/info.json b/keyboards/ibm/model_m/ashpil_usbc/info.json
new file mode 100644
index 0000000000..ffdb608edc
--- /dev/null
+++ b/keyboards/ibm/model_m/ashpil_usbc/info.json
@@ -0,0 +1,270 @@
+{
+ "keyboard_name": "IBM Model M 101/102",
+ "manufacturer": "ashpil",
+ "url": "https://github.com/qmk/qmk_firmware/tree/master/keyboards/ibm/model_m/ashpil_usbc",
+ "maintainer": "ashpil",
+ "usb": {
+ "vid": "0xFEED",
+ "pid": "0x0000",
+ "device_version": "0.0.1"
+ },
+ "matrix_pins": {
+ "cols": ["E6", "E7", "F0", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "A0", "A1", "A2", "A3", "A4", "A5"],
+ "rows": ["C7", "C6", "C5", "C4", "C3", "C2", "C1", "C0"]
+ },
+ "diode_direction": "ROW2COL",
+ "bootmagic": {
+ "matrix": [0, 2]
+ },
+ "processor": "at90usb1286",
+ "bootloader": "atmel-dfu",
+ "layouts": {
+ "LAYOUT_fullsize_iso_wkl": {
+ "layout": [
+ {"matrix": [0, 2], "x": 0, "y": 0},
+
+ {"matrix": [2, 3], "x": 2, "y": 0},
+ {"matrix": [2, 4], "x": 3, "y": 0},
+ {"matrix": [1, 4], "x": 4, "y": 0},
+ {"matrix": [0, 4], "x": 5, "y": 0},
+
+ {"matrix": [0, 6], "x": 6.5, "y": 0},
+ {"matrix": [0, 8], "x": 7.5, "y": 0},
+ {"matrix": [1, 9], "x": 8.5, "y": 0},
+ {"matrix": [2, 9], "x": 9.5, "y": 0},
+
+ {"matrix": [2, 6], "x": 11, "y": 0},
+ {"matrix": [3, 6], "x": 12, "y": 0},
+ {"matrix": [3, 11], "x": 13, "y": 0},
+ {"matrix": [3, 12], "x": 14, "y": 0},
+
+ {"matrix": [3, 15], "x": 15.25, "y": 0},
+ {"matrix": [4, 15], "x": 16.25, "y": 0},
+ {"matrix": [6, 14], "x": 17.25, "y": 0},
+
+ {"matrix": [2, 2], "x": 0, "y": 1.5},
+ {"matrix": [3, 2], "x": 1, "y": 1.5},
+ {"matrix": [3, 3], "x": 2, "y": 1.5},
+ {"matrix": [3, 4], "x": 3, "y": 1.5},
+ {"matrix": [3, 5], "x": 4, "y": 1.5},
+ {"matrix": [2, 5], "x": 5, "y": 1.5},
+ {"matrix": [2, 7], "x": 6, "y": 1.5},
+ {"matrix": [3, 7], "x": 7, "y": 1.5},
+ {"matrix": [3, 8], "x": 8, "y": 1.5},
+ {"matrix": [3, 9], "x": 9, "y": 1.5},
+ {"matrix": [3, 10], "x": 10, "y": 1.5},
+ {"matrix": [2, 10], "x": 11, "y": 1.5},
+ {"matrix": [2, 8], "x": 12, "y": 1.5},
+ {"matrix": [1, 6], "x": 13, "y": 1.5, "w": 2},
+
+ {"matrix": [2, 12], "x": 15.25, "y": 1.5},
+ {"matrix": [2, 14], "x": 16.25, "y": 1.5},
+ {"matrix": [2, 13], "x": 17.25, "y": 1.5},
+
+ {"matrix": [6, 11], "x": 18.5, "y": 1.5},
+ {"matrix": [6, 12], "x": 19.5, "y": 1.5},
+ {"matrix": [6, 13], "x": 20.5, "y": 1.5},
+ {"matrix": [7, 13], "x": 21.5, "y": 1.5},
+
+ {"matrix": [1, 2], "x": 0, "y": 2.5, "w": 1.5},
+ {"matrix": [4, 2], "x": 1.5, "y": 2.5},
+ {"matrix": [4, 3], "x": 2.5, "y": 2.5},
+ {"matrix": [4, 4], "x": 3.5, "y": 2.5},
+ {"matrix": [4, 5], "x": 4.5, "y": 2.5},
+ {"matrix": [1, 5], "x": 5.5, "y": 2.5},
+ {"matrix": [1, 7], "x": 6.5, "y": 2.5},
+ {"matrix": [4, 7], "x": 7.5, "y": 2.5},
+ {"matrix": [4, 8], "x": 8.5, "y": 2.5},
+ {"matrix": [4, 9], "x": 9.5, "y": 2.5},
+ {"matrix": [4, 10], "x": 10.5, "y": 2.5},
+ {"matrix": [1, 10], "x": 11.5, "y": 2.5},
+ {"matrix": [1, 8], "x": 12.5, "y": 2.5},
+
+ {"matrix": [2, 11], "x": 15.25, "y": 2.5},
+ {"matrix": [3, 14], "x": 16.25, "y": 2.5},
+ {"matrix": [3, 13], "x": 17.25, "y": 2.5},
+
+ {"matrix": [4, 11], "x": 18.5, "y": 2.5},
+ {"matrix": [4, 12], "x": 19.5, "y": 2.5},
+ {"matrix": [4, 13], "x": 20.5, "y": 2.5},
+ {"matrix": [4, 14], "x": 21.5, "y": 2.5, "h": 2},
+
+ {"matrix": [1, 3], "x": 0, "y": 3.5, "w": 1.5},
+ {"matrix": [5, 2], "x": 1.75, "y": 3.5},
+ {"matrix": [5, 3], "x": 2.75, "y": 3.5},
+ {"matrix": [5, 4], "x": 3.75, "y": 3.5},
+ {"matrix": [5, 5], "x": 4.75, "y": 3.5},
+ {"matrix": [0, 5], "x": 5.75, "y": 3.5},
+ {"matrix": [0, 7], "x": 6.75, "y": 3.5},
+ {"matrix": [5, 7], "x": 7.75, "y": 3.5},
+ {"matrix": [5, 8], "x": 8.75, "y": 3.5},
+ {"matrix": [5, 9], "x": 9.75, "y": 3.5},
+ {"matrix": [5, 10], "x": 10.75, "y": 3.5},
+ {"matrix": [0, 10], "x": 11.75, "y": 3.5},
+ {"matrix": [6, 10], "x": 12.75, "y": 3.5},
+ {"matrix": [6, 6], "x": 13.75, "y": 2.5, "w": 1.25, "h": 2},
+
+ {"matrix": [1, 11], "x": 18.5, "y": 3.5},
+ {"matrix": [1, 12], "x": 19.5, "y": 3.5},
+ {"matrix": [1, 13], "x": 20.5, "y": 3.5},
+
+ {"matrix": [1, 1], "x": 0, "y": 4.5, "w": 1.25},
+ {"matrix": [0, 3], "x": 1.25, "y": 4.5},
+ {"matrix": [6, 2], "x": 2.25, "y": 4.5},
+ {"matrix": [6, 3], "x": 3.25, "y": 4.5},
+ {"matrix": [6, 4], "x": 4.25, "y": 4.5},
+ {"matrix": [6, 5], "x": 5.25, "y": 4.5},
+ {"matrix": [7, 5], "x": 6.25, "y": 4.5},
+ {"matrix": [7, 7], "x": 7.25, "y": 4.5},
+ {"matrix": [6, 7], "x": 8.25, "y": 4.5},
+ {"matrix": [6, 8], "x": 9.25, "y": 4.5},
+ {"matrix": [6, 9], "x": 10.25, "y": 4.5},
+ {"matrix": [7, 10], "x": 11.25, "y": 4.5},
+ {"matrix": [6, 1], "x": 12.25, "y": 4.5, "w": 2.75},
+
+ {"matrix": [0, 14], "x": 16.25, "y": 4.5},
+
+ {"matrix": [5, 11], "x": 18.5, "y": 4.5},
+ {"matrix": [5, 12], "x": 19.5, "y": 4.5},
+ {"matrix": [5, 13], "x": 20.5, "y": 4.5},
+ {"matrix": [5, 14], "x": 21.5, "y": 4.5, "h": 2},
+
+ {"matrix": [2, 0], "x": 0, "y": 5.5, "w": 1.5},
+ {"matrix": [0, 15], "x": 2.5, "y": 5.5, "w": 1.5},
+ {"matrix": [7, 6], "x": 4, "y": 5.5, "w": 7},
+ {"matrix": [7, 15], "x": 11, "y": 5.5, "w": 1.5},
+ {"matrix": [6, 0], "x": 13.5, "y": 5.5, "w": 1.5},
+
+ {"matrix": [7, 14], "x": 15.25, "y": 5.5},
+ {"matrix": [7, 11], "x": 16.25, "y": 5.5},
+ {"matrix": [7, 12], "x": 17.25, "y": 5.5},
+
+ {"matrix": [0, 12], "x": 18.5, "y": 5.5, "w": 2},
+ {"matrix": [0, 13], "x": 20.5, "y": 5.5}
+ ]
+ },
+ "LAYOUT_fullsize_ansi_wkl": {
+ "layout": [
+ {"matrix": [0, 2], "x": 0, "y": 0},
+
+ {"matrix": [2, 3], "x": 2, "y": 0},
+ {"matrix": [2, 4], "x": 3, "y": 0},
+ {"matrix": [1, 4], "x": 4, "y": 0},
+ {"matrix": [0, 4], "x": 5, "y": 0},
+
+ {"matrix": [0, 6], "x": 6.5, "y": 0},
+ {"matrix": [0, 8], "x": 7.5, "y": 0},
+ {"matrix": [1, 9], "x": 8.5, "y": 0},
+ {"matrix": [2, 9], "x": 9.5, "y": 0},
+
+ {"matrix": [2, 6], "x": 11, "y": 0},
+ {"matrix": [3, 6], "x": 12, "y": 0},
+ {"matrix": [3, 11], "x": 13, "y": 0},
+ {"matrix": [3, 12], "x": 14, "y": 0},
+
+ {"matrix": [3, 15], "x": 15.25, "y": 0},
+ {"matrix": [4, 15], "x": 16.25, "y": 0},
+ {"matrix": [6, 14], "x": 17.25, "y": 0},
+
+ {"matrix": [2, 2], "x": 0, "y": 1.5},
+ {"matrix": [3, 2], "x": 1, "y": 1.5},
+ {"matrix": [3, 3], "x": 2, "y": 1.5},
+ {"matrix": [3, 4], "x": 3, "y": 1.5},
+ {"matrix": [3, 5], "x": 4, "y": 1.5},
+ {"matrix": [2, 5], "x": 5, "y": 1.5},
+ {"matrix": [2, 7], "x": 6, "y": 1.5},
+ {"matrix": [3, 7], "x": 7, "y": 1.5},
+ {"matrix": [3, 8], "x": 8, "y": 1.5},
+ {"matrix": [3, 9], "x": 9, "y": 1.5},
+ {"matrix": [3, 10], "x": 10, "y": 1.5},
+ {"matrix": [2, 10], "x": 11, "y": 1.5},
+ {"matrix": [2, 8], "x": 12, "y": 1.5},
+ {"matrix": [1, 6], "x": 13, "y": 1.5, "w": 2},
+
+ {"matrix": [2, 12], "x": 15.25, "y": 1.5},
+ {"matrix": [2, 14], "x": 16.25, "y": 1.5},
+ {"matrix": [2, 13], "x": 17.25, "y": 1.5},
+
+ {"matrix": [6, 11], "x": 18.5, "y": 1.5},
+ {"matrix": [6, 12], "x": 19.5, "y": 1.5},
+ {"matrix": [6, 13], "x": 20.5, "y": 1.5},
+ {"matrix": [7, 13], "x": 21.5, "y": 1.5},
+
+ {"matrix": [1, 2], "x": 0, "y": 2.5, "w": 1.5},
+ {"matrix": [4, 2], "x": 1.5, "y": 2.5},
+ {"matrix": [4, 3], "x": 2.5, "y": 2.5},
+ {"matrix": [4, 4], "x": 3.5, "y": 2.5},
+ {"matrix": [4, 5], "x": 4.5, "y": 2.5},
+ {"matrix": [1, 5], "x": 5.5, "y": 2.5},
+ {"matrix": [1, 7], "x": 6.5, "y": 2.5},
+ {"matrix": [4, 7], "x": 7.5, "y": 2.5},
+ {"matrix": [4, 8], "x": 8.5, "y": 2.5},
+ {"matrix": [4, 9], "x": 9.5, "y": 2.5},
+ {"matrix": [4, 10], "x": 10.5, "y": 2.5},
+ {"matrix": [1, 10], "x": 11.5, "y": 2.5},
+ {"matrix": [1, 8], "x": 12.5, "y": 2.5},
+ {"matrix": [5, 6], "x": 13.5, "y": 2.5, "w": 1.5},
+
+ {"matrix": [2, 11], "x": 15.25, "y": 2.5},
+ {"matrix": [3, 14], "x": 16.25, "y": 2.5},
+ {"matrix": [3, 13], "x": 17.25, "y": 2.5},
+
+ {"matrix": [4, 11], "x": 18.5, "y": 2.5},
+ {"matrix": [4, 12], "x": 19.5, "y": 2.5},
+ {"matrix": [4, 13], "x": 20.5, "y": 2.5},
+ {"matrix": [4, 14], "x": 21.5, "y": 2.5, "h": 2},
+
+ {"matrix": [1, 3], "x": 0, "y": 3.5, "w": 1.5},
+ {"matrix": [5, 2], "x": 1.75, "y": 3.5},
+ {"matrix": [5, 3], "x": 2.75, "y": 3.5},
+ {"matrix": [5, 4], "x": 3.75, "y": 3.5},
+ {"matrix": [5, 5], "x": 4.75, "y": 3.5},
+ {"matrix": [0, 5], "x": 5.75, "y": 3.5},
+ {"matrix": [0, 7], "x": 6.75, "y": 3.5},
+ {"matrix": [5, 7], "x": 7.75, "y": 3.5},
+ {"matrix": [5, 8], "x": 8.75, "y": 3.5},
+ {"matrix": [5, 9], "x": 9.75, "y": 3.5},
+ {"matrix": [5, 10], "x": 10.75, "y": 3.5},
+ {"matrix": [0, 10], "x": 11.75, "y": 3.5},
+ {"matrix": [6, 6], "x": 12.75, "y": 3.5, "w": 2.25},
+
+ {"matrix": [1, 11], "x": 18.5, "y": 3.5},
+ {"matrix": [1, 12], "x": 19.5, "y": 3.5},
+ {"matrix": [1, 13], "x": 20.5, "y": 3.5},
+
+ {"matrix": [1, 1], "x": 0, "y": 4.5, "w": 2.25},
+ {"matrix": [6, 2], "x": 2.25, "y": 4.5},
+ {"matrix": [6, 3], "x": 3.25, "y": 4.5},
+ {"matrix": [6, 4], "x": 4.25, "y": 4.5},
+ {"matrix": [6, 5], "x": 5.25, "y": 4.5},
+ {"matrix": [7, 5], "x": 6.25, "y": 4.5},
+ {"matrix": [7, 7], "x": 7.25, "y": 4.5},
+ {"matrix": [6, 7], "x": 8.25, "y": 4.5},
+ {"matrix": [6, 8], "x": 9.25, "y": 4.5},
+ {"matrix": [6, 9], "x": 10.25, "y": 4.5},
+ {"matrix": [7, 10], "x": 11.25, "y": 4.5},
+ {"matrix": [6, 1], "x": 12.25, "y": 4.5, "w": 2.75},
+
+ {"matrix": [0, 14], "x": 16.25, "y": 4.5},
+
+ {"matrix": [5, 11], "x": 18.5, "y": 4.5},
+ {"matrix": [5, 12], "x": 19.5, "y": 4.5},
+ {"matrix": [5, 13], "x": 20.5, "y": 4.5},
+ {"matrix": [5, 14], "x": 21.5, "y": 4.5, "h": 2},
+
+ {"matrix": [2, 0], "x": 0, "y": 5.5, "w": 1.5},
+ {"matrix": [0, 15], "x": 2.5, "y": 5.5, "w": 1.5},
+ {"matrix": [7, 6], "x": 4, "y": 5.5, "w": 7},
+ {"matrix": [7, 15], "x": 11, "y": 5.5, "w": 1.5},
+ {"matrix": [6, 0], "x": 13.5, "y": 5.5, "w": 1.5},
+
+ {"matrix": [7, 14], "x": 15.25, "y": 5.5},
+ {"matrix": [7, 11], "x": 16.25, "y": 5.5},
+ {"matrix": [7, 12], "x": 17.25, "y": 5.5},
+
+ {"matrix": [0, 12], "x": 18.5, "y": 5.5, "w": 2},
+ {"matrix": [0, 13], "x": 20.5, "y": 5.5}
+ ]
+ }
+ }
+}
diff --git a/keyboards/ibm/model_m/ashpil_usbc/keymaps/ashpil/config.h b/keyboards/ibm/model_m/ashpil_usbc/keymaps/ashpil/config.h
new file mode 100644
index 0000000000..59cec33010
--- /dev/null
+++ b/keyboards/ibm/model_m/ashpil_usbc/keymaps/ashpil/config.h
@@ -0,0 +1,23 @@
+/* Copyright 2019 ashpil
+ *
+ * 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
+
+
+/* Add combos */
+#define COMBO_TERM 200
diff --git a/keyboards/ibm/model_m/ashpil_usbc/keymaps/ashpil/keymap.c b/keyboards/ibm/model_m/ashpil_usbc/keymaps/ashpil/keymap.c
new file mode 100644
index 0000000000..e8df1f0c81
--- /dev/null
+++ b/keyboards/ibm/model_m/ashpil_usbc/keymaps/ashpil/keymap.c
@@ -0,0 +1,47 @@
+/* Copyright 2019 ashpil
+ *
+ * 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
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT_fullsize_ansi_wkl( /* Base layer */
+ KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCRL, KC_PAUS,
+ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_MEDIA_PLAY_PAUSE, KC_AUDIO_MUTE, KC_AUDIO_VOL_UP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_MEDIA_PREV_TRACK, KC_MEDIA_NEXT_TRACK, KC_AUDIO_VOL_DOWN, KC_P7, KC_P8, KC_P9, KC_PPLS,
+ KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6,
+ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
+ KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
+ ),
+};
+
+enum combo_events {
+ CTRL_PAUS_RESET,
+};
+
+const uint16_t PROGMEM reset_combo[] = {KC_LCTL, KC_PAUS, COMBO_END};
+
+combo_t key_combos[] = {
+ [CTRL_PAUS_RESET] = COMBO_ACTION(reset_combo),
+};
+
+void process_combo_event(uint16_t combo_index, bool pressed) {
+ switch(combo_index) {
+ case CTRL_PAUS_RESET:
+ if (pressed) {
+ reset_keyboard();
+ }
+ break;
+ }
+}
diff --git a/keyboards/ibm/model_m/ashpil_usbc/keymaps/ashpil/rules.mk b/keyboards/ibm/model_m/ashpil_usbc/keymaps/ashpil/rules.mk
new file mode 100644
index 0000000000..23b7c173b8
--- /dev/null
+++ b/keyboards/ibm/model_m/ashpil_usbc/keymaps/ashpil/rules.mk
@@ -0,0 +1 @@
+COMBO_ENABLE = yes # Reset combo \ No newline at end of file
diff --git a/keyboards/ibm/model_m/ashpil_usbc/keymaps/default/keymap.c b/keyboards/ibm/model_m/ashpil_usbc/keymaps/default/keymap.c
new file mode 100644
index 0000000000..d8f80a5c72
--- /dev/null
+++ b/keyboards/ibm/model_m/ashpil_usbc/keymaps/default/keymap.c
@@ -0,0 +1,27 @@
+/* Copyright 2019 ashpil
+ *
+ * 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
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT_fullsize_ansi_wkl( /* Base layer */
+ KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCRL, KC_PAUS,
+ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
+ KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6,
+ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
+ KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
+ ),
+};
diff --git a/keyboards/ibm/model_m/ashpil_usbc/readme.md b/keyboards/ibm/model_m/ashpil_usbc/readme.md
new file mode 100644
index 0000000000..801cb612fd
--- /dev/null
+++ b/keyboards/ibm/model_m/ashpil_usbc/readme.md
@@ -0,0 +1,14 @@
+# USB C Model M
+
+![modelm_usbc](https://raw.githubusercontent.com/ashpil/Model-M-Type-C-Controller/master/images/render.png)
+
+This is a configuration of QMK intended to be used with the [USB C Model M alt controller](https://github.com/ashpil/Model-M-Type-C-Controller "USB C Model M alt controller"). Many thanks to iw0rm3r for working on a similar project and providing the foundation for this!
+
+* Keyboard Maintainer: [ashpil](https://github.com/ashpil)
+* Hardware Supported: [USB C Model M alt controller](https://github.com/ashpil/Model-M-Type-C-Controller)
+
+Make example for this keyboard (after setting up your build environment):
+
+ make ibm/model_m/ashpil_usbc: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/ibm/model_m/ashpil_usbc/rules.mk b/keyboards/ibm/model_m/ashpil_usbc/rules.mk
new file mode 100644
index 0000000000..6fe874e748
--- /dev/null
+++ b/keyboards/ibm/model_m/ashpil_usbc/rules.mk
@@ -0,0 +1,12 @@
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
+MOUSEKEY_ENABLE = no # Mouse keys
+EXTRAKEY_ENABLE = yes # Audio control and System control
+CONSOLE_ENABLE = no # Console for debug
+COMMAND_ENABLE = no # 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
diff --git a/keyboards/ibm/model_m/modelm/readme.md b/keyboards/ibm/model_m/modelm/readme.md
new file mode 100644
index 0000000000..048b02495a
--- /dev/null
+++ b/keyboards/ibm/model_m/modelm/readme.md
@@ -0,0 +1,24 @@
+# IBM Model M
+
+This is the parent directory for all projects that replace the controller
+of IBM's Model M Keyboard and then run QMK on it.
+
+These controllers differ in their use of microcontrollers, connection (mainly
+USB) optional speakers etc.
+
+Some of them can be bought fully assembled others are do-it-yourself.
+
+## Warning - Model M Variants
+
+**Not all of these projects will fit into your keyboard!**
+
+As the Model M was produced over several years there are many variants of the
+controller PCB. Check what fits your keyboard before you build/order one.
+
+The variants built for PCs differ in:
+* PCB size
+* Connectors (8/12 pin flex, location)
+* Ground wire connector location
+
+Additionally IBM built Model M variants for terminals with 122 keys, the
+space saving keyboard (SSK, 84-key) etc.
diff --git a/keyboards/ibm/model_m/mschwingen/config.h b/keyboards/ibm/model_m/mschwingen/config.h
new file mode 100644
index 0000000000..b1dc81b8c7
--- /dev/null
+++ b/keyboards/ibm/model_m/mschwingen/config.h
@@ -0,0 +1,77 @@
+/*
+ * Copyright 2020 Michael Schwingen
+
+ * 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
+
+
+/* key matrix size */
+#define MATRIX_ROWS 16
+#define MATRIX_COLS 8
+
+/* pins for external shift registers */
+#define SR_LOAD_PIN B0
+#define SR_CLK_PIN B1
+#define SR_DIN_PIN B3
+#define SR_DOUT_PIN B2
+
+/*
+ * Feature disable options
+ * These options are also useful to firmware size reduction.
+ */
+
+/* disable debug print */
+//#define NO_DEBUG
+
+/* disable print */
+//#define NO_PRINT
+#define NORMAL_PRINT
+//#define USER_PRINT
+
+
+/* disable action features */
+//#define NO_ACTION_LAYER
+//#define NO_ACTION_TAPPING
+//#define NO_ACTION_ONESHOT
+
+//#define DEBUG_MATRIX_SCAN_RATE
+#define DYNAMIC_MACRO_NO_NESTING
+
+#define MODELM_STATUS_LED E6
+
+#define MODELM_LED1 B5
+#define MODELM_LED2 B6
+#define MODELM_LED3 D0
+
+#if defined(KEYBOARD_ibm_model_m_mschwingen_led_wired)
+# define MODELM_LED_CAPSLOCK MODELM_LED1
+# define MODELM_LED_SCROLLOCK MODELM_LED2
+# define MODELM_LED_NUMLOCK MODELM_LED3
+#elif defined(KEYBOARD_ibm_model_m_mschwingen_led_ffc)
+# define MODELM_LED_CAPSLOCK MODELM_LED2
+# define MODELM_LED_SCROLLOCK MODELM_LED3
+# define MODELM_LED_NUMLOCK MODELM_LED1
+#elif defined(KEYBOARD_ibm_model_m_mschwingen_led_ws2812)
+#else
+# error one of MODELM_LEDS_FFC, MODELM_LEDS_WIRED or MODELM_LEDS_WS2812 must be set!
+#endif
+
+// 3* WS2812 LEDs instead of singlecolor GPIO LEDs
+#define RGBLED_NUM 3
+
+// disabled, needs PCB patch.
+//#define AUDIO_PIN C6
+//#define NO_MUSIC_MODE
diff --git a/keyboards/ibm/model_m/mschwingen/info.json b/keyboards/ibm/model_m/mschwingen/info.json
new file mode 100644
index 0000000000..1ba525de6c
--- /dev/null
+++ b/keyboards/ibm/model_m/mschwingen/info.json
@@ -0,0 +1,143 @@
+{
+ "keyboard_name": "atmega32U4 board for IBM Model M",
+ "manufacturer": "mschwingen",
+ "url": "https://github.com/qmk/qmk_firmware/tree/master/keyboards/ibm/model_m/mschwingen",
+ "maintainer": "mschwingen",
+ "usb": {
+ "vid": "0xFEED",
+ "pid": "0x558E",
+ "device_version": "0.0.1"
+ },
+ "ws2812": {
+ "pin": "B6"
+ },
+ "processor": "atmega32u4",
+ "bootloader": "lufa-dfu",
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"matrix": [13, 7], "x": 0, "y": 0},
+
+ {"matrix": [12, 5], "x": 2, "y": 0},
+ {"matrix": [11, 5], "x": 3, "y": 0},
+ {"matrix": [11, 6], "x": 4, "y": 0},
+ {"matrix": [11, 7], "x": 5, "y": 0},
+
+ {"matrix": [9, 7], "x": 6.5, "y": 0},
+ {"matrix": [7, 7], "x": 7.5, "y": 0},
+ {"matrix": [6, 6], "x": 8.5, "y": 0},
+ {"matrix": [6, 5], "x": 9.5, "y": 0},
+
+ {"matrix": [9, 5], "x": 11, "y": 0},
+ {"matrix": [9, 4], "x": 12, "y": 0},
+ {"matrix": [4, 4], "x": 13, "y": 0},
+ {"matrix": [3, 4], "x": 14, "y": 0},
+
+ {"matrix": [0, 4], "x": 15.5, "y": 0},
+ {"matrix": [0, 3], "x": 16.5, "y": 0},
+ {"matrix": [1, 1], "x": 17.5, "y": 0},
+
+ {"matrix": [13, 5], "x": 0, "y": 2},
+ {"matrix": [13, 4], "x": 1, "y": 2},
+ {"matrix": [12, 4], "x": 2, "y": 2},
+ {"matrix": [11, 4], "x": 3, "y": 2},
+ {"matrix": [10, 4], "x": 4, "y": 2},
+ {"matrix": [10, 5], "x": 5, "y": 2},
+ {"matrix": [8, 5], "x": 6, "y": 2},
+ {"matrix": [8, 4], "x": 7, "y": 2},
+ {"matrix": [7, 4], "x": 8, "y": 2},
+ {"matrix": [6, 4], "x": 9, "y": 2},
+ {"matrix": [5, 4], "x": 10, "y": 2},
+ {"matrix": [5, 5], "x": 11, "y": 2},
+ {"matrix": [7, 5], "x": 12, "y": 2},
+ {"matrix": [9, 6], "x": 13, "y": 2, "w": 2},
+
+ {"matrix": [3, 5], "x": 15.5, "y": 2},
+ {"matrix": [1, 5], "x": 16.5, "y": 2},
+ {"matrix": [2, 5], "x": 17.5, "y": 2},
+
+ {"matrix": [4, 1], "x": 19, "y": 2},
+ {"matrix": [3, 1], "x": 20, "y": 2},
+ {"matrix": [2, 1], "x": 21, "y": 2},
+ {"matrix": [2, 0], "x": 22, "y": 2},
+
+ {"matrix": [13, 6], "x": 0, "y": 3, "w": 1.5},
+ {"matrix": [13, 3], "x": 1.5, "y": 3},
+ {"matrix": [12, 3], "x": 2.5, "y": 3},
+ {"matrix": [11, 3], "x": 3.5, "y": 3},
+ {"matrix": [10, 3], "x": 4.5, "y": 3},
+ {"matrix": [10, 6], "x": 5.5, "y": 3},
+ {"matrix": [8, 6], "x": 6.5, "y": 3},
+ {"matrix": [8, 3], "x": 7.5, "y": 3},
+ {"matrix": [7, 3], "x": 8.5, "y": 3},
+ {"matrix": [6, 3], "x": 9.5, "y": 3},
+ {"matrix": [5, 3], "x": 10.5, "y": 3},
+ {"matrix": [5, 6], "x": 11.5, "y": 3},
+ {"matrix": [7, 6], "x": 12.5, "y": 3},
+ {"matrix": [9, 2], "x": 13.5, "y": 3, "w": 1.5},
+
+ {"matrix": [4, 5], "x": 15.5, "y": 3},
+ {"matrix": [1, 4], "x": 16.5, "y": 3},
+ {"matrix": [2, 4], "x": 17.5, "y": 3},
+
+ {"matrix": [4, 3], "x": 19, "y": 3},
+ {"matrix": [3, 3], "x": 20, "y": 3},
+ {"matrix": [2, 3], "x": 21, "y": 3},
+ {"matrix": [1, 3], "x": 22, "y": 3, "h": 2},
+
+ {"matrix": [12, 6], "x": 0, "y": 4, "w": 1.75},
+ {"matrix": [13, 2], "x": 1.75, "y": 4},
+ {"matrix": [12, 2], "x": 2.75, "y": 4},
+ {"matrix": [11, 2], "x": 3.75, "y": 4},
+ {"matrix": [10, 2], "x": 4.75, "y": 4},
+ {"matrix": [10, 7], "x": 5.75, "y": 4},
+ {"matrix": [8, 7], "x": 6.75, "y": 4},
+ {"matrix": [8, 2], "x": 7.75, "y": 4},
+ {"matrix": [7, 2], "x": 8.75, "y": 4},
+ {"matrix": [6, 2], "x": 9.75, "y": 4},
+ {"matrix": [5, 2], "x": 10.75, "y": 4},
+ {"matrix": [5, 7], "x": 11.75, "y": 4},
+ {"matrix": [5, 1], "x": 12.75, "y": 4},
+ {"matrix": [9, 1], "x": 13.75, "y": 4, "w": 1.25},
+
+ {"matrix": [4, 6], "x": 19, "y": 4},
+ {"matrix": [3, 6], "x": 20, "y": 4},
+ {"matrix": [2, 6], "x": 21, "y": 4},
+
+ {"matrix": [14, 6], "x": 0, "y": 5, "w": 1.25},
+ {"matrix": [12, 7], "x": 1.25, "y": 5},
+ {"matrix": [13, 1], "x": 2.25, "y": 5},
+ {"matrix": [12, 1], "x": 3.25, "y": 5},
+ {"matrix": [11, 1], "x": 4.25, "y": 5},
+ {"matrix": [10, 1], "x": 5.25, "y": 5},
+ {"matrix": [10, 0], "x": 6.25, "y": 5},
+ {"matrix": [8, 0], "x": 7.25, "y": 5},
+ {"matrix": [8, 1], "x": 8.25, "y": 5},
+ {"matrix": [7, 1], "x": 9.25, "y": 5},
+ {"matrix": [6, 1], "x": 10.25, "y": 5},
+ {"matrix": [5, 0], "x": 11.25, "y": 5},
+ {"matrix": [14, 1], "x": 12.25, "y": 5, "w": 2.75},
+
+ {"matrix": [1, 7], "x": 16.5, "y": 5},
+
+ {"matrix": [4, 2], "x": 19, "y": 5},
+ {"matrix": [3, 2], "x": 20, "y": 5},
+ {"matrix": [2, 2], "x": 21, "y": 5},
+ {"matrix": [1, 2], "x": 22, "y": 5, "h": 2},
+
+ {"matrix": [15, 5], "x": 0, "y": 6, "w": 1.5},
+ {"matrix": [0, 7], "x": 2.5, "y": 6, "w": 1.5},
+ {"matrix": [9, 0], "x": 4, "y": 6, "w": 7},
+ {"matrix": [0, 0], "x": 11, "y": 6, "w": 1.5},
+ {"matrix": [15, 1], "x": 13.5, "y": 6, "w": 1.5},
+
+ {"matrix": [1, 0], "x": 15.5, "y": 6},
+ {"matrix": [4, 0], "x": 16.5, "y": 6},
+ {"matrix": [3, 0], "x": 17.5, "y": 6},
+
+ {"matrix": [3, 7], "x": 19, "y": 6, "w": 2},
+ {"matrix": [2, 7], "x": 21, "y": 6}
+ ]
+ }
+ }
+}
diff --git a/keyboards/ibm/model_m/mschwingen/keymaps/default/keymap.c b/keyboards/ibm/model_m/mschwingen/keymaps/default/keymap.c
new file mode 100644
index 0000000000..8e28b4e449
--- /dev/null
+++ b/keyboards/ibm/model_m/mschwingen/keymaps/default/keymap.c
@@ -0,0 +1,86 @@
+/* Copyright 2019 ashpil
+ *
+ * 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
+
+enum layers {
+ _BL0,
+ _BL1,
+ _FL,
+ _MS
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_BL0] = LAYOUT( /* Base layer - Windows key instead of CapsLock, hold ESC for special functions */
+ LT(_FL,KC_ESC), KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10, KC_F11 , KC_F12 , KC_PSCR, KC_SCRL, KC_PAUS,
+ KC_GRV , KC_1, KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_MINS, KC_EQL , KC_BSPC, KC_INS , KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_TAB , KC_Q, KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL , KC_END , KC_PGDN, KC_P7, KC_P8 , KC_P9 , KC_PPLS,
+ KC_LWIN, KC_A, KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT , KC_P4, KC_P5 , KC_P6 ,
+ KC_LSFT, KC_NUBS, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_RSFT, KC_UP , KC_P1, KC_P2 , KC_P3 , KC_PENT,
+ KC_LCTL, KC_LALT, KC_SPC , KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
+ ),
+
+ [_BL1] = LAYOUT( /* Base layer - standard layout without any special functions */
+ KC_ESC , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 , KC_PSCR, KC_SCRL, KC_PAUS,
+ KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_MINS, KC_EQL , KC_BSPC, KC_INS , KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL , KC_END , KC_PGDN, KC_P7, KC_P8 , KC_P9 , KC_PPLS,
+ KC_CAPS, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT , KC_P4, KC_P5 , KC_P6 ,
+ KC_LSFT, KC_NUBS, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_RSFT, KC_UP , KC_P1, KC_P2 , KC_P3 , KC_PENT,
+ KC_LCTL, KC_LALT, KC_SPC , KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
+ ),
+
+ [_FL] = LAYOUT( /* special functions layer */
+ // F1: dyn. macro 1 play
+ // F2: dyn. macro 2 play
+ // F3: dyn. macro 1 record
+ // F4: dyn. macro 2 record
+ // F5: dyn. macro record stop
+ // Capslock: CapsLock (really!)
+ // ~: Key Lock
+ // Cursor: Media Pref / Next / Volume Up / Volume Down
+ // Space: Media Play / Pause
+ // m: enter mouse layer
+ _______, DM_PLY1, DM_PLY2, DM_REC1, DM_REC2, DM_RSTP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ QK_LOCK, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ KC_CAPS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, TG(_MS), _______, _______, _______, _______, KC_VOLU, _______, _______, _______, _______,
+ _______, _______, KC_MPLY, _______, _______, KC_MPRV, KC_VOLD, KC_MNXT, _______, _______
+ ),
+
+ [_MS] = LAYOUT( /* mouse key layer */
+ // Cursor: mouse, INS/HOME/PgUp: Mouse Accel, Del, End, PageDn: mouse buttons
+ TG(_MS), _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_ACL0, KC_ACL1, KC_ACL2, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BTN1, KC_BTN3, KC_BTN2, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MS_U, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R, _______, _______
+ )
+};
+
+void keyboard_post_init_user(void) {
+ // Customise these values to desired behaviour
+ //debug_enable=true;
+ //debug_matrix=true;
+ //debug_keyboard=true;
+ //debug_mouse=true;
+}
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ // If console is enabled, it will print the matrix position and status of each key pressed
+ dprintf("KL: kc: %u, col: %u, row: %u, pressed: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed);
+ return true;
+}
diff --git a/keyboards/ibm/model_m/mschwingen/led_ffc/readme.md b/keyboards/ibm/model_m/mschwingen/led_ffc/readme.md
new file mode 100644
index 0000000000..722567c18f
--- /dev/null
+++ b/keyboards/ibm/model_m/mschwingen/led_ffc/readme.md
@@ -0,0 +1,21 @@
+# atmega32U4 board for IBM Model M, LEDs connected with flexible flat cable (FFC)
+
+![modelm](https://raw.githubusercontent.com/mschwingen/hardware/master/modelm-usb/images/PCB.jpg)
+
+This is a configuration of QMK intended to be used with the [Model M USB PCB](https://github.com/mschwingen/hardware/tree/master/modelm-usb).
+
+* Keyboard Maintainer: [Michael Schwingen](https://github.com/mschwingen/)
+* Hardware Supported: [Model M USB PCB](https://github.com/mschwingen/hardware/tree/master/modelm-usb)
+* Hardware Availability: need to build your own.
+
+Make example for this keyboard (after setting up your build environment), run one of:
+
+ make ibm/model_m/mschwingen/led_ffc:default
+
+Flashing example for this keyboard:
+
+ make ibm/model_m/mschwingen/led_ffc:default:flash
+
+Bootloader: do not use the QMK bootloader, use the bootloader from [here](https://github.com/mschwingen/modelm-lufa-bootloader)
+
+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/ibm/model_m/mschwingen/led_ffc/rules.mk b/keyboards/ibm/model_m/mschwingen/led_ffc/rules.mk
new file mode 100644
index 0000000000..8b13789179
--- /dev/null
+++ b/keyboards/ibm/model_m/mschwingen/led_ffc/rules.mk
@@ -0,0 +1 @@
+
diff --git a/keyboards/ibm/model_m/mschwingen/led_wired/readme.md b/keyboards/ibm/model_m/mschwingen/led_wired/readme.md
new file mode 100644
index 0000000000..073c75c10d
--- /dev/null
+++ b/keyboards/ibm/model_m/mschwingen/led_wired/readme.md
@@ -0,0 +1,21 @@
+# atmega32U4 board for IBM Model M, LEDs connected with wires
+
+![modelm](https://raw.githubusercontent.com/mschwingen/hardware/master/modelm-usb/images/PCB.jpg)
+
+This is a configuration of QMK intended to be used with the [Model M USB PCB](https://github.com/mschwingen/hardware/tree/master/modelm-usb).
+
+* Keyboard Maintainer: [Michael Schwingen](https://github.com/mschwingen/)
+* Hardware Supported: [Model M USB PCB](https://github.com/mschwingen/hardware/tree/master/modelm-usb)
+* Hardware Availability: need to build your own.
+
+Make example for this keyboard (after setting up your build environment), run one of:
+
+ make ibm/model_m/mschwingen/led_wired:default
+
+Flashing example for this keyboard:
+
+ make ibm/model_m/mschwingen/led_wired:default:flash
+
+Bootloader: do not use the QMK bootloader, use the bootloader from [here](https://github.com/mschwingen/modelm-lufa-bootloader)
+
+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/ibm/model_m/mschwingen/led_wired/rules.mk b/keyboards/ibm/model_m/mschwingen/led_wired/rules.mk
new file mode 100644
index 0000000000..8b13789179
--- /dev/null
+++ b/keyboards/ibm/model_m/mschwingen/led_wired/rules.mk
@@ -0,0 +1 @@
+
diff --git a/keyboards/ibm/model_m/mschwingen/led_ws2812/readme.md b/keyboards/ibm/model_m/mschwingen/led_ws2812/readme.md
new file mode 100644
index 0000000000..669f7f37a1
--- /dev/null
+++ b/keyboards/ibm/model_m/mschwingen/led_ws2812/readme.md
@@ -0,0 +1,21 @@
+# atmega32U4 board for IBM Model M, old LEDs replaces with WS2812 RGB LEDs
+
+![modelm](https://raw.githubusercontent.com/mschwingen/hardware/master/modelm-usb/images/PCB.jpg)
+
+This is a configuration of QMK intended to be used with the [Model M USB PCB](https://github.com/mschwingen/hardware/tree/master/modelm-usb).
+
+* Keyboard Maintainer: [Michael Schwingen](https://github.com/mschwingen/)
+* Hardware Supported: [Model M USB PCB](https://github.com/mschwingen/hardware/tree/master/modelm-usb)
+* Hardware Availability: need to build your own.
+
+Make example for this keyboard (after setting up your build environment), run one of:
+
+ make ibm/model_m/mschwingen/led_ws2812:default
+
+Flashing example for this keyboard:
+
+ make ibm/model_m/mschwingen/led_ws2812:default:flash
+
+Bootloader: do not use the QMK bootloader, use the bootloader from [here](https://github.com/mschwingen/modelm-lufa-bootloader)
+
+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/ibm/model_m/mschwingen/led_ws2812/rules.mk b/keyboards/ibm/model_m/mschwingen/led_ws2812/rules.mk
new file mode 100644
index 0000000000..9a69649289
--- /dev/null
+++ b/keyboards/ibm/model_m/mschwingen/led_ws2812/rules.mk
@@ -0,0 +1 @@
+WS2812_DRIVER_REQUIRED = yes
diff --git a/keyboards/ibm/model_m/mschwingen/matrix.c b/keyboards/ibm/model_m/mschwingen/matrix.c
new file mode 100644
index 0000000000..9997b65975
--- /dev/null
+++ b/keyboards/ibm/model_m/mschwingen/matrix.c
@@ -0,0 +1,113 @@
+/*
+ * Copyright 2020 Michael Schwingen
+
+ * 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 <stdint.h>
+#include <stdbool.h>
+#include "util.h"
+#include "matrix.h"
+#include "debounce.h"
+#include "quantum.h"
+#include "spi_master.h"
+#include "print.h"
+#include "mschwingen.h"
+
+#define SPI_TIMEOUT 100
+
+/* Keyboard Matrix Assignments */
+static uint16_t row_bits[MATRIX_ROWS] = {
+ 0x4000, 0x8000, 0x2000, 0x1000, 0x0800, 0x0400, 0x0100, 0x0200,
+ 0x0040, 0x0080, 0x0020, 0x0010, 0x0008, 0x0004, 0x0001, 0x0002};
+
+static const pin_t col_pins[MATRIX_COLS] = {D1, D4, D7, B4, F7, F6, F5, F4};
+
+static void select_col(uint8_t col) {
+ setPinOutput(col_pins[col]);
+ writePinLow(col_pins[col]);
+}
+
+static void unselect_col(uint8_t col) { setPinInputHigh(col_pins[col]); }
+
+static void unselect_cols(void) {
+ for (uint8_t x = 0; x < MATRIX_COLS; x++) {
+ setPinInputHigh(col_pins[x]);
+ }
+}
+
+static bool read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col) {
+ uint16_t row_data;
+ bool matrix_changed = false;
+
+ // Select col and wait for col selecton to stabilize
+ select_col(current_col);
+ matrix_io_delay();
+
+ writePinLow(SR_LOAD_PIN);
+ writePinHigh(SR_LOAD_PIN);
+
+ row_data = spi_read() << 8;
+ row_data |= spi_read();
+
+ debug_hex8(~row_data);
+ dprint(" ");
+
+ // For each row...
+ for (uint8_t row_index = 0; row_index < MATRIX_ROWS; row_index++) {
+ // Store last value of row prior to reading
+ matrix_row_t last_row_value = current_matrix[row_index];
+ matrix_row_t current_row_value = last_row_value;
+
+ // Check row pin state
+ if ((row_data & row_bits[row_index]) == 0) {
+ // Pin LO, set col bit
+ current_row_value |= (MATRIX_ROW_SHIFTER << current_col);
+ } else {
+ // Pin HI, clear col bit
+ current_row_value &= ~(MATRIX_ROW_SHIFTER << current_col);
+ }
+
+ // Determine if the matrix changed state
+ if ((last_row_value != current_row_value)) {
+ matrix_changed = true;
+ current_matrix[row_index] = current_row_value;
+ }
+ }
+
+ // Unselect col
+ unselect_col(current_col);
+
+ return matrix_changed;
+}
+
+void matrix_init_custom(void) {
+ unselect_cols();
+
+ // set 4MHz SPI clock
+ SPSR = 0;
+ SPCR = _BV(SPE) | _BV(MSTR) | _BV(CPOL);
+}
+
+bool matrix_scan_custom(matrix_row_t current_matrix[]) {
+ bool changed = false;
+
+ dprint("\r\nScan: ");
+
+ // Set col, read rows
+ for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) {
+ changed |= read_rows_on_col(current_matrix, current_col);
+ }
+ update_layer_leds();
+ return changed;
+}
diff --git a/keyboards/ibm/model_m/mschwingen/mschwingen.c b/keyboards/ibm/model_m/mschwingen/mschwingen.c
new file mode 100644
index 0000000000..b764660e21
--- /dev/null
+++ b/keyboards/ibm/model_m/mschwingen/mschwingen.c
@@ -0,0 +1,213 @@
+/*
+ * Copyright 2020 Michael Schwingen
+
+ * 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 <util/delay.h>
+#include "mschwingen.h"
+#include "uart.h"
+#include "print.h"
+#include "sendchar.h"
+#include "ws2812.h"
+#include "sleep_led.h"
+
+#ifdef UART_DEBUG
+# undef sendchar
+static int8_t capture_sendchar(uint8_t c) {
+ // sendchar(c);
+ uart_write(c);
+ return 0;
+}
+#endif
+
+static uint16_t blink_cycle_timer;
+static bool blink_state = false;
+static uint8_t isRecording = 0;
+
+#ifdef KEYBOARD_ibm_model_m_mschwingen_led_ws2812
+# if RGBLED_NUM < 3
+# error we need at least 3 RGB LEDs!
+# endif
+static cRGB led[RGBLED_NUM] = {{255, 255, 255}, {255, 255, 255}, {255, 255, 255}};
+
+# define BRIGHT 32
+# define DIM 6
+
+static const cRGB black = {.r = 0, .g = 0, .b = 0};
+
+static const __attribute__((unused)) cRGB green = {.r = 0, .g = BRIGHT, .b = 0};
+static const __attribute__((unused)) cRGB lgreen = {.r = 0, .g = DIM, .b = 0};
+
+static const __attribute__((unused)) cRGB red = {.r = BRIGHT, .g = 0, .b = 0};
+static const __attribute__((unused)) cRGB lred = {.r = DIM, .g = 0, .b = 0};
+
+static const __attribute__((unused)) cRGB blue = {.r = 0, .g = 0, .b = BRIGHT};
+static const __attribute__((unused)) cRGB lblue = {.r = 0, .g = 0, .b = DIM};
+
+static const __attribute__((unused)) cRGB turq = {.r = 0, .g = BRIGHT, .b = BRIGHT};
+static const __attribute__((unused)) cRGB lturq = {.r = 0, .g = DIM, .b = DIM};
+
+static const __attribute__((unused)) cRGB white = {.r = BRIGHT, .g = BRIGHT, .b = BRIGHT};
+
+static led_t led_state;
+static uint8_t layer;
+static uint8_t default_layer;
+#endif
+
+// we need our own sleep_led_* implementation to get callbacks on USB
+// suspend/resume in order to completely turn off WS2812 LEDs
+static bool suspend_active = false;
+void sleep_led_init(void) {}
+
+void sleep_led_toggle(void) {}
+
+void sleep_led_disable(void) {
+ suspend_active = false;
+ writePinHigh(MODELM_STATUS_LED);
+}
+
+void sleep_led_enable(void) {
+ suspend_active = true;
+ writePinLow(MODELM_STATUS_LED);
+#ifdef KEYBOARD_ibm_model_m_mschwingen_led_ws2812
+ led[0] = black;
+ led[1] = black;
+ led[2] = black;
+ ws2812_setleds(led, RGBLED_NUM);
+#endif
+}
+
+void keyboard_pre_init_kb(void) {
+#ifdef KEYBOARD_ibm_model_m_mschwingen_led_ws2812
+ ws2812_setleds(led, RGBLED_NUM);
+#else
+ /* Set status LEDs pins to output and Low (on) */
+ setPinOutput(MODELM_LED_CAPSLOCK);
+ setPinOutput(MODELM_LED_SCROLLOCK);
+ setPinOutput(MODELM_LED_NUMLOCK);
+ writePinLow(MODELM_LED_CAPSLOCK);
+ writePinLow(MODELM_LED_SCROLLOCK);
+ writePinLow(MODELM_LED_NUMLOCK);
+#endif
+ setPinOutput(MODELM_STATUS_LED);
+ writePinHigh(MODELM_STATUS_LED);
+ _delay_ms(50);
+#ifdef UART_DEBUG
+ uart_init(115200);
+ print_set_sendchar(capture_sendchar);
+ uprintf("\r\nHello world!\r\n");
+#endif
+
+ setPinOutput(SR_LOAD_PIN);
+ setPinOutput(SR_CLK_PIN);
+ setPinOutput(SR_DOUT_PIN); // MOSI - unused
+ writePinLow(SR_CLK_PIN);
+}
+
+#ifdef KEYBOARD_ibm_model_m_mschwingen_led_ws2812
+static void led_update_rgb(void) {
+ if (isRecording && blink_state) {
+ led[0] = white;
+ } else {
+ switch (default_layer) {
+ case 0:
+ led[0] = led_state.num_lock ? blue : lblue;
+ break;
+ case 1:
+ led[0] = led_state.num_lock ? green : black;
+ break;
+ }
+ }
+
+ led[1] = led_state.caps_lock ? green : black;
+
+ switch (layer) {
+ case 0:
+ case 1:
+ default:
+ led[2] = led_state.scroll_lock ? green : black;
+ break;
+ case 2:
+ led[2] = led_state.scroll_lock ? red : lred;
+ break;
+ case 3:
+ led[2] = led_state.scroll_lock ? turq : lturq;
+ break;
+ }
+ if (!suspend_active) {
+ ws2812_setleds(led, RGBLED_NUM);
+ }
+}
+
+bool led_update_kb(led_t state) {
+ dprintf("LED Update: %d %d %d", led_state.num_lock, led_state.caps_lock, led_state.scroll_lock);
+ led_state = state;
+ led_update_rgb();
+
+ return true;
+}
+
+void update_layer_leds(void) {
+ static uint8_t old_layer = 255;
+ static uint8_t old_default_layer = 255;
+
+ layer = get_highest_layer(layer_state);
+ default_layer = get_highest_layer(default_layer_state);
+
+ if (isRecording && timer_elapsed(blink_cycle_timer) > 150) {
+ blink_state = !blink_state;
+ blink_cycle_timer = timer_read();
+ old_layer = 255; // fallthrough next check
+ }
+
+ if (layer == old_layer && default_layer == old_default_layer) {
+ return;
+ }
+ old_layer = layer;
+ old_default_layer = default_layer;
+ dprintf("Layer change: %d %d", default_layer, layer);
+ led_update_rgb();
+}
+
+/*****************************************************************************/
+#else // classic LEDs on GPIO
+bool led_update_kb(led_t led_state) {
+ dprintf("LED Update: %d %d %d", led_state.num_lock, led_state.caps_lock, led_state.scroll_lock);
+
+ if (led_update_user(led_state)) {
+ if (!isRecording) writePin(MODELM_LED_NUMLOCK, !led_state.num_lock);
+ writePin(MODELM_LED_CAPSLOCK, !led_state.caps_lock);
+ writePin(MODELM_LED_SCROLLOCK, !led_state.scroll_lock);
+ }
+ return true;
+}
+
+void update_layer_leds(void) {
+ if (isRecording && timer_elapsed(blink_cycle_timer) > 150) {
+ blink_state = !blink_state;
+ blink_cycle_timer = timer_read();
+ writePin(MODELM_LED_NUMLOCK, blink_state);
+ }
+}
+
+#endif
+
+void dynamic_macro_record_start_user(int8_t direction) {
+ isRecording++;
+ blink_cycle_timer = timer_read();
+}
+
+void dynamic_macro_record_end_user(int8_t direction) {
+ if (isRecording) isRecording--;
+}
diff --git a/keyboards/ibm/model_m/mschwingen/mschwingen.h b/keyboards/ibm/model_m/mschwingen/mschwingen.h
new file mode 100644
index 0000000000..d842793ccd
--- /dev/null
+++ b/keyboards/ibm/model_m/mschwingen/mschwingen.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright 2020 Michael Schwingen
+
+ * 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
+
+extern void update_layer_leds(void);
+
+#include "quantum.h"
diff --git a/keyboards/ibm/model_m/mschwingen/post_rules.mk b/keyboards/ibm/model_m/mschwingen/post_rules.mk
new file mode 100644
index 0000000000..a1c2040f4c
--- /dev/null
+++ b/keyboards/ibm/model_m/mschwingen/post_rules.mk
@@ -0,0 +1,3 @@
+ifeq ($(strip $(UART_DEBUG)), yes)
+ OPT_DEFS += -DUART_DEBUG
+endif
diff --git a/keyboards/ibm/model_m/mschwingen/readme.md b/keyboards/ibm/model_m/mschwingen/readme.md
new file mode 100644
index 0000000000..69c5c8b268
--- /dev/null
+++ b/keyboards/ibm/model_m/mschwingen/readme.md
@@ -0,0 +1,25 @@
+# atmega32U4 board for IBM Model M
+
+![modelm](https://raw.githubusercontent.com/mschwingen/hardware/master/modelm-usb/images/PCB.jpg)
+
+This is a configuration of QMK intended to be used with the [Model M USB PCB](https://github.com/mschwingen/hardware/tree/master/modelm-usb).
+
+* Keyboard Maintainer: [Michael Schwingen](https://github.com/mschwingen/)
+* Hardware Supported: [Model M USB PCB](https://github.com/mschwingen/hardware/tree/master/modelm-usb)
+* Hardware Availability: need to build your own.
+
+Make example for this keyboard (after setting up your build environment), run one of:
+
+ make ibm/model_m/mschwingen/led_wired:default
+ make ibm/model_m/mschwingen/led_ffc:default
+ make ibm/model_m/mschwingen/led_ws2812:default
+
+flash:
+
+ make ibm/model_m/mschwingen/led_wired:default:flash
+ make ibm/model_m/mschwingen/led_ffc:default:flash
+ make ibm/model_m/mschwingen/led_ws2812:default:flash
+
+Bootloader: do not use the QMK bootloader, use the bootloader from [here](https://github.com/mschwingen/modelm-lufa-bootloader)
+
+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/ibm/model_m/mschwingen/rules.mk b/keyboards/ibm/model_m/mschwingen/rules.mk
new file mode 100644
index 0000000000..5ccab87d9b
--- /dev/null
+++ b/keyboards/ibm/model_m/mschwingen/rules.mk
@@ -0,0 +1,29 @@
+# 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
+
+CUSTOM_MATRIX = lite
+KEY_LOCK_ENABLE = yes
+
+DYNAMIC_MACRO_ENABLE = yes
+
+UART_DEBUG = no
+
+SRC += matrix.c
+QUANTUM_LIB_SRC += uart.c \
+ spi_master.c
+
+OPT_DEFS += -DSLEEP_LED_ENABLE # we need our own sleep callbacks to turn of WS2812 LEDs
+
+LTO_ENABLE = yes
+
+DEFAULT_FOLDER = ibm/model_m/mschwingen/led_wired
diff --git a/keyboards/ibm/model_m/teensy2/config.h b/keyboards/ibm/model_m/teensy2/config.h
new file mode 100644
index 0000000000..764fb56f64
--- /dev/null
+++ b/keyboards/ibm/model_m/teensy2/config.h
@@ -0,0 +1,37 @@
+/*
+Copyright 2019 iw0rm3r
+
+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
+
+/* The Model M has no diodes */
+#define MATRIX_HAS_GHOST
+
+/*
+ * Feature disable options
+ * These options are also useful to firmware size reduction.
+ */
+
+/* disable debug print */
+//#define NO_DEBUG
+
+/* disable print */
+//#define NO_PRINT
+
+/* disable action features */
+//#define NO_ACTION_LAYER
+//#define NO_ACTION_TAPPING
+//#define NO_ACTION_ONESHOT
diff --git a/keyboards/ibm/model_m/teensy2/info.json b/keyboards/ibm/model_m/teensy2/info.json
new file mode 100644
index 0000000000..19603adb7a
--- /dev/null
+++ b/keyboards/ibm/model_m/teensy2/info.json
@@ -0,0 +1,149 @@
+{
+ "keyboard_name": "IBM Model M 101/102",
+ "manufacturer": "wangfuco",
+ "url": "https://github.com/qmk/qmk_firmware/tree/master/keyboards/ibm/model_m/teensy2",
+ "maintainer": "wangfuco",
+ "usb": {
+ "vid": "0xFEED",
+ "pid": "0x0000",
+ "device_version": "0.0.1"
+ },
+ "matrix_pins": {
+ "cols": ["F0", "F1", "F4", "F5", "F6", "F7", "B6", "B5", "B4", "D7", "D6", "B0", "B1", "B2", "B3", "B7"],
+ "rows": ["D0", "D1", "D2", "D3", "C6", "C7", "D5", "D4"]
+ },
+ "diode_direction": "ROW2COL",
+ "indicators": {
+ "caps_lock": "E6",
+ "on_state": 0
+ },
+ "processor": "atmega32u4",
+ "bootloader": "halfkay",
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"matrix": [0, 2], "x": 0, "y": 0},
+
+ {"matrix": [2, 3], "x": 2, "y": 0},
+ {"matrix": [2, 4], "x": 3, "y": 0},
+ {"matrix": [1, 4], "x": 4, "y": 0},
+ {"matrix": [0, 4], "x": 5, "y": 0},
+
+ {"matrix": [0, 6], "x": 6.5, "y": 0},
+ {"matrix": [0, 8], "x": 7.5, "y": 0},
+ {"matrix": [1, 9], "x": 8.5, "y": 0},
+ {"matrix": [2, 9], "x": 9.5, "y": 0},
+
+ {"matrix": [2, 6], "x": 11, "y": 0},
+ {"matrix": [3, 6], "x": 12, "y": 0},
+ {"matrix": [3, 11], "x": 13, "y": 0},
+ {"matrix": [3, 12], "x": 14, "y": 0},
+
+ {"matrix": [3, 15], "x": 15.25, "y": 0},
+ {"matrix": [4, 15], "x": 16.25, "y": 0},
+ {"matrix": [6, 14], "x": 17.25, "y": 0},
+
+ {"matrix": [2, 2], "x": 0, "y": 1.5},
+ {"matrix": [3, 2], "x": 1, "y": 1.5},
+ {"matrix": [3, 3], "x": 2, "y": 1.5},
+ {"matrix": [3, 4], "x": 3, "y": 1.5},
+ {"matrix": [3, 5], "x": 4, "y": 1.5},
+ {"matrix": [2, 5], "x": 5, "y": 1.5},
+ {"matrix": [2, 7], "x": 6, "y": 1.5},
+ {"matrix": [3, 7], "x": 7, "y": 1.5},
+ {"matrix": [3, 8], "x": 8, "y": 1.5},
+ {"matrix": [3, 9], "x": 9, "y": 1.5},
+ {"matrix": [3, 10], "x": 10, "y": 1.5},
+ {"matrix": [2, 10], "x": 11, "y": 1.5},
+ {"matrix": [2, 8], "x": 12, "y": 1.5},
+ {"matrix": [1, 6], "x": 13, "y": 1.5, "w": 2},
+
+ {"matrix": [2, 12], "x": 15.25, "y": 1.5},
+ {"matrix": [2, 14], "x": 16.25, "y": 1.5},
+ {"matrix": [2, 13], "x": 17.25, "y": 1.5},
+
+ {"matrix": [6, 11], "x": 18.5, "y": 1.5},
+ {"matrix": [6, 12], "x": 19.5, "y": 1.5},
+ {"matrix": [6, 13], "x": 20.5, "y": 1.5},
+ {"matrix": [7, 13], "x": 21.5, "y": 1.5},
+
+ {"matrix": [1, 2], "x": 0, "y": 2.5, "w": 1.5},
+ {"matrix": [4, 2], "x": 1.5, "y": 2.5},
+ {"matrix": [4, 3], "x": 2.5, "y": 2.5},
+ {"matrix": [4, 4], "x": 3.5, "y": 2.5},
+ {"matrix": [4, 5], "x": 4.5, "y": 2.5},
+ {"matrix": [1, 5], "x": 5.5, "y": 2.5},
+ {"matrix": [1, 7], "x": 6.5, "y": 2.5},
+ {"matrix": [4, 7], "x": 7.5, "y": 2.5},
+ {"matrix": [4, 8], "x": 8.5, "y": 2.5},
+ {"matrix": [4, 9], "x": 9.5, "y": 2.5},
+ {"matrix": [4, 10], "x": 10.5, "y": 2.5},
+ {"matrix": [1, 10], "x": 11.5, "y": 2.5},
+ {"matrix": [1, 8], "x": 12.5, "y": 2.5},
+ {"matrix": [5, 6], "x": 13.5, "y": 2.5, "w": 1.5},
+
+ {"matrix": [2, 11], "x": 15.25, "y": 2.5},
+ {"matrix": [3, 14], "x": 16.25, "y": 2.5},
+ {"matrix": [3, 13], "x": 17.25, "y": 2.5},
+
+ {"matrix": [4, 11], "x": 18.5, "y": 2.5},
+ {"matrix": [4, 12], "x": 19.5, "y": 2.5},
+ {"matrix": [4, 13], "x": 20.5, "y": 2.5},
+ {"matrix": [4, 14], "x": 21.5, "y": 2.5, "h": 2},
+
+ {"matrix": [1, 3], "x": 0, "y": 3.5, "w": 1.5},
+ {"matrix": [5, 2], "x": 1.75, "y": 3.5},
+ {"matrix": [5, 3], "x": 2.75, "y": 3.5},
+ {"matrix": [5, 4], "x": 3.75, "y": 3.5},
+ {"matrix": [5, 5], "x": 4.75, "y": 3.5},
+ {"matrix": [0, 5], "x": 5.75, "y": 3.5},
+ {"matrix": [0, 7], "x": 6.75, "y": 3.5},
+ {"matrix": [5, 7], "x": 7.75, "y": 3.5},
+ {"matrix": [5, 8], "x": 8.75, "y": 3.5},
+ {"matrix": [5, 9], "x": 9.75, "y": 3.5},
+ {"matrix": [5, 10], "x": 10.75, "y": 3.5},
+ {"matrix": [0, 10], "x": 11.75, "y": 3.5},
+ {"matrix": [6, 10], "x": 12.75, "y": 3.5},
+ {"matrix": [6, 6], "x": 13.75, "y": 3.5, "w": 1.25},
+
+ {"matrix": [1, 11], "x": 18.5, "y": 3.5},
+ {"matrix": [1, 12], "x": 19.5, "y": 3.5},
+ {"matrix": [1, 13], "x": 20.5, "y": 3.5},
+
+ {"matrix": [1, 1], "x": 0, "y": 4.5, "w": 1.25},
+ {"matrix": [0, 3], "x": 1.25, "y": 4.5},
+ {"matrix": [6, 2], "x": 2.25, "y": 4.5},
+ {"matrix": [6, 3], "x": 3.25, "y": 4.5},
+ {"matrix": [6, 4], "x": 4.25, "y": 4.5},
+ {"matrix": [6, 5], "x": 5.25, "y": 4.5},
+ {"matrix": [7, 5], "x": 6.25, "y": 4.5},
+ {"matrix": [7, 7], "x": 7.25, "y": 4.5},
+ {"matrix": [6, 7], "x": 8.25, "y": 4.5},
+ {"matrix": [6, 8], "x": 9.25, "y": 4.5},
+ {"matrix": [6, 9], "x": 10.25, "y": 4.5},
+ {"matrix": [7, 10], "x": 11.25, "y": 4.5},
+ {"matrix": [6, 1], "x": 12.25, "y": 4.5, "w": 2.75},
+
+ {"matrix": [0, 14], "x": 16.25, "y": 4.5},
+
+ {"matrix": [5, 11], "x": 18.5, "y": 4.5},
+ {"matrix": [5, 12], "x": 19.5, "y": 4.5},
+ {"matrix": [5, 13], "x": 20.5, "y": 4.5},
+ {"matrix": [5, 14], "x": 21.5, "y": 4.5, "h": 2},
+
+ {"matrix": [2, 0], "x": 0, "y": 5.5, "w": 1.5},
+ {"matrix": [0, 15], "x": 2.5, "y": 5.5, "w": 1.5},
+ {"matrix": [7, 6], "x": 4, "y": 5.5, "w": 7},
+ {"matrix": [7, 15], "x": 11, "y": 5.5, "w": 1.5},
+ {"matrix": [6, 0], "x": 13.5, "y": 5.5, "w": 1.5},
+
+ {"matrix": [7, 14], "x": 15.25, "y": 5.5},
+ {"matrix": [7, 11], "x": 16.25, "y": 5.5},
+ {"matrix": [7, 12], "x": 17.25, "y": 5.5},
+
+ {"matrix": [0, 12], "x": 18.5, "y": 5.5, "w": 2},
+ {"matrix": [0, 13], "x": 20.5, "y": 5.5}
+ ]
+ }
+ }
+}
diff --git a/keyboards/ibm/model_m/teensy2/keymaps/default/keymap.c b/keyboards/ibm/model_m/teensy2/keymaps/default/keymap.c
new file mode 100644
index 0000000000..fa8621e2e1
--- /dev/null
+++ b/keyboards/ibm/model_m/teensy2/keymaps/default/keymap.c
@@ -0,0 +1,27 @@
+/* Copyright 2019 iw0rm3r
+ *
+ * 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
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT( /* Base layer */
+ KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCRL, KC_PAUS,
+ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
+ KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_P4, KC_P5, KC_P6,
+ KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
+ KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
+ ),
+};
diff --git a/keyboards/ibm/model_m/teensy2/keymaps/default/readme.md b/keyboards/ibm/model_m/teensy2/keymaps/default/readme.md
new file mode 100644
index 0000000000..fb91a8ebe5
--- /dev/null
+++ b/keyboards/ibm/model_m/teensy2/keymaps/default/readme.md
@@ -0,0 +1 @@
+# The default keymap for modelm101 \ No newline at end of file
diff --git a/keyboards/ibm/model_m/teensy2/readme.md b/keyboards/ibm/model_m/teensy2/readme.md
new file mode 100644
index 0000000000..20f10d4791
--- /dev/null
+++ b/keyboards/ibm/model_m/teensy2/readme.md
@@ -0,0 +1,29 @@
+# modelm101_teensy2
+
+![IBM Model M 101 ANSI/102 ISO](https://user-images.githubusercontent.com/46733695/161862805-c891735b-e2e8-418a-ad82-d71c00570eab.jpg)
+
+This is based on the modelm101 teensypp keyboard by iw0rm3r. The difference is that Teensy 2.0 board (produced by PJRC) is used instead of the Teensy++ 2.0 due to the availability issues. Only CapsLock LED is supported since Teensy 2.0 only has 25 digital I/0 pins.
+
+Configuration is build for the Atmel ATmega32U4 controller, which you can easily use on the Teensy 2.0 board (produced by PJRC).
+
+Pins of the Teensy board you should use by default:
+```
+Columns: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
+Pins: F0 F1 F4 F5 F6 F7 B6 B5 B4 D7 D6 B0 B1 B2 B3 B7
+--------------------------------------------------------
+Rows: 1 2 3 4 5 6 7 8
+Pins: D0 D1 D2 D3 C6 C7 D5 D4
+--------------------------------------------------------
+Status LEDs: CapsLock +5V ScrollLock NumLock
+Pins: E6 5V - -
+```
+
+Keyboard Maintainer: [wangfuco](https://github.com/wangfuco)
+Hardware Supported: Teensy 2.0 board by PJRC
+Hardware Availability: https://www.pjrc.com/store/teensy.html
+
+Make example for this keyboard (after setting up your build environment):
+
+ make ibm/model_m/teensy2:default:teensy
+
+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/ibm/model_m/teensy2/rules.mk b/keyboards/ibm/model_m/teensy2/rules.mk
new file mode 100644
index 0000000000..6fe874e748
--- /dev/null
+++ b/keyboards/ibm/model_m/teensy2/rules.mk
@@ -0,0 +1,12 @@
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
+MOUSEKEY_ENABLE = no # Mouse keys
+EXTRAKEY_ENABLE = yes # Audio control and System control
+CONSOLE_ENABLE = no # Console for debug
+COMMAND_ENABLE = no # 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
diff --git a/keyboards/ibm/model_m/teensypp/config.h b/keyboards/ibm/model_m/teensypp/config.h
new file mode 100644
index 0000000000..764fb56f64
--- /dev/null
+++ b/keyboards/ibm/model_m/teensypp/config.h
@@ -0,0 +1,37 @@
+/*
+Copyright 2019 iw0rm3r
+
+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
+
+/* The Model M has no diodes */
+#define MATRIX_HAS_GHOST
+
+/*
+ * Feature disable options
+ * These options are also useful to firmware size reduction.
+ */
+
+/* disable debug print */
+//#define NO_DEBUG
+
+/* disable print */
+//#define NO_PRINT
+
+/* disable action features */
+//#define NO_ACTION_LAYER
+//#define NO_ACTION_TAPPING
+//#define NO_ACTION_ONESHOT
diff --git a/keyboards/ibm/model_m/teensypp/info.json b/keyboards/ibm/model_m/teensypp/info.json
new file mode 100644
index 0000000000..dcbed72aeb
--- /dev/null
+++ b/keyboards/ibm/model_m/teensypp/info.json
@@ -0,0 +1,145 @@
+{
+ "keyboard_name": "IBM Model M 101/102",
+ "manufacturer": "iw0rm3r",
+ "url": "https://github.com/qmk/qmk_firmware/tree/master/keyboards/ibm/model_m/teensypp",
+ "maintainer": "iw0rm3r",
+ "usb": {
+ "vid": "0xFEED",
+ "pid": "0x0000",
+ "device_version": "0.0.1"
+ },
+ "matrix_pins": {
+ "cols": ["C7", "C6", "C5", "C4", "C3", "C2", "C1", "C0", "E1", "E0", "D7", "D6", "D5", "D4", "D3", "D2"],
+ "rows": ["F7", "F6", "F5", "F4", "F3", "F2", "F1", "F0"]
+ },
+ "diode_direction": "ROW2COL",
+ "processor": "at90usb1286",
+ "bootloader": "halfkay",
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"matrix": [0, 2], "x": 0, "y": 0},
+
+ {"matrix": [2, 3], "x": 2, "y": 0},
+ {"matrix": [2, 4], "x": 3, "y": 0},
+ {"matrix": [1, 4], "x": 4, "y": 0},
+ {"matrix": [0, 4], "x": 5, "y": 0},
+
+ {"matrix": [0, 6], "x": 6.5, "y": 0},
+ {"matrix": [0, 8], "x": 7.5, "y": 0},
+ {"matrix": [1, 9], "x": 8.5, "y": 0},
+ {"matrix": [2, 9], "x": 9.5, "y": 0},
+
+ {"matrix": [2, 6], "x": 11, "y": 0},
+ {"matrix": [3, 6], "x": 12, "y": 0},
+ {"matrix": [3, 11], "x": 13, "y": 0},
+ {"matrix": [3, 12], "x": 14, "y": 0},
+
+ {"matrix": [3, 15], "x": 15.25, "y": 0},
+ {"matrix": [4, 15], "x": 16.25, "y": 0},
+ {"matrix": [6, 14], "x": 17.25, "y": 0},
+
+ {"matrix": [2, 2], "x": 0, "y": 1.5},
+ {"matrix": [3, 2], "x": 1, "y": 1.5},
+ {"matrix": [3, 3], "x": 2, "y": 1.5},
+ {"matrix": [3, 4], "x": 3, "y": 1.5},
+ {"matrix": [3, 5], "x": 4, "y": 1.5},
+ {"matrix": [2, 5], "x": 5, "y": 1.5},
+ {"matrix": [2, 7], "x": 6, "y": 1.5},
+ {"matrix": [3, 7], "x": 7, "y": 1.5},
+ {"matrix": [3, 8], "x": 8, "y": 1.5},
+ {"matrix": [3, 9], "x": 9, "y": 1.5},
+ {"matrix": [3, 10], "x": 10, "y": 1.5},
+ {"matrix": [2, 10], "x": 11, "y": 1.5},
+ {"matrix": [2, 8], "x": 12, "y": 1.5},
+ {"matrix": [1, 6], "x": 13, "y": 1.5, "w": 2},
+
+ {"matrix": [2, 12], "x": 15.25, "y": 1.5},
+ {"matrix": [2, 14], "x": 16.25, "y": 1.5},
+ {"matrix": [2, 13], "x": 17.25, "y": 1.5},
+
+ {"matrix": [6, 11], "x": 18.5, "y": 1.5},
+ {"matrix": [6, 12], "x": 19.5, "y": 1.5},
+ {"matrix": [6, 13], "x": 20.5, "y": 1.5},
+ {"matrix": [7, 13], "x": 21.5, "y": 1.5},
+
+ {"matrix": [1, 2], "x": 0, "y": 2.5, "w": 1.5},
+ {"matrix": [4, 2], "x": 1.5, "y": 2.5},
+ {"matrix": [4, 3], "x": 2.5, "y": 2.5},
+ {"matrix": [4, 4], "x": 3.5, "y": 2.5},
+ {"matrix": [4, 5], "x": 4.5, "y": 2.5},
+ {"matrix": [1, 5], "x": 5.5, "y": 2.5},
+ {"matrix": [1, 7], "x": 6.5, "y": 2.5},
+ {"matrix": [4, 7], "x": 7.5, "y": 2.5},
+ {"matrix": [4, 8], "x": 8.5, "y": 2.5},
+ {"matrix": [4, 9], "x": 9.5, "y": 2.5},
+ {"matrix": [4, 10], "x": 10.5, "y": 2.5},
+ {"matrix": [1, 10], "x": 11.5, "y": 2.5},
+ {"matrix": [1, 8], "x": 12.5, "y": 2.5},
+ {"matrix": [5, 6], "x": 13.5, "y": 2.5, "w": 1.5},
+
+ {"matrix": [2, 11], "x": 15.25, "y": 2.5},
+ {"matrix": [3, 14], "x": 16.25, "y": 2.5},
+ {"matrix": [3, 13], "x": 17.25, "y": 2.5},
+
+ {"matrix": [4, 11], "x": 18.5, "y": 2.5},
+ {"matrix": [4, 12], "x": 19.5, "y": 2.5},
+ {"matrix": [4, 13], "x": 20.5, "y": 2.5},
+ {"matrix": [4, 14], "x": 21.5, "y": 2.5, "h": 2},
+
+ {"matrix": [1, 3], "x": 0, "y": 3.5, "w": 1.5},
+ {"matrix": [5, 2], "x": 1.75, "y": 3.5},
+ {"matrix": [5, 3], "x": 2.75, "y": 3.5},
+ {"matrix": [5, 4], "x": 3.75, "y": 3.5},
+ {"matrix": [5, 5], "x": 4.75, "y": 3.5},
+ {"matrix": [0, 5], "x": 5.75, "y": 3.5},
+ {"matrix": [0, 7], "x": 6.75, "y": 3.5},
+ {"matrix": [5, 7], "x": 7.75, "y": 3.5},
+ {"matrix": [5, 8], "x": 8.75, "y": 3.5},
+ {"matrix": [5, 9], "x": 9.75, "y": 3.5},
+ {"matrix": [5, 10], "x": 10.75, "y": 3.5},
+ {"matrix": [0, 10], "x": 11.75, "y": 3.5},
+ {"matrix": [6, 10], "x": 12.75, "y": 3.5},
+ {"matrix": [6, 6], "x": 13.75, "y": 3.5, "w": 1.25},
+
+ {"matrix": [1, 11], "x": 18.5, "y": 3.5},
+ {"matrix": [1, 12], "x": 19.5, "y": 3.5},
+ {"matrix": [1, 13], "x": 20.5, "y": 3.5},
+
+ {"matrix": [1, 1], "x": 0, "y": 4.5, "w": 1.25},
+ {"matrix": [0, 3], "x": 1.25, "y": 4.5},
+ {"matrix": [6, 2], "x": 2.25, "y": 4.5},
+ {"matrix": [6, 3], "x": 3.25, "y": 4.5},
+ {"matrix": [6, 4], "x": 4.25, "y": 4.5},
+ {"matrix": [6, 5], "x": 5.25, "y": 4.5},
+ {"matrix": [7, 5], "x": 6.25, "y": 4.5},
+ {"matrix": [7, 7], "x": 7.25, "y": 4.5},
+ {"matrix": [6, 7], "x": 8.25, "y": 4.5},
+ {"matrix": [6, 8], "x": 9.25, "y": 4.5},
+ {"matrix": [6, 9], "x": 10.25, "y": 4.5},
+ {"matrix": [7, 10], "x": 11.25, "y": 4.5},
+ {"matrix": [6, 1], "x": 12.25, "y": 4.5, "w": 2.75},
+
+ {"matrix": [0, 14], "x": 16.25, "y": 4.5},
+
+ {"matrix": [5, 11], "x": 18.5, "y": 4.5},
+ {"matrix": [5, 12], "x": 19.5, "y": 4.5},
+ {"matrix": [5, 13], "x": 20.5, "y": 4.5},
+ {"matrix": [5, 14], "x": 21.5, "y": 4.5, "h": 2},
+
+ {"matrix": [2, 0], "x": 0, "y": 5.5, "w": 1.5},
+ {"matrix": [0, 15], "x": 2.5, "y": 5.5, "w": 1.5},
+ {"matrix": [7, 6], "x": 4, "y": 5.5, "w": 7},
+ {"matrix": [7, 15], "x": 11, "y": 5.5, "w": 1.5},
+ {"matrix": [6, 0], "x": 13.5, "y": 5.5, "w": 1.5},
+
+ {"matrix": [7, 14], "x": 15.25, "y": 5.5},
+ {"matrix": [7, 11], "x": 16.25, "y": 5.5},
+ {"matrix": [7, 12], "x": 17.25, "y": 5.5},
+
+ {"matrix": [0, 12], "x": 18.5, "y": 5.5, "w": 2},
+ {"matrix": [0, 13], "x": 20.5, "y": 5.5}
+ ]
+ }
+ }
+}
diff --git a/keyboards/ibm/model_m/teensypp/keymaps/default/keymap.c b/keyboards/ibm/model_m/teensypp/keymaps/default/keymap.c
new file mode 100644
index 0000000000..fa8621e2e1
--- /dev/null
+++ b/keyboards/ibm/model_m/teensypp/keymaps/default/keymap.c
@@ -0,0 +1,27 @@
+/* Copyright 2019 iw0rm3r
+ *
+ * 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
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT( /* Base layer */
+ KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCRL, KC_PAUS,
+ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
+ KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_P4, KC_P5, KC_P6,
+ KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
+ KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
+ ),
+};
diff --git a/keyboards/ibm/model_m/teensypp/keymaps/default/readme.md b/keyboards/ibm/model_m/teensypp/keymaps/default/readme.md
new file mode 100644
index 0000000000..fb91a8ebe5
--- /dev/null
+++ b/keyboards/ibm/model_m/teensypp/keymaps/default/readme.md
@@ -0,0 +1 @@
+# The default keymap for modelm101 \ No newline at end of file
diff --git a/keyboards/ibm/model_m/teensypp/keymaps/iw0rm3r/config.h b/keyboards/ibm/model_m/teensypp/keymaps/iw0rm3r/config.h
new file mode 100644
index 0000000000..779e5a858f
--- /dev/null
+++ b/keyboards/ibm/model_m/teensypp/keymaps/iw0rm3r/config.h
@@ -0,0 +1,19 @@
+/* Copyright 2019 iw0rm3r
+ *
+ * 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/ibm/model_m/teensypp/keymaps/iw0rm3r/keymap.c b/keyboards/ibm/model_m/teensypp/keymaps/iw0rm3r/keymap.c
new file mode 100644
index 0000000000..f4a1acb0ce
--- /dev/null
+++ b/keyboards/ibm/model_m/teensypp/keymaps/iw0rm3r/keymap.c
@@ -0,0 +1,43 @@
+/* Copyright 2019 iw0rm3r
+ *
+ * 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
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT( /* Base layer */
+ KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCRL, KC_PAUS,
+ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
+ KC_LGUI, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_P4, KC_P5, KC_P6,
+ KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_CAPS,
+ KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_APP, KC_PDOT
+ ),
+};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ return true;
+}
+
+void matrix_init_user(void) {
+
+}
+
+void matrix_scan_user(void) {
+
+}
+
+void led_set_user(uint8_t usb_led) {
+
+}
diff --git a/keyboards/ibm/model_m/teensypp/keymaps/iw0rm3r/readme.md b/keyboards/ibm/model_m/teensypp/keymaps/iw0rm3r/readme.md
new file mode 100644
index 0000000000..17b0f40da2
--- /dev/null
+++ b/keyboards/ibm/model_m/teensypp/keymaps/iw0rm3r/readme.md
@@ -0,0 +1,5 @@
+# This is my personal keymap for modelm101
+
+Caps Lock is mapped as LGUI (Windows key).
+Num Enter is mapped as Caps Lock.
+Num0 is mapped as App key (context menu). \ No newline at end of file
diff --git a/keyboards/ibm/model_m/teensypp/readme.md b/keyboards/ibm/model_m/teensypp/readme.md
new file mode 100644
index 0000000000..e05d68b81c
--- /dev/null
+++ b/keyboards/ibm/model_m/teensypp/readme.md
@@ -0,0 +1,42 @@
+# modelm101
+
+![IBM Model M 101 ANSI/102 ISO](https://i.imgur.com/DAE3W7g.jpg)
+
+This is a configuration for the QMK firmware for reversible conversion of IBM's Model M keyboards (common 101-key ANSI and 102-key ISO models) from stock, power-hungry controller, to a modern one, running the USB bus.
+Configuration is build for the Atmel AT90USB1286 controller, which you can easily use on the Teensy++ 2.0 board (produced by PJRC).
+Project is heavely based on 2 other projects:
+1. Teensy++ 2.0-based custom Model M controller running TMK firmware ('modelm" by [lmorchard](https://blog.lmorchard.com/2016/02/21/modelm-controller/)); - had a few issues.
+2. Teensy++ 2.0-based custom Model M 122-key controller running QMK firmware ("ibm122m" by [lukexorz](https://github.com/lukexorz)); - had wrong layout for 101/102-key boards and no status LED support.
+
+For this conversion you will need:
+1. Teensy++ 2.0 dev board itself (can be used a different dev board, but it will require some changes in configuration);
+2. Ribbon connectors to connect the membrane to a dev board. Depending on your Model M variation, you will need 1 Trio-mate 16pin connector (6-520315-6 or 6-520415-6) and 1 Trio-mate 8pin connector (5-120628-8 or 5-520314-8), or 2 Trio-mate 16pin connectors;
+3. Full-sized breadboard (without power rails; half-size should do, but full-sized one looks more native) or a PCB to wire everything up;
+4. A bunch of jumper wires;
+5. mini-USB male cable with any USB socket you want to use to connect Teensy inside the keyboard to your PC (I use short mini-USB male to mini-USB female cable);
+6. (optional) Resistors for connecting status LEDs if your LED PCB doesn't have any;
+7. (optional) Double-sided tape to fix USB socket on or inside the keyboard case.
+
+Pins of the Teensy board you should use by default:
+```
+Columns: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
+Pins: C7 C6 C5 C4 C3 C2 C1 C0 E1 E0 D7 D6 D5 D4 D3 D2
+--------------------------------------------------------
+Rows: 1 2 3 4 5 6 7 8
+Pins: F7 F6 F5 F4 F3 F2 F1 F0
+--------------------------------------------------------
+Status LEDs: CapsLock +5V ScrollLock NumLock
+Pins: B6 5V B5 B4
+```
+
+Please note that some versions of Model M have LED connected with a ribbon cable, and not with separate wires.
+
+* Keyboard Maintainer: [iw0rm3r](https://github.com/iw0rm3r)
+* Hardware Supported: Teensy++ 2.0 board by PJRC
+* Hardware Availability: https://www.pjrc.com/store/teensypp.html
+
+Make example for this keyboard (after setting up your build environment):
+
+ make ibm/model_m/teensypp:default:teensy
+
+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/ibm/model_m/teensypp/rules.mk b/keyboards/ibm/model_m/teensypp/rules.mk
new file mode 100644
index 0000000000..1eeda920b4
--- /dev/null
+++ b/keyboards/ibm/model_m/teensypp/rules.mk
@@ -0,0 +1,12 @@
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
+MOUSEKEY_ENABLE = no # Mouse keys
+EXTRAKEY_ENABLE = no # Audio control and System control
+CONSOLE_ENABLE = no # Console for debug
+COMMAND_ENABLE = no # 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
diff --git a/keyboards/ibm/model_m/teensypp/teensypp.c b/keyboards/ibm/model_m/teensypp/teensypp.c
new file mode 100644
index 0000000000..fa8669dc81
--- /dev/null
+++ b/keyboards/ibm/model_m/teensypp/teensypp.c
@@ -0,0 +1,36 @@
+/* Copyright 2019 iw0rm3r
+ *
+ * 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 "quantum.h"
+
+void led_init_ports(void) {
+ /* Setting status LEDs pins to output and +5V (off) */
+ setPinOutput(B4);
+ setPinOutput(B5);
+ setPinOutput(B6);
+ writePinHigh(B4);
+ writePinHigh(B5);
+ writePinHigh(B6);
+}
+
+bool led_update_kb(led_t led_state) {
+ bool res = led_update_user(led_state);
+ if(res) {
+ writePin(B4, !led_state.num_lock);
+ writePin(B6, !led_state.caps_lock);
+ writePin(B5, !led_state.scroll_lock);
+ }
+ return res;
+}
diff --git a/keyboards/ibm/model_m/yugo_m/config.h b/keyboards/ibm/model_m/yugo_m/config.h
new file mode 100644
index 0000000000..2b7fc4d157
--- /dev/null
+++ b/keyboards/ibm/model_m/yugo_m/config.h
@@ -0,0 +1,42 @@
+/*
+Copyright 2020 Nidzo Tomic <tomicn8@hotmail.com>
+Copyright 2022 an_achronism <87213873+an-achronism@users.noreply.github.com>
+
+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
+
+/* define if matrix has ghost */
+#define MATRIX_HAS_GHOST
+
+/*
+ * Feature disable options
+ * These options are also useful to firmware size reduction.
+ */
+
+/* disable debug print */
+//#define NO_DEBUG
+
+/* disable print */
+//#define NO_PRINT
+
+/* disable action features */
+//#define NO_ACTION_LAYER
+//#define NO_ACTION_TAPPING
+//#define NO_ACTION_ONESHOT
+
+/* redefine available (emulated) EEPROM as 4 kB rather than the default 2 kB to let VIA use more of the on-chip Flash of the STM32F303 to store 4 layers (since 4 layers * 8 rows * 16 columns * 2 = 1024 bytes but the default max available is 1023 bytes due to ATMEGA32U4 etc. only having 1 kB of EEPROM) */
+#define WEAR_LEVELING_BACKING_SIZE 4096
+#define WEAR_LEVELING_LOGICAL_SIZE 2048
diff --git a/keyboards/ibm/model_m/yugo_m/info.json b/keyboards/ibm/model_m/yugo_m/info.json
new file mode 100644
index 0000000000..6e3a0b39c6
--- /dev/null
+++ b/keyboards/ibm/model_m/yugo_m/info.json
@@ -0,0 +1,398 @@
+{
+ "keyboard_name": "Yugo-M (IBM Model M replacment controller)",
+ "manufacturer": "IBM",
+ "url": "https://github.com/qmk/qmk_firmware/tree/master/keyboards/ibm/model_m/yugo_m",
+ "maintainer": "Nidzo Tomic",
+ "usb": {
+ "vid": "0xFEED",
+ "pid": "0x8E81",
+ "device_version": "0.0.1"
+ },
+ "matrix_pins": {
+ "cols": ["A9", "A8", "B15", "B14", "B13", "B12", "B11", "B10", "B2", "B1", "B0", "A7", "A6", "A5", "A4", "A3"],
+ "rows": ["B8", "B7", "B6", "B5", "B4", "B3", "A15", "A14"]
+ },
+ "diode_direction": "ROW2COL",
+ "processor": "STM32F303",
+ "bootloader": "stm32-dfu",
+ "board": "QMK_PROTON_C",
+ "layouts": {
+ "LAYOUT_all": {
+ "layout": [
+ {"label": "Esc", "matrix": [0, 2], "x": 0, "y": 0},
+
+ {"label": "F1", "matrix": [2, 3], "x": 2, "y": 0},
+ {"label": "F2", "matrix": [2, 4], "x": 3, "y": 0},
+ {"label": "F3", "matrix": [1, 4], "x": 4, "y": 0},
+ {"label": "F4", "matrix": [0, 4], "x": 5, "y": 0},
+
+ {"label": "F5", "matrix": [0, 6], "x": 6.5, "y": 0},
+ {"label": "F6", "matrix": [0, 8], "x": 7.5, "y": 0},
+ {"label": "F7", "matrix": [1, 9], "x": 8.5, "y": 0},
+ {"label": "F8", "matrix": [2, 9], "x": 9.5, "y": 0},
+
+ {"label": "F9", "matrix": [2, 6], "x": 11, "y": 0},
+ {"label": "F10", "matrix": [3, 6], "x": 12, "y": 0},
+ {"label": "F11", "matrix": [3, 11], "x": 13, "y": 0},
+ {"label": "F12", "matrix": [3, 12], "x": 14, "y": 0},
+
+ {"label": "Print Screen", "matrix": [3, 15], "x": 15.5, "y": 0},
+ {"label": "Scroll Lock", "matrix": [4, 15], "x": 16.5, "y": 0},
+ {"label": "Pause", "matrix": [6, 14], "x": 17.5, "y": 0},
+
+ {"label": "`", "matrix": [2, 2], "x": 0, "y": 1.5},
+ {"label": "1", "matrix": [3, 2], "x": 1, "y": 1.5},
+ {"label": "2", "matrix": [3, 3], "x": 2, "y": 1.5},
+ {"label": "3", "matrix": [3, 4], "x": 3, "y": 1.5},
+ {"label": "4", "matrix": [3, 5], "x": 4, "y": 1.5},
+ {"label": "5", "matrix": [2, 5], "x": 5, "y": 1.5},
+ {"label": "6", "matrix": [2, 7], "x": 6, "y": 1.5},
+ {"label": "7", "matrix": [3, 7], "x": 7, "y": 1.5},
+ {"label": "8", "matrix": [3, 8], "x": 8, "y": 1.5},
+ {"label": "9", "matrix": [3, 9], "x": 9, "y": 1.5},
+ {"label": "0", "matrix": [3, 10], "x": 10, "y": 1.5},
+ {"label": "-", "matrix": [2, 10], "x": 11, "y": 1.5},
+ {"label": "=", "matrix": [2, 8], "x": 12, "y": 1.5},
+ {"label": "\\", "matrix": [4, 6], "x": 13, "y": 1.5},
+ {"label": "Backspace", "matrix": [1, 6], "x": 14, "y": 1.5},
+
+ {"label": "Insert", "matrix": [2, 12], "x": 15.5, "y": 1.5},
+ {"label": "Home", "matrix": [2, 14], "x": 16.5, "y": 1.5},
+ {"label": "Page Up", "matrix": [2, 13], "x": 17.5, "y": 1.5},
+
+ {"label": "Num Lock", "matrix": [6, 11], "x": 19, "y": 1.5},
+ {"label": "/", "matrix": [6, 12], "x": 20, "y": 1.5},
+ {"label": "*", "matrix": [6, 13], "x": 21, "y": 1.5},
+ {"label": "-", "matrix": [7, 13], "x": 22, "y": 1.5},
+
+ {"label": "Tab", "matrix": [1, 2], "x": 0, "y": 2.5, "w": 1.5},
+ {"label": "Q", "matrix": [4, 2], "x": 1.5, "y": 2.5},
+ {"label": "W", "matrix": [4, 3], "x": 2.5, "y": 2.5},
+ {"label": "E", "matrix": [4, 4], "x": 3.5, "y": 2.5},
+ {"label": "R", "matrix": [4, 5], "x": 4.5, "y": 2.5},
+ {"label": "T", "matrix": [1, 5], "x": 5.5, "y": 2.5},
+ {"label": "Y", "matrix": [1, 7], "x": 6.5, "y": 2.5},
+ {"label": "U", "matrix": [4, 7], "x": 7.5, "y": 2.5},
+ {"label": "I", "matrix": [4, 8], "x": 8.5, "y": 2.5},
+ {"label": "O", "matrix": [4, 9], "x": 9.5, "y": 2.5},
+ {"label": "P", "matrix": [4, 10], "x": 10.5, "y": 2.5},
+ {"label": "[", "matrix": [1, 10], "x": 11.5, "y": 2.5},
+ {"label": "]", "matrix": [1, 8], "x": 12.5, "y": 2.5},
+ {"label": "\\", "matrix": [5, 6], "x": 13.5, "y": 2.5, "w": 1.5},
+
+ {"label": "Delete", "matrix": [2, 11], "x": 15.5, "y": 2.5},
+ {"label": "End", "matrix": [3, 14], "x": 16.5, "y": 2.5},
+ {"label": "Page Down", "matrix": [3, 13], "x": 17.5, "y": 2.5},
+
+ {"label": "7", "matrix": [4, 11], "x": 19, "y": 2.5},
+ {"label": "8", "matrix": [4, 12], "x": 20, "y": 2.5},
+ {"label": "9", "matrix": [4, 13], "x": 21, "y": 2.5},
+ {"label": "+", "matrix": [4, 14], "x": 22, "y": 2.5},
+
+ {"label": "Caps Lock", "matrix": [1, 3], "x": 0, "y": 3.5, "w": 1.25},
+ {"label": "A", "matrix": [5, 2], "x": 1.75, "y": 3.5},
+ {"label": "S", "matrix": [5, 3], "x": 2.75, "y": 3.5},
+ {"label": "D", "matrix": [5, 4], "x": 3.75, "y": 3.5},
+ {"label": "F", "matrix": [5, 5], "x": 4.75, "y": 3.5},
+ {"label": "G", "matrix": [0, 5], "x": 5.75, "y": 3.5},
+ {"label": "H", "matrix": [0, 7], "x": 6.75, "y": 3.5},
+ {"label": "J", "matrix": [5, 7], "x": 7.75, "y": 3.5},
+ {"label": "K", "matrix": [5, 8], "x": 8.75, "y": 3.5},
+ {"label": "L", "matrix": [5, 9], "x": 9.75, "y": 3.5},
+ {"label": ";", "matrix": [5, 10], "x": 10.75, "y": 3.5},
+ {"label": "'", "matrix": [0, 10], "x": 11.75, "y": 3.5},
+ {"label": "#", "matrix": [6, 10], "x": 12.75, "y": 3.5},
+ {"label": "Enter", "matrix": [6, 6], "x": 13.75, "y": 3.5, "w": 1.25},
+
+ {"label": "4", "matrix": [1, 11], "x": 19, "y": 3.5},
+ {"label": "5", "matrix": [1, 12], "x": 20, "y": 3.5},
+ {"label": "6", "matrix": [1, 13], "x": 21, "y": 3.5},
+ {"label": "=", "matrix": [1, 14], "x": 22, "y": 3.5},
+
+ {"label": "Shift", "matrix": [1, 1], "x": 0, "y": 4.5, "w": 1.25},
+ {"label": "\\", "matrix": [0, 3], "x": 1.25, "y": 4.5},
+ {"label": "Z", "matrix": [6, 2], "x": 2.25, "y": 4.5},
+ {"label": "X", "matrix": [6, 3], "x": 3.25, "y": 4.5},
+ {"label": "C", "matrix": [6, 4], "x": 4.25, "y": 4.5},
+ {"label": "V", "matrix": [6, 5], "x": 5.25, "y": 4.5},
+ {"label": "B", "matrix": [7, 5], "x": 6.25, "y": 4.5},
+ {"label": "N", "matrix": [7, 7], "x": 7.25, "y": 4.5},
+ {"label": "M", "matrix": [6, 7], "x": 8.25, "y": 4.5},
+ {"label": ",", "matrix": [6, 8], "x": 9.25, "y": 4.5},
+ {"label": ".", "matrix": [6, 9], "x": 10.25, "y": 4.5},
+ {"label": "/", "matrix": [7, 10], "x": 11.25, "y": 4.5},
+ {"label": "\\", "matrix": [7, 8], "x": 12.25, "y": 4.5},
+ {"label": "Shift", "matrix": [6, 1], "x": 13.25, "y": 4.5, "w": 1.75},
+
+ {"label": "\u2191", "matrix": [0, 14], "x": 16.5, "y": 4.5},
+
+ {"label": "1", "matrix": [5, 11], "x": 19, "y": 4.5},
+ {"label": "2", "matrix": [5, 12], "x": 20, "y": 4.5},
+ {"label": "3", "matrix": [5, 13], "x": 21, "y": 4.5},
+ {"label": "Enter", "matrix": [5, 14], "x": 22, "y": 4.5},
+
+ {"label": "Ctrl", "matrix": [2, 0], "x": 0, "y": 5.5, "w": 1.5},
+ {"label": "Alt", "matrix": [0, 15], "x": 2.5, "y": 5.5, "w": 1.5},
+ {"label": "Space", "matrix": [7, 6], "x": 4, "y": 5.5, "w": 7},
+ {"label": "Alt Gr", "matrix": [7, 15], "x": 11, "y": 5.5, "w": 1.5},
+ {"label": "Ctrl", "matrix": [6, 0], "x": 13.5, "y": 5.5, "w": 1.5},
+
+ {"label": "\u2190", "matrix": [7, 14], "x": 15.5, "y": 5.5},
+ {"label": "\u2193", "matrix": [7, 11], "x": 16.5, "y": 5.5},
+ {"label": "\u2192", "matrix": [7, 12], "x": 17.5, "y": 5.5},
+
+ {"label": "0", "matrix": [0, 11], "x": 19, "y": 5.5},
+ {"label": ",", "matrix": [0, 12], "x": 20, "y": 5.5},
+ {"label": ".", "matrix": [0, 13], "x": 21, "y": 5.5},
+ {"label": "GUI", "matrix": [5, 15], "x": 22, "y": 5.5}
+ ]
+ },
+ "LAYOUT_fullsize_ansi_wkl": {
+ "layout": [
+ {"label": "Esc", "matrix": [0, 2], "x": 0, "y": 0},
+
+ {"label": "F1", "matrix": [2, 3], "x": 2, "y": 0},
+ {"label": "F2", "matrix": [2, 4], "x": 3, "y": 0},
+ {"label": "F3", "matrix": [1, 4], "x": 4, "y": 0},
+ {"label": "F4", "matrix": [0, 4], "x": 5, "y": 0},
+
+ {"label": "F5", "matrix": [0, 6], "x": 6.5, "y": 0},
+ {"label": "F6", "matrix": [0, 8], "x": 7.5, "y": 0},
+ {"label": "F7", "matrix": [1, 9], "x": 8.5, "y": 0},
+ {"label": "F8", "matrix": [2, 9], "x": 9.5, "y": 0},
+
+ {"label": "F9", "matrix": [2, 6], "x": 11, "y": 0},
+ {"label": "F10", "matrix": [3, 6], "x": 12, "y": 0},
+ {"label": "F11", "matrix": [3, 11], "x": 13, "y": 0},
+ {"label": "F12", "matrix": [3, 12], "x": 14, "y": 0},
+
+ {"label": "Print Screen", "matrix": [3, 15], "x": 15.5, "y": 0},
+ {"label": "Scroll Lock", "matrix": [4, 15], "x": 16.5, "y": 0},
+ {"label": "Pause", "matrix": [6, 14], "x": 17.5, "y": 0},
+
+ {"label": "`", "matrix": [2, 2], "x": 0, "y": 1.5},
+ {"label": "1", "matrix": [3, 2], "x": 1, "y": 1.5},
+ {"label": "2", "matrix": [3, 3], "x": 2, "y": 1.5},
+ {"label": "3", "matrix": [3, 4], "x": 3, "y": 1.5},
+ {"label": "4", "matrix": [3, 5], "x": 4, "y": 1.5},
+ {"label": "5", "matrix": [2, 5], "x": 5, "y": 1.5},
+ {"label": "6", "matrix": [2, 7], "x": 6, "y": 1.5},
+ {"label": "7", "matrix": [3, 7], "x": 7, "y": 1.5},
+ {"label": "8", "matrix": [3, 8], "x": 8, "y": 1.5},
+ {"label": "9", "matrix": [3, 9], "x": 9, "y": 1.5},
+ {"label": "0", "matrix": [3, 10], "x": 10, "y": 1.5},
+ {"label": "-", "matrix": [2, 10], "x": 11, "y": 1.5},
+ {"label": "=", "matrix": [2, 8], "x": 12, "y": 1.5},
+ {"label": "Backspace", "matrix": [1, 6], "x": 13, "y": 1.5, "w": 2},
+
+ {"label": "Insert", "matrix": [2, 12], "x": 15.5, "y": 1.5},
+ {"label": "Home", "matrix": [2, 14], "x": 16.5, "y": 1.5},
+ {"label": "Page Up", "matrix": [2, 13], "x": 17.5, "y": 1.5},
+
+ {"label": "Num Lock", "matrix": [6, 11], "x": 19, "y": 1.5},
+ {"label": "/", "matrix": [6, 12], "x": 20, "y": 1.5},
+ {"label": "*", "matrix": [6, 13], "x": 21, "y": 1.5},
+ {"label": "-", "matrix": [7, 13], "x": 22, "y": 1.5},
+
+ {"label": "Tab", "matrix": [1, 2], "x": 0, "y": 2.5, "w": 1.5},
+ {"label": "Q", "matrix": [4, 2], "x": 1.5, "y": 2.5},
+ {"label": "W", "matrix": [4, 3], "x": 2.5, "y": 2.5},
+ {"label": "E", "matrix": [4, 4], "x": 3.5, "y": 2.5},
+ {"label": "R", "matrix": [4, 5], "x": 4.5, "y": 2.5},
+ {"label": "T", "matrix": [1, 5], "x": 5.5, "y": 2.5},
+ {"label": "Y", "matrix": [1, 7], "x": 6.5, "y": 2.5},
+ {"label": "U", "matrix": [4, 7], "x": 7.5, "y": 2.5},
+ {"label": "I", "matrix": [4, 8], "x": 8.5, "y": 2.5},
+ {"label": "O", "matrix": [4, 9], "x": 9.5, "y": 2.5},
+ {"label": "P", "matrix": [4, 10], "x": 10.5, "y": 2.5},
+ {"label": "[", "matrix": [1, 10], "x": 11.5, "y": 2.5},
+ {"label": "]", "matrix": [1, 8], "x": 12.5, "y": 2.5},
+ {"label": "\\", "matrix": [5, 6], "x": 13.5, "y": 2.5, "w": 1.5},
+
+ {"label": "Delete", "matrix": [2, 11], "x": 15.5, "y": 2.5},
+ {"label": "End", "matrix": [3, 14], "x": 16.5, "y": 2.5},
+ {"label": "Page Down", "matrix": [3, 13], "x": 17.5, "y": 2.5},
+
+ {"label": "7", "matrix": [4, 11], "x": 19, "y": 2.5},
+ {"label": "8", "matrix": [4, 12], "x": 20, "y": 2.5},
+ {"label": "9", "matrix": [4, 13], "x": 21, "y": 2.5},
+ {"label": "+", "matrix": [4, 14], "x": 22, "y": 2.5, "h": 2},
+
+ {"label": "Caps Lock", "matrix": [1, 3], "x": 0, "y": 3.5, "w": 1.25},
+ {"label": "A", "matrix": [5, 2], "x": 1.75, "y": 3.5},
+ {"label": "S", "matrix": [5, 3], "x": 2.75, "y": 3.5},
+ {"label": "D", "matrix": [5, 4], "x": 3.75, "y": 3.5},
+ {"label": "F", "matrix": [5, 5], "x": 4.75, "y": 3.5},
+ {"label": "G", "matrix": [0, 5], "x": 5.75, "y": 3.5},
+ {"label": "H", "matrix": [0, 7], "x": 6.75, "y": 3.5},
+ {"label": "J", "matrix": [5, 7], "x": 7.75, "y": 3.5},
+ {"label": "K", "matrix": [5, 8], "x": 8.75, "y": 3.5},
+ {"label": "L", "matrix": [5, 9], "x": 9.75, "y": 3.5},
+ {"label": ";", "matrix": [5, 10], "x": 10.75, "y": 3.5},
+ {"label": "'", "matrix": [0, 10], "x": 11.75, "y": 3.5},
+ {"label": "Enter", "matrix": [6, 6], "x": 12.75, "y": 3.5, "w": 2.25},
+
+ {"label": "4", "matrix": [1, 11], "x": 19, "y": 3.5},
+ {"label": "5", "matrix": [1, 12], "x": 20, "y": 3.5},
+ {"label": "6", "matrix": [1, 13], "x": 21, "y": 3.5},
+
+ {"label": "Shift", "matrix": [1, 1], "x": 0, "y": 4.5, "w": 2.25},
+ {"label": "Z", "matrix": [6, 2], "x": 2.25, "y": 4.5},
+ {"label": "X", "matrix": [6, 3], "x": 3.25, "y": 4.5},
+ {"label": "C", "matrix": [6, 4], "x": 4.25, "y": 4.5},
+ {"label": "V", "matrix": [6, 5], "x": 5.25, "y": 4.5},
+ {"label": "B", "matrix": [7, 5], "x": 6.25, "y": 4.5},
+ {"label": "N", "matrix": [7, 7], "x": 7.25, "y": 4.5},
+ {"label": "M", "matrix": [6, 7], "x": 8.25, "y": 4.5},
+ {"label": ",", "matrix": [6, 8], "x": 9.25, "y": 4.5},
+ {"label": ".", "matrix": [6, 9], "x": 10.25, "y": 4.5},
+ {"label": "/", "matrix": [7, 10], "x": 11.25, "y": 4.5},
+ {"label": "Shift", "matrix": [6, 1], "x": 12.25, "y": 4.5, "w": 2.75},
+
+ {"label": "\u2191", "matrix": [0, 14], "x": 16.5, "y": 4.5},
+
+ {"label": "1", "matrix": [5, 11], "x": 19, "y": 4.5},
+ {"label": "2", "matrix": [5, 12], "x": 20, "y": 4.5},
+ {"label": "3", "matrix": [5, 13], "x": 21, "y": 4.5},
+ {"label": "Enter", "matrix": [5, 14], "x": 22, "y": 4.5, "h": 2},
+
+ {"label": "Ctrl", "matrix": [2, 0], "x": 0, "y": 5.5, "w": 1.5},
+ {"label": "Alt", "matrix": [0, 15], "x": 2.5, "y": 5.5, "w": 1.5},
+ {"label": "Space", "matrix": [7, 6], "x": 4, "y": 5.5, "w": 7},
+ {"label": "Alt Gr", "matrix": [7, 15], "x": 11, "y": 5.5, "w": 1.5},
+ {"label": "Ctrl", "matrix": [6, 0], "x": 13.5, "y": 5.5, "w": 1.5},
+
+ {"label": "\u2190", "matrix": [7, 14], "x": 15.5, "y": 5.5},
+ {"label": "\u2193", "matrix": [7, 11], "x": 16.5, "y": 5.5},
+ {"label": "\u2192", "matrix": [7, 12], "x": 17.5, "y": 5.5},
+
+ {"label": "0", "matrix": [0, 11], "x": 19, "y": 5.5, "w": 2},
+ {"label": ".", "matrix": [0, 13], "x": 21, "y": 5.5}
+ ]
+ },
+ "LAYOUT_fullsize_iso_wkl": {
+ "layout": [
+ {"label": "Esc", "matrix": [0, 2], "x": 0, "y": 0},
+
+ {"label": "F1", "matrix": [2, 3], "x": 2, "y": 0},
+ {"label": "F2", "matrix": [2, 4], "x": 3, "y": 0},
+ {"label": "F3", "matrix": [1, 4], "x": 4, "y": 0},
+ {"label": "F4", "matrix": [0, 4], "x": 5, "y": 0},
+
+ {"label": "F5", "matrix": [0, 6], "x": 6.5, "y": 0},
+ {"label": "F6", "matrix": [0, 8], "x": 7.5, "y": 0},
+ {"label": "F7", "matrix": [1, 9], "x": 8.5, "y": 0},
+ {"label": "F8", "matrix": [2, 9], "x": 9.5, "y": 0},
+
+ {"label": "F9", "matrix": [2, 6], "x": 11, "y": 0},
+ {"label": "F10", "matrix": [3, 6], "x": 12, "y": 0},
+ {"label": "F11", "matrix": [3, 11], "x": 13, "y": 0},
+ {"label": "F12", "matrix": [3, 12], "x": 14, "y": 0},
+
+ {"label": "Print Screen", "matrix": [3, 15], "x": 15.5, "y": 0},
+ {"label": "Scroll Lock", "matrix": [4, 15], "x": 16.5, "y": 0},
+ {"label": "Pause", "matrix": [6, 14], "x": 17.5, "y": 0},
+
+ {"label": "`", "matrix": [2, 2], "x": 0, "y": 1.5},
+ {"label": "1", "matrix": [3, 2], "x": 1, "y": 1.5},
+ {"label": "2", "matrix": [3, 3], "x": 2, "y": 1.5},
+ {"label": "3", "matrix": [3, 4], "x": 3, "y": 1.5},
+ {"label": "4", "matrix": [3, 5], "x": 4, "y": 1.5},
+ {"label": "5", "matrix": [2, 5], "x": 5, "y": 1.5},
+ {"label": "6", "matrix": [2, 7], "x": 6, "y": 1.5},
+ {"label": "7", "matrix": [3, 7], "x": 7, "y": 1.5},
+ {"label": "8", "matrix": [3, 8], "x": 8, "y": 1.5},
+ {"label": "9", "matrix": [3, 9], "x": 9, "y": 1.5},
+ {"label": "0", "matrix": [3, 10], "x": 10, "y": 1.5},
+ {"label": "-", "matrix": [2, 10], "x": 11, "y": 1.5},
+ {"label": "=", "matrix": [2, 8], "x": 12, "y": 1.5},
+ {"label": "Backspace", "matrix": [1, 6], "x": 13, "y": 1.5, "w": 2},
+
+ {"label": "Insert", "matrix": [2, 12], "x": 15.5, "y": 1.5},
+ {"label": "Home", "matrix": [2, 14], "x": 16.5, "y": 1.5},
+ {"label": "Page Up", "matrix": [2, 13], "x": 17.5, "y": 1.5},
+
+ {"label": "Num Lock", "matrix": [6, 11], "x": 19, "y": 1.5},
+ {"label": "/", "matrix": [6, 12], "x": 20, "y": 1.5},
+ {"label": "*", "matrix": [6, 13], "x": 21, "y": 1.5},
+ {"label": "-", "matrix": [7, 13], "x": 22, "y": 1.5},
+
+ {"label": "Tab", "matrix": [1, 2], "x": 0, "y": 2.5, "w": 1.5},
+ {"label": "Q", "matrix": [4, 2], "x": 1.5, "y": 2.5},
+ {"label": "W", "matrix": [4, 3], "x": 2.5, "y": 2.5},
+ {"label": "E", "matrix": [4, 4], "x": 3.5, "y": 2.5},
+ {"label": "R", "matrix": [4, 5], "x": 4.5, "y": 2.5},
+ {"label": "T", "matrix": [1, 5], "x": 5.5, "y": 2.5},
+ {"label": "Y", "matrix": [1, 7], "x": 6.5, "y": 2.5},
+ {"label": "U", "matrix": [4, 7], "x": 7.5, "y": 2.5},
+ {"label": "I", "matrix": [4, 8], "x": 8.5, "y": 2.5},
+ {"label": "O", "matrix": [4, 9], "x": 9.5, "y": 2.5},
+ {"label": "P", "matrix": [4, 10], "x": 10.5, "y": 2.5},
+ {"label": "[", "matrix": [1, 10], "x": 11.5, "y": 2.5},
+ {"label": "]", "matrix": [1, 8], "x": 12.5, "y": 2.5},
+
+ {"label": "Delete", "matrix": [2, 11], "x": 15.5, "y": 2.5},
+ {"label": "End", "matrix": [3, 14], "x": 16.5, "y": 2.5},
+ {"label": "Page Down", "matrix": [3, 13], "x": 17.5, "y": 2.5},
+
+ {"label": "7", "matrix": [4, 11], "x": 19, "y": 2.5},
+ {"label": "8", "matrix": [4, 12], "x": 20, "y": 2.5},
+ {"label": "9", "matrix": [4, 13], "x": 21, "y": 2.5},
+ {"label": "+", "matrix": [4, 14], "x": 22, "y": 2.5, "h": 2},
+
+ {"label": "Caps Lock", "matrix": [1, 3], "x": 0, "y": 3.5, "w": 1.25},
+ {"label": "A", "matrix": [5, 2], "x": 1.75, "y": 3.5},
+ {"label": "S", "matrix": [5, 3], "x": 2.75, "y": 3.5},
+ {"label": "D", "matrix": [5, 4], "x": 3.75, "y": 3.5},
+ {"label": "F", "matrix": [5, 5], "x": 4.75, "y": 3.5},
+ {"label": "G", "matrix": [0, 5], "x": 5.75, "y": 3.5},
+ {"label": "H", "matrix": [0, 7], "x": 6.75, "y": 3.5},
+ {"label": "J", "matrix": [5, 7], "x": 7.75, "y": 3.5},
+ {"label": "K", "matrix": [5, 8], "x": 8.75, "y": 3.5},
+ {"label": "L", "matrix": [5, 9], "x": 9.75, "y": 3.5},
+ {"label": ";", "matrix": [5, 10], "x": 10.75, "y": 3.5},
+ {"label": "'", "matrix": [0, 10], "x": 11.75, "y": 3.5},
+ {"label": "#", "matrix": [6, 10], "x": 12.75, "y": 3.5},
+ {"label": "Enter", "matrix": [6, 6], "x": 13.75, "y": 2.5, "w": 1.25, "h": 2},
+
+ {"label": "4", "matrix": [1, 11], "x": 19, "y": 3.5},
+ {"label": "5", "matrix": [1, 12], "x": 20, "y": 3.5},
+ {"label": "6", "matrix": [1, 13], "x": 21, "y": 3.5},
+
+ {"label": "Shift", "matrix": [1, 1], "x": 0, "y": 4.5, "w": 1.25},
+ {"label": "\\", "matrix": [0, 3], "x": 1.25, "y": 4.5},
+ {"label": "Z", "matrix": [6, 2], "x": 2.25, "y": 4.5},
+ {"label": "X", "matrix": [6, 3], "x": 3.25, "y": 4.5},
+ {"label": "C", "matrix": [6, 4], "x": 4.25, "y": 4.5},
+ {"label": "V", "matrix": [6, 5], "x": 5.25, "y": 4.5},
+ {"label": "B", "matrix": [7, 5], "x": 6.25, "y": 4.5},
+ {"label": "N", "matrix": [7, 7], "x": 7.25, "y": 4.5},
+ {"label": "M", "matrix": [6, 7], "x": 8.25, "y": 4.5},
+ {"label": ",", "matrix": [6, 8], "x": 9.25, "y": 4.5},
+ {"label": ".", "matrix": [6, 9], "x": 10.25, "y": 4.5},
+ {"label": "/", "matrix": [7, 10], "x": 11.25, "y": 4.5},
+ {"label": "Shift", "matrix": [6, 1], "x": 12.25, "y": 4.5, "w": 2.75},
+
+ {"label": "\u2191", "matrix": [0, 14], "x": 16.5, "y": 4.5},
+
+ {"label": "1", "matrix": [5, 11], "x": 19, "y": 4.5},
+ {"label": "2", "matrix": [5, 12], "x": 20, "y": 4.5},
+ {"label": "3", "matrix": [5, 13], "x": 21, "y": 4.5},
+ {"label": "Enter", "matrix": [5, 14], "x": 22, "y": 4.5, "h": 2},
+
+ {"label": "Ctrl", "matrix": [2, 0], "x": 0, "y": 5.5, "w": 1.5},
+ {"label": "Alt", "matrix": [0, 15], "x": 2.5, "y": 5.5, "w": 1.5},
+ {"label": "Space", "matrix": [7, 6], "x": 4, "y": 5.5, "w": 7},
+ {"label": "Alt Gr", "matrix": [7, 15], "x": 11, "y": 5.5, "w": 1.5},
+ {"label": "Ctrl", "matrix": [6, 0], "x": 13.5, "y": 5.5, "w": 1.5},
+
+ {"label": "\u2190", "matrix": [7, 14], "x": 15.5, "y": 5.5},
+ {"label": "\u2193", "matrix": [7, 11], "x": 16.5, "y": 5.5},
+ {"label": "\u2192", "matrix": [7, 12], "x": 17.5, "y": 5.5},
+
+ {"label": "0", "matrix": [0, 11], "x": 19, "y": 5.5, "w": 2},
+ {"label": ".", "matrix": [0, 13], "x": 21, "y": 5.5}
+ ]
+ }
+ }
+}
diff --git a/keyboards/ibm/model_m/yugo_m/keymaps/default/keymap.c b/keyboards/ibm/model_m/yugo_m/keymaps/default/keymap.c
new file mode 100644
index 0000000000..2759790e4f
--- /dev/null
+++ b/keyboards/ibm/model_m/yugo_m/keymaps/default/keymap.c
@@ -0,0 +1,46 @@
+/* Copyright 2020 Nidzo Tomic <tomicn8@hotmail.com>
+ * Copyright 2022 an_achronism <87213873+an-achronism@users.noreply.github.com>
+ *
+ * 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
+
+enum keyboard_layers {
+ _BL, // Base Layer
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /* Layer 0: Default Layer
+ * ,-------------------------------------------------------------------------------------------------.
+ * |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PSc|ScL|Pse| |
+ * | |
+ * |` |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |Â¥ |BSp| |Ins|Hom|PgU| |Num|/ |* |- |
+ * |-----------------------------------------------------------| |-----------| |---------------|
+ * |Tab |Q |W |E |R |T |Y |U |I |O |P |[ |] |\ | |Del|End|PgD| |7 |8 |9 |+ |
+ * |-----------------------------------------------------------| |---------------|
+ * |CapsLk|A |S |D |F |G |H |J |K |L |; |' |# |Ent | |4 |5 |6 |= |
+ * |-----------------------------------------------------------| |---------------|
+ * |Shift|\ |Z |X |C |V |B |N |M |, |. |/ |\ |Shift| |Up | |1 |2 |3 |Ent|
+ * |-----------------------------------------------------------| |---| |---------------|
+ * |Ctrl | |Alt | Space |Alt Gr| |Ctrl | |Lt |Dn |Rt | |0 |, |. |GUI|
+ * `-------------------------------------------------------------------------------------------------'
+ */
+ [_BL] = LAYOUT_all(
+ KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCRL, KC_PAUS,
+ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_INT3, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
+ KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PEQL,
+ KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_INT1, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
+ KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_INT6, KC_PDOT, KC_LGUI),
+};
diff --git a/keyboards/ibm/model_m/yugo_m/keymaps/default/readme.md b/keyboards/ibm/model_m/yugo_m/keymaps/default/readme.md
new file mode 100644
index 0000000000..3d983cc1e7
--- /dev/null
+++ b/keyboards/ibm/model_m/yugo_m/keymaps/default/readme.md
@@ -0,0 +1 @@
+# The default keymap for IBM/Lexmark/Unicomp Enhanced Keyboards (a.k.a. "Keyboard M", "Model M") with arrays comprising between 101 and 108 keys (unused keys can simply be ignored as they will be physically blocked by keycap stabiliser posts). As of February 2022, ANSI, ISO, and JIS key positions are all supported and mapped to the appropriate default functions.
diff --git a/keyboards/ibm/model_m/yugo_m/readme.md b/keyboards/ibm/model_m/yugo_m/readme.md
new file mode 100644
index 0000000000..87ca8354fb
--- /dev/null
+++ b/keyboards/ibm/model_m/yugo_m/readme.md
@@ -0,0 +1,25 @@
+# Yugo-M
+
+![Yugo-M](https://raw.githubusercontent.com/tomic1785/Yugo-M-controller-project/master/Pictures/rev_09b.jpg)
+
+A drop-in replacement controller PCB for IBM Model M keyboards, based on the STM32 MCU. [More info on the Yugo-M project repository](https://github.com/tomic1785/Yugo-M-controller-project)
+
+* Keyboard Maintainer: [Nidzo Tomic](https://github.com/tomic1785)
+* Hardware Supported: Yugo-M PCB
+ * Rev 0.9b
+ * Rev 1.1b
+* Hardware Availability: [Check out the project repository](https://github.com/tomic1785/Yugo-M-controller-project)
+
+Make example for this keyboard (after setting up your build environment):
+
+ make ibm/model_m/yugo_m: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).
+
+
+
+Note regarding 2022 matrix update:
+
+The original author's firmware did not make several lesser-used membrane/matrix positions available to the controller. These are useful for JIS users and/or if you simply want to create a more unique layout. I've added all of the unused membrane positions to the firmware, except for an extremely seldom used one that sits in the left side of the space bar on some later membranes (I would have added it if I knew its matrix position, but I haven't mapped that out yet). The default mappings for these additional keys follow JIS conventions, except for the extra key on the bottom right corner of the numpad (lower half of vertical 2u Enter), which I've mapped to the LGUI key a.k.a. left Windows/Command key for now. Remap as you wish!
+
+- an_achronism, February 2022
diff --git a/keyboards/ibm/model_m/yugo_m/rules.mk b/keyboards/ibm/model_m/yugo_m/rules.mk
new file mode 100644
index 0000000000..ab2c49da70
--- /dev/null
+++ b/keyboards/ibm/model_m/yugo_m/rules.mk
@@ -0,0 +1,12 @@
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
+MOUSEKEY_ENABLE = yes # Mouse keys
+EXTRAKEY_ENABLE = yes # Audio control and System control
+CONSOLE_ENABLE = no # Console for debug
+COMMAND_ENABLE = no # 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
diff --git a/keyboards/ibm/model_m/yugo_m/yugo_m.c b/keyboards/ibm/model_m/yugo_m/yugo_m.c
new file mode 100644
index 0000000000..542043d5dc
--- /dev/null
+++ b/keyboards/ibm/model_m/yugo_m/yugo_m.c
@@ -0,0 +1,35 @@
+/* Copyright 2020 Nidzo Tomic <tomicn8@hotmail.com>
+ *
+ * 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 "quantum.h"
+
+void keyboard_pre_init_kb(void) {
+ // Set our LED pins as output
+ setPinOutput(A2);
+ setPinOutput(A1);
+ setPinOutput(A0);
+
+ keyboard_pre_init_user();
+}
+
+bool led_update_kb(led_t led_state) {
+ bool res = led_update_user(led_state);
+ if(res) {
+ writePin(A2, !led_state.num_lock);
+ writePin(A1, !led_state.caps_lock);
+ writePin(A0, !led_state.scroll_lock);
+ }
+ return res;
+}
diff --git a/keyboards/ibm/model_m_122/ibm122m/config.h b/keyboards/ibm/model_m_122/ibm122m/config.h
new file mode 100644
index 0000000000..af3de54eb2
--- /dev/null
+++ b/keyboards/ibm/model_m_122/ibm122m/config.h
@@ -0,0 +1,42 @@
+/*
+Copyright 2018 REPLACE_WITH_YOUR_NAME
+
+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
+
+/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
+#define LOCKING_SUPPORT_ENABLE
+/* Locking resynchronize hack */
+#define LOCKING_RESYNC_ENABLE
+
+#define AUDIO_PIN_ALT B6
+#define AUDIO_PIN C6
+
+/*
+ * Feature disable options
+ * These options are also useful to firmware size reduction.
+ */
+
+/* disable debug print */
+//#define NO_DEBUG
+
+/* disable print */
+//#define NO_PRINT
+
+/* disable action features */
+//#define NO_ACTION_LAYER
+//#define NO_ACTION_TAPPING
+//#define NO_ACTION_ONESHOT
diff --git a/keyboards/ibm/model_m_122/ibm122m/info.json b/keyboards/ibm/model_m_122/ibm122m/info.json
new file mode 100644
index 0000000000..54b0e9bade
--- /dev/null
+++ b/keyboards/ibm/model_m_122/ibm122m/info.json
@@ -0,0 +1,169 @@
+{
+ "keyboard_name": "IBM Model M 122 key",
+ "manufacturer": "IBM",
+ "url": "https://github.com/qmk/qmk_firmware/tree/master/keyboards/ibm/model_m_122/ibm122m",
+ "maintainer": "qmk",
+ "usb": {
+ "vid": "0xFEED",
+ "pid": "0x0000",
+ "device_version": "0.0.1"
+ },
+ "matrix_pins": {
+ "cols": ["E6", "B7", "D0", "D1", "D2", "D3", "D4", "D5", "D6", "D7", "E0", "E1", "C0", "C1", "C2", "C3", "C4", "C5", "C7", "F1"],
+ "rows": ["F0", "B5", "B4", "B3", "B2", "B1", "B0", "E7"]
+ },
+ "diode_direction": "ROW2COL",
+ "processor": "at90usb1286",
+ "bootloader": "halfkay",
+ "debounce": 15,
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"matrix": [0, 9], "x": 3.25, "y": 0},
+ {"matrix": [1, 9], "x": 4.25, "y": 0},
+ {"matrix": [1, 10], "x": 5.25, "y": 0},
+ {"matrix": [2, 9], "x": 6.25, "y": 0},
+ {"matrix": [3, 9], "x": 7.25, "y": 0},
+ {"matrix": [3, 10], "x": 8.25, "y": 0},
+ {"matrix": [4, 9], "x": 9.25, "y": 0},
+ {"matrix": [5, 9], "x": 10.25, "y": 0},
+ {"matrix": [5, 10], "x": 11.25, "y": 0},
+ {"matrix": [6, 9], "x": 12.25, "y": 0},
+ {"matrix": [7, 9], "x": 13.25, "y": 0},
+ {"matrix": [7, 10], "x": 14.25, "y": 0},
+
+ {"matrix": [0, 10], "x": 3.25, "y": 1},
+ {"matrix": [0, 11], "x": 4.25, "y": 1},
+ {"matrix": [1, 11], "x": 5.25, "y": 1},
+ {"matrix": [2, 10], "x": 6.25, "y": 1},
+ {"matrix": [2, 11], "x": 7.25, "y": 1},
+ {"matrix": [3, 11], "x": 8.25, "y": 1},
+ {"matrix": [4, 10], "x": 9.25, "y": 1},
+ {"matrix": [4, 11], "x": 10.25, "y": 1},
+ {"matrix": [5, 11], "x": 11.25, "y": 1},
+ {"matrix": [6, 10], "x": 12.25, "y": 1},
+ {"matrix": [6, 11], "x": 13.25, "y": 1},
+ {"matrix": [7, 11], "x": 14.25, "y": 1},
+
+ {"matrix": [3, 1], "x": 0, "y": 3},
+ {"matrix": [3, 2], "x": 1, "y": 3},
+
+ {"matrix": [3, 4], "x": 2.25, "y": 3},
+ {"matrix": [2, 4], "x": 3.25, "y": 3},
+ {"matrix": [2, 5], "x": 4.25, "y": 3},
+ {"matrix": [2, 6], "x": 5.25, "y": 3},
+ {"matrix": [2, 7], "x": 6.25, "y": 3},
+ {"matrix": [3, 7], "x": 7.25, "y": 3},
+ {"matrix": [3, 8], "x": 8.25, "y": 3},
+ {"matrix": [2, 8], "x": 9.25, "y": 3},
+ {"matrix": [2, 12], "x": 10.25, "y": 3},
+ {"matrix": [2, 13], "x": 11.25, "y": 3},
+ {"matrix": [2, 14], "x": 12.25, "y": 3},
+ {"matrix": [3, 14], "x": 13.25, "y": 3},
+ {"matrix": [3, 12], "x": 14.25, "y": 3},
+ {"matrix": [3, 15], "x": 15.25, "y": 3, "w": 2},
+
+ {"matrix": [3, 16], "x": 17.5, "y": 3},
+ {"matrix": [3, 17], "x": 18.5, "y": 3},
+ {"matrix": [2, 16], "x": 19.5, "y": 3},
+
+ {"matrix": [2, 15], "x": 20.75, "y": 3},
+ {"matrix": [2, 17], "x": 21.75, "y": 3},
+ {"matrix": [2, 18], "x": 22.75, "y": 3},
+ {"matrix": [2, 0], "x": 23.75, "y": 3},
+
+ {"matrix": [2, 1], "x": 0, "y": 4},
+ {"matrix": [4, 1], "x": 1, "y": 4},
+
+ {"matrix": [4, 2], "x": 2.25, "y": 4, "w": 1.5},
+ {"matrix": [4, 4], "x": 3.75, "y": 4},
+ {"matrix": [4, 5], "x": 4.75, "y": 4},
+ {"matrix": [4, 6], "x": 5.75, "y": 4},
+ {"matrix": [4, 7], "x": 6.75, "y": 4},
+ {"matrix": [5, 7], "x": 7.75, "y": 4},
+ {"matrix": [5, 8], "x": 8.75, "y": 4},
+ {"matrix": [4, 8], "x": 9.75, "y": 4},
+ {"matrix": [4, 12], "x": 10.75, "y": 4},
+ {"matrix": [4, 13], "x": 11.75, "y": 4},
+ {"matrix": [4, 14], "x": 12.75, "y": 4},
+ {"matrix": [5, 14], "x": 13.75, "y": 4},
+ {"matrix": [5, 12], "x": 14.75, "y": 4},
+ {"matrix": [6, 15], "x": 16, "y": 4, "w": 1.25, "h": 2},
+
+ {"matrix": [1, 16], "x": 17.5, "y": 4},
+ {"matrix": [5, 16], "x": 18.5, "y": 4},
+ {"matrix": [4, 16], "x": 19.5, "y": 4},
+
+ {"matrix": [4, 15], "x": 20.75, "y": 4},
+ {"matrix": [4, 17], "x": 21.75, "y": 4},
+ {"matrix": [4, 18], "x": 22.75, "y": 4},
+ {"matrix": [4, 0], "x": 23.75, "y": 4},
+
+ {"matrix": [5, 1], "x": 0, "y": 5},
+ {"matrix": [5, 2], "x": 1, "y": 5},
+
+ {"matrix": [6, 2], "x": 2.25, "y": 5, "w": 1.75},
+ {"matrix": [1, 4], "x": 4, "y": 5},
+ {"matrix": [1, 5], "x": 5, "y": 5},
+ {"matrix": [1, 6], "x": 6, "y": 5},
+ {"matrix": [1, 7], "x": 7, "y": 5},
+ {"matrix": [0, 7], "x": 8, "y": 5},
+ {"matrix": [0, 8], "x": 9, "y": 5},
+ {"matrix": [1, 8], "x": 10, "y": 5},
+ {"matrix": [1, 12], "x": 11, "y": 5},
+ {"matrix": [1, 13], "x": 12, "y": 5},
+ {"matrix": [1, 14], "x": 13, "y": 5},
+ {"matrix": [0, 14], "x": 14, "y": 5},
+ {"matrix": [6, 14], "x": 15, "y": 5},
+
+ {"matrix": [0, 16], "x": 18.5, "y": 5},
+
+ {"matrix": [1, 15], "x": 20.75, "y": 5},
+ {"matrix": [1, 17], "x": 21.75, "y": 5},
+ {"matrix": [1, 18], "x": 22.75, "y": 5},
+
+ {"matrix": [1, 0], "x": 23.75, "y": 5},
+
+ {"matrix": [1, 1], "x": 0, "y": 6},
+ {"matrix": [1, 2], "x": 1, "y": 6},
+
+ {"matrix": [7, 3], "x": 2.25, "y": 6, "w": 1.25},
+ {"matrix": [7, 4], "x": 3.5, "y": 6},
+ {"matrix": [6, 4], "x": 4.5, "y": 6},
+ {"matrix": [6, 5], "x": 5.5, "y": 6},
+ {"matrix": [6, 6], "x": 6.5, "y": 6},
+ {"matrix": [6, 7], "x": 7.5, "y": 6},
+ {"matrix": [7, 7], "x": 8.5, "y": 6},
+ {"matrix": [7, 8], "x": 9.5, "y": 6},
+ {"matrix": [6, 8], "x": 10.5, "y": 6},
+ {"matrix": [6, 12], "x": 11.5, "y": 6},
+ {"matrix": [6, 13], "x": 12.5, "y": 6},
+ {"matrix": [7, 14], "x": 13.5, "y": 6},
+ {"matrix": [6, 3], "x": 14.5, "y": 6, "w": 2.75},
+
+ {"matrix": [6, 0], "x": 17.5, "y": 6},
+ {"matrix": [0, 19], "x": 18.5, "y": 6},
+ {"matrix": [1, 19], "x": 19.5, "y": 6},
+
+ {"matrix": [6, 1], "x": 20.75, "y": 6},
+ {"matrix": [6, 17], "x": 21.75, "y": 6},
+ {"matrix": [6, 18], "x": 22.75, "y": 6},
+ {"matrix": [7, 19], "x": 23.75, "y": 6, "h": 2},
+
+ {"matrix": [0, 2], "x": 0, "y": 7},
+ {"matrix": [0, 1], "x": 1, "y": 7},
+
+ {"matrix": [0, 0], "x": 2.25, "y": 7, "w": 1.5},
+ {"matrix": [7, 0], "x": 4.75, "y": 7, "w": 1.5},
+ {"matrix": [7, 1], "x": 6.25, "y": 7, "w": 7},
+ {"matrix": [0, 3], "x": 13.25, "y": 7, "w": 1.5},
+ {"matrix": [7, 2], "x": 15.75, "y": 7, "w": 1.5},
+
+ {"matrix": [0, 15], "x": 18.5, "y": 7},
+
+ {"matrix": [7, 17], "x": 20.75, "y": 7, "w": 2},
+ {"matrix": [7, 18], "x": 22.75, "y": 7}
+ ]
+ }
+ }
+}
diff --git a/keyboards/ibm/model_m_122/ibm122m/keymaps/andresteare/keymap.c b/keyboards/ibm/model_m_122/ibm122m/keymaps/andresteare/keymap.c
new file mode 100644
index 0000000000..6d6d09a0a5
--- /dev/null
+++ b/keyboards/ibm/model_m_122/ibm122m/keymaps/andresteare/keymap.c
@@ -0,0 +1,29 @@
+/* Copyright 2018 andresteare
+ *
+ * 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
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ // Programmer's Dvorak
+ [0] = LAYOUT(
+ KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24,
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
+ KC_ESC, KC_NO, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_NO, KC_NO, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_ENT, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
+ KC_NO, KC_NO, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_UP, KC_P4, KC_P5, KC_P6, KC_BSPC,
+ KC_NO, KC_NO, KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_LEFT, KC_NO, KC_RIGHT, KC_P1, KC_P2, KC_P3, KC_PENT,
+ KC_NO, KC_NO, KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_DOWN, KC_P0, KC_PDOT
+ ),
+};
diff --git a/keyboards/ibm/model_m_122/ibm122m/keymaps/default/config.h b/keyboards/ibm/model_m_122/ibm122m/keymaps/default/config.h
new file mode 100644
index 0000000000..0453a72580
--- /dev/null
+++ b/keyboards/ibm/model_m_122/ibm122m/keymaps/default/config.h
@@ -0,0 +1,19 @@
+/* Copyright 2018 REPLACE_WITH_YOUR_NAME
+ *
+ * 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 below
diff --git a/keyboards/ibm/model_m_122/ibm122m/keymaps/default/keymap.c b/keyboards/ibm/model_m_122/ibm122m/keymaps/default/keymap.c
new file mode 100644
index 0000000000..5a0754a655
--- /dev/null
+++ b/keyboards/ibm/model_m_122/ibm122m/keymaps/default/keymap.c
@@ -0,0 +1,29 @@
+/* Copyright 2018 REPLACE_WITH_YOUR_NAME
+ *
+ * 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
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ // Original Layer
+ [0] = LAYOUT(
+ KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24,
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
+ KC_ESC, KC_NO, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_NO, KC_NO, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_ENT, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
+ KC_NO, KC_NO, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_UP, KC_P4, KC_P5, KC_P6, KC_BSPC,
+ KC_NO, KC_NO, KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_LEFT, KC_NO, KC_RIGHT, KC_P1, KC_P2, KC_P3, KC_PENT,
+ KC_NO, KC_NO, KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_DOWN, KC_P0, KC_PDOT
+ ),
+};
diff --git a/keyboards/ibm/model_m_122/ibm122m/keymaps/default/readme.md b/keyboards/ibm/model_m_122/ibm122m/keymaps/default/readme.md
new file mode 100644
index 0000000000..aa592c9739
--- /dev/null
+++ b/keyboards/ibm/model_m_122/ibm122m/keymaps/default/readme.md
@@ -0,0 +1,2 @@
+# The default keymap for ibm122m2
+The 10 keys to the left of the alphanumerics are unbound (other than Escape on the top-left one) as I have no idea what is supposed to go there.
diff --git a/keyboards/ibm/model_m_122/ibm122m/keymaps/lukaus/config.h b/keyboards/ibm/model_m_122/ibm122m/keymaps/lukaus/config.h
new file mode 100644
index 0000000000..bf338e196d
--- /dev/null
+++ b/keyboards/ibm/model_m_122/ibm122m/keymaps/lukaus/config.h
@@ -0,0 +1,19 @@
+/* Copyright 2018 REPLACE_WITH_YOUR_NAME
+ *
+ * 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/ibm/model_m_122/ibm122m/keymaps/lukaus/keymap.c b/keyboards/ibm/model_m_122/ibm122m/keymaps/lukaus/keymap.c
new file mode 100644
index 0000000000..8b99267650
--- /dev/null
+++ b/keyboards/ibm/model_m_122/ibm122m/keymaps/lukaus/keymap.c
@@ -0,0 +1,558 @@
+/* Copyright 2018 REPLACE_WITH_YOUR_NAME
+ *
+ * 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
+
+enum custom_keycodes {
+ PLACEHOLDER = SAFE_RANGE,
+
+ DVP_ESC, // Grave escape basically i think
+ DVP_AMPR,
+ DVP_LBRACKET,
+ DVP_LCBR,
+ DVP_RCBR,
+ DVP_LPRN,
+ DVP_AT,
+ DVP_EQUAL,
+ DVP_ASTERISK,
+ DVP_RPRN,
+ DVP_PLUS,
+ DVP_RBRACKET,
+ DVP_EXLM,
+ DVP_HASH,
+ SHFT_DOT,
+ SHFT_COMMA
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ // Programmer's Dvorak
+ [0] = LAYOUT(
+ KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24,
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
+ KC_ESC, TO(1), DVP_ESC, DVP_AMPR, DVP_LBRACKET, DVP_LCBR, DVP_RCBR, DVP_LPRN, DVP_EQUAL,DVP_ASTERISK, DVP_RPRN, DVP_PLUS, DVP_RBRACKET, DVP_EXLM, DVP_HASH, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_NO, TO(2), KC_TAB, KC_SCLN, KC_COMMA, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLSH, DVP_AT, KC_ENTER, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
+ KC_NO, KC_NO, MO(3), KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINUS, KC_BSLS, KC_UP, KC_P4, KC_P5, KC_P6, MO(4),
+ LCTL(KC_F), KC_LALT, KC_LSFT, KC_ESC, KC_QUOT, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_RSFT, KC_LEFT, KC_BTN3, KC_RIGHT, KC_P1, KC_P2, KC_P3, KC_PENT,
+ LCTL(KC_C), LCTL(KC_V), KC_LCTL, KC_LGUI, KC_SPC, KC_RALT, KC_RCTL, KC_DOWN, KC_P0, KC_PDOT
+ ),
+
+ // Qwerty layer + function
+ [1] = LAYOUT(
+ KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24,
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
+ KC_ESC, TO(0), KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_NO, KC_NO, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC,KC_ENTER, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
+ KC_NO, KC_NO, MO(3), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_UP, KC_P4, KC_P5, KC_P6, KC_BSPC,
+ KC_NO, KC_NO, KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLSH, KC_RSFT, KC_LEFT, KC_WH_D, KC_RIGHT, KC_P1, KC_P2, KC_P3, KC_PENT,
+ KC_NO, KC_LALT,KC_LCTL, KC_LGUI, KC_SPC, KC_RALT, KC_RCTL, KC_DOWN, KC_P0, KC_PDOT
+ ),
+
+ // Orirginal Layer
+ [2] = LAYOUT(
+ KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24,
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
+ KC_ESC, TO(1), KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_NO, TO(0), KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC,KC_ENTER, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
+ KC_NO, KC_NO, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_UP, KC_P4, KC_P5, KC_P6, KC_BSPC,
+ KC_NO, KC_NO, KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLSH, KC_RSFT, KC_LEFT, KC_WH_D, KC_RIGHT, KC_P1, KC_P2, KC_P3, KC_PENT,
+ KC_NO, KC_LALT,KC_LCTL, KC_LGUI, KC_SPC, KC_RALT, KC_RCTL, KC_DOWN, KC_P0, KC_PDOT
+ ),
+
+ // Function Layer
+ [3] = LAYOUT(
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
+ KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24,
+ MU_TOGG,KC_NO, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
+ MU_NEXT,KC_NO, KC_TAB, KC_NO, KC_MEDIA_PREV_TRACK, KC_MEDIA_PLAY_PAUSE, KC_MEDIA_NEXT_TRACK, KC_NO, KC_NO, KC_PGUP, KC_DEL, KC_NO, KC_NO, KC_LBRC, KC_RBRC,KC_ENTER, KC_DEL, KC_END, KC_PGDN, KC_NO, KC_NO, KC_NO, KC_PPLS,
+ KC_NO, KC_NO, KC_TRNS, KC_NO, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, KC_AUDIO_MUTE, KC_NO, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_SCLN, KC_QUOT, KC_BSLS, KC_UP, LSFT(KC_E), LSFT(KC_F), KC_NO, KC_BSPC,
+ KC_NO, KC_LALT, KC_LSFT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_PGDN, KC_COMMA, KC_DOT, KC_SLSH, KC_RSFT, KC_LEFT, KC_WH_D, KC_RIGHT, LSFT(KC_B), LSFT(KC_C), LSFT(KC_D), KC_PENT,
+ KC_NO, KC_NO, KC_LCTL, KC_LGUI, KC_SPC, KC_RALT, KC_CAPS, KC_DOWN, LSFT(KC_A), KC_PDOT
+ ),
+
+ // Literally just the numpad is different
+ [4] = LAYOUT(
+ KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24,
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
+ KC_ESC, TO(1), DVP_ESC, DVP_AMPR, DVP_LBRACKET, DVP_LCBR, DVP_RCBR, DVP_LPRN, DVP_EQUAL,DVP_ASTERISK, DVP_RPRN, DVP_PLUS, DVP_RBRACKET, DVP_EXLM, DVP_HASH, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, TO(2), KC_TAB, KC_SCLN, KC_COMMA, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLSH, DVP_AT, KC_ENTER, KC_DEL, KC_END, KC_PGDN, KC_BTN1, KC_MS_U, KC_BTN2, KC_NO,
+ KC_NO, KC_NO, TO(0), KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINUS, KC_BSLS, KC_UP, KC_MS_L, KC_NO, KC_MS_R, KC_TRNS,
+ LCTL(KC_F), KC_LALT, KC_LSFT, KC_NO, KC_QUOT, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_RSFT, KC_LEFT, KC_BTN3, KC_RIGHT, KC_GT, KC_MS_D, KC_GT, KC_PENT,
+ LCTL(KC_C), LCTL(KC_V), KC_LCTL, KC_LGUI, KC_SPC, KC_RALT, KC_RCTL, KC_DOWN, KC_BTN1, KC_PDOT
+
+ ),
+
+ /*
+ [4] = LAYOUT(
+ KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24,
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
+ MU_TOGG,TO(0), KC_DLR, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
+ MU_NEXT,KC_NO, KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_LBRC, KC_RBRC,KC_ENTER, KC_DEL, KC_END, KC_PGDN, KC_NO, KC_NO, KC_NO, KC_PPLS,
+ KC_NO, KC_NO, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_QUOT, KC_BSLS, KC_UP, LSFT(KC_E), LSFT(KC_F), KC_NO, KC_BSPC,
+ KC_NO, KC_LALT, KC_LSFT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_COMMA, KC_DOT, KC_SLSH, KC_RSFT, KC_LEFT, KC_WH_D, KC_RIGHT, LSFT(KC_B), LSFT(KC_C), LSFT(KC_D), KC_PENT,
+ KC_NO, KC_LGUI, KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_DOWN, LSFT(KC_A), KC_PDOT
+
+ ),*/
+ /*[0] = LAYOUT(
+ KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_NO,TO(1),KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1,
+ KC_2, KC_2, KC_2, KC_2, KC_2, KC_2, KC_2, KC_2, KC_2, KC_2, KC_2, TO(2),KC_2, KC_2, KC_2, KC_2, KC_2, KC_2, KC_2, KC_2,
+ KC_3, KC_3, KC_3, KC_3, KC_3, KC_3, KC_3, KC_3, KC_3, KC_3, KC_3, KC_3, KC_3, KC_3, KC_3, KC_3, KC_3, KC_3, KC_3, KC_3,
+ KC_4, KC_4, KC_4, KC_4, KC_4, KC_4, KC_4, KC_4, KC_4, KC_4, KC_4, KC_4, KC_4, KC_4, KC_4, KC_BSPC,KC_4,KC_4,KC_4, KC_4,
+ KC_5, KC_5, KC_5, KC_5, KC_5, KC_5, KC_5, KC_5, KC_5, KC_5, KC_5, KC_5, KC_5, KC_5, KC_5, KC_5, KC_5, KC_5, KC_5, KC_5,
+ KC_6, KC_6, KC_6, KC_6, KC_6, KC_6, KC_6, KC_6, KC_6, KC_6, KC_6, KC_6, KC_6, KC_6, KC_6, KC_6, KC_6, KC_6, KC_6, KC_6,
+ KC_7, KC_7, KC_7, KC_7, KC_7, KC_7, KC_7, KC_7, KC_7, KC_7, KC_7, KC_7, KC_7, KC_7, KC_7, KC_7, KC_7, KC_7, KC_7, KC_7,
+ KC_8, KC_SPC,KC_8,KC_8, KC_8, KC_8, KC_8, KC_8, KC_8, KC_8, KC_8, KC_8, KC_8, KC_8, KC_8, KC_8, KC_8, KC_8, KC_8, TO(1)
+
+ ),
+ [1] = LAYOUT(
+ KC_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G, KC_H, KC_I, KC_J, TO(0),KC_NO,KC_M, KC_N, KC_O, KC_P, KC_Q, KC_R, KC_S, KC_T,
+ KC_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G, KC_H, KC_I, KC_J, KC_K, TO(2),KC_M, KC_N, KC_O, KC_P, KC_Q, KC_R, KC_S, KC_T,
+ KC_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G, KC_H, KC_I, KC_J, KC_K, KC_L, KC_M, KC_N, KC_O, KC_P, KC_Q, KC_R, KC_S, KC_T,
+ KC_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G, KC_H, KC_I, KC_J, KC_K, KC_L, KC_M, KC_N, KC_O, KC_BSPC,KC_Q,KC_R,KC_S, KC_T,
+ KC_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G, KC_H, KC_I, KC_J, KC_K, KC_L, KC_M, KC_N, KC_O, KC_P, KC_Q, KC_R, KC_S, KC_T,
+ KC_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G, KC_H, KC_I, KC_J, KC_K, KC_L, KC_M, KC_N, KC_O, KC_P, KC_Q, KC_R, KC_S, KC_T,
+ KC_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G, KC_H, KC_I, KC_J, KC_K, KC_L, KC_M, KC_N, KC_O, KC_P, KC_Q, KC_R, KC_S, KC_T,
+ KC_A, KC_SPC,KC_C,KC_D, KC_E, KC_F, KC_G, KC_H, KC_I, KC_J, KC_K, KC_L, KC_M, KC_N, KC_O, KC_P, KC_Q, KC_R, KC_S, TO(0)
+ ),
+ [2] = LAYOUT(
+ KC_LCTL, KC_LALT, KC_C, KC_RALT, KC_E, KC_F, KC_G, KC_G, KC_H, KC_J, TO(0), TO(1), KC_M, KC_N, KC_QUOT, KC_DOWN, KC_UP, KC_R, KC_S, KC_ENTER,
+ KC_PPLS, KC_B, KC_C, KC_D, KC_A, KC_S, KC_D, KC_F, KC_J, KC_J, KC_K, KC_NO, KC_K, KC_L, KC_SCLN, KC_P4, KC_DEL, KC_P5, KC_P6, KC_RIGHT,
+ KC_PMNS, KC_1, KC_C, KC_D, KC_1, KC_2, KC_3, KC_4, KC_7, KC_J, KC_K, KC_L, KC_8, KC_9, KC_0, KC_NUM, KC_PGUP,KC_PSLS, KC_PAST, KC_T,
+ KC_A, KC_ESC, TO(0),KC_D, KC_GRV, KC_F, KC_G, KC_5, KC_6, KC_J, KC_K, KC_L, KC_EQL, KC_N, KC_MINUS, KC_BSPC, KC_INS, KC_HOME, KC_S, KC_T,
+ KC_PPLS, KC_NO, KC_TAB, KC_D, KC_Q, KC_W, KC_E, KC_R, KC_U, KC_J, KC_K, KC_L, KC_I, KC_O, KC_P, KC_P7, KC_PGDN,KC_P8, KC_P9, KC_T,
+ KC_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G, KC_T, KC_Y, KC_J, KC_K, KC_L, KC_RBRC, KC_N, KC_LBRC, KC_P, KC_END, KC_R, KC_S, KC_T,
+ KC_LEFT, KC_P1, KC_CAPS, KC_RSFT, KC_Z, KC_X, KC_C, KC_V, KC_M, KC_J, KC_K, KC_L, KC_COMMA, KC_DOT, KC_BSLS, KC_PENT, KC_Q, KC_P2, KC_P3, KC_T,
+ KC_LGUI, KC_SPACE, KC_RCTL, KC_LSFT, KC_E, KC_F, KC_G, KC_B, KC_N, KC_J, KC_K, KC_L, KC_M, KC_N, KC_SLSH, KC_P, KC_Q, KC_P0, KC_PDOT, KC_KP_ENTER
+ ),*/
+};
+
+bool left_shift_down = false;
+bool right_shift_down = false;
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ switch (keycode) {
+ case KC_LEFT_SHIFT:
+ if (record->event.pressed)
+ {
+ left_shift_down = true;
+ return true;
+ }
+ else
+ {
+ left_shift_down = false;
+ return true;
+ }
+ break;
+ case KC_RIGHT_SHIFT:
+
+ if (record->event.pressed)
+ {
+ right_shift_down = true;
+ return true;
+ }
+ else
+ {
+ right_shift_down = false;
+ return true;
+ }
+ break;
+
+
+ case DVP_ESC:
+ if (left_shift_down || right_shift_down)
+ {
+ if(record->event.pressed)
+ SEND_STRING("~");
+ return false;
+ }
+ else
+ {
+ if(record->event.pressed)
+ SEND_STRING("$");
+ return false;
+ }
+ break;
+
+ case DVP_AMPR:
+ if (left_shift_down || right_shift_down)
+ {
+ if(record->event.pressed)
+ {
+ SEND_STRING("%");
+
+ }
+ }
+ else
+ {
+ if(record->event.pressed)
+ SEND_STRING("&");
+ return false;
+ }
+ break;
+
+ case DVP_LBRACKET:
+ if (left_shift_down || right_shift_down)
+ {
+ if(record->event.pressed)
+ {
+ if(left_shift_down)
+ unregister_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ unregister_code(KC_RIGHT_SHIFT);
+
+ register_code(KC_7);
+ unregister_code(KC_7);
+
+ if(left_shift_down)
+ register_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ register_code(KC_RIGHT_SHIFT);
+ }
+ return false;
+ }
+ else
+ {
+ if(record->event.pressed)
+ SEND_STRING("[");
+ return false;
+ }
+ break;
+
+ case DVP_LCBR:
+ if (left_shift_down || right_shift_down)
+ {
+ if(record->event.pressed)
+ {
+ if(left_shift_down)
+ unregister_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ unregister_code(KC_RIGHT_SHIFT);
+
+ register_code(KC_5);
+ unregister_code(KC_5);
+
+ if(left_shift_down)
+ register_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ register_code(KC_RIGHT_SHIFT);
+ }
+ return false;
+ }
+ else
+ {
+ if(record->event.pressed)
+ SEND_STRING("{");
+ return false;
+ }
+ break;
+
+ case DVP_RCBR:
+ if (left_shift_down || right_shift_down)
+ {
+ if(record->event.pressed)
+ {
+ if(left_shift_down)
+ unregister_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ unregister_code(KC_RIGHT_SHIFT);
+
+ register_code(KC_3);
+ unregister_code(KC_3);
+
+ if(left_shift_down)
+ register_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ register_code(KC_RIGHT_SHIFT);
+ }
+ return false;
+ }
+ else
+ {
+ if(record->event.pressed)
+ SEND_STRING("}");
+ return false;
+ }
+ break;
+
+
+ case DVP_LPRN:
+ if (left_shift_down || right_shift_down)
+ {
+ if(record->event.pressed)
+ {
+ if(left_shift_down)
+ unregister_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ unregister_code(KC_RIGHT_SHIFT);
+
+ register_code(KC_1);
+ unregister_code(KC_1);
+
+ if(left_shift_down)
+ register_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ register_code(KC_RIGHT_SHIFT);
+ }
+ return false;
+ }
+ else
+ {
+ if(record->event.pressed)
+ SEND_STRING("(");
+ return false;
+ }
+ break;
+//
+ case DVP_AT:
+ if (left_shift_down || right_shift_down)
+ {
+ if(record->event.pressed)
+ {
+ if(left_shift_down)
+ unregister_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ unregister_code(KC_RIGHT_SHIFT);
+
+ register_code(KC_LEFT_SHIFT);
+ register_code(KC_6);
+ unregister_code(KC_6);
+ unregister_code(KC_LEFT_SHIFT);
+
+ if(left_shift_down)
+ register_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ register_code(KC_RIGHT_SHIFT);
+ }
+ return false;
+ }
+ else
+ {
+ if(record->event.pressed)
+ SEND_STRING("@");
+ return false;
+ }
+ break;
+
+
+ case DVP_EQUAL:
+ if (left_shift_down || right_shift_down)
+ {
+ if(record->event.pressed)
+ {
+ if(left_shift_down)
+ unregister_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ unregister_code(KC_RIGHT_SHIFT);
+
+ register_code(KC_9);
+ unregister_code(KC_9);
+
+ if(left_shift_down)
+ register_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ register_code(KC_RIGHT_SHIFT);
+ }
+ return false;
+ }
+ else
+ {
+ if(record->event.pressed)
+ SEND_STRING("=");
+ return false;
+ }
+ break;
+
+ case DVP_ASTERISK:
+ if (left_shift_down || right_shift_down)
+ {
+ if(record->event.pressed)
+ {
+ if(left_shift_down)
+ unregister_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ unregister_code(KC_RIGHT_SHIFT);
+
+ register_code(KC_0);
+ unregister_code(KC_0);
+
+ if(left_shift_down)
+ register_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ register_code(KC_RIGHT_SHIFT);
+ }
+ return false;
+ }
+ else
+ {
+ if(record->event.pressed)
+ SEND_STRING("*");
+ return false;
+ }
+ break;
+
+ case DVP_RPRN:
+ if (left_shift_down || right_shift_down)
+ {
+ if(record->event.pressed)
+ {
+ if(left_shift_down)
+ unregister_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ unregister_code(KC_RIGHT_SHIFT);
+
+ register_code(KC_2);
+ unregister_code(KC_2);
+
+ if(left_shift_down)
+ register_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ register_code(KC_RIGHT_SHIFT);
+ }
+ return false;
+ }
+ else
+ {
+ if(record->event.pressed)
+ SEND_STRING(")");
+ return false;
+ }
+ break;
+
+ case DVP_PLUS:
+ if (left_shift_down || right_shift_down)
+ {
+ if(record->event.pressed)
+ {
+ if(left_shift_down)
+ unregister_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ unregister_code(KC_RIGHT_SHIFT);
+
+ register_code(KC_4);
+ unregister_code(KC_4);
+
+ if(left_shift_down)
+ register_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ register_code(KC_RIGHT_SHIFT);
+ }
+ }
+ else
+ {
+ if(record->event.pressed)
+ SEND_STRING("+");
+ }
+ return false;
+ break;
+
+ case DVP_RBRACKET:
+ if (left_shift_down || right_shift_down)
+ {
+ if(record->event.pressed)
+ {
+ if(left_shift_down)
+ unregister_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ unregister_code(KC_RIGHT_SHIFT);
+
+ register_code(KC_6);
+ unregister_code(KC_6);
+
+ if(left_shift_down)
+ register_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ register_code(KC_RIGHT_SHIFT);
+ }
+ }
+ else
+ {
+ if(record->event.pressed)
+ SEND_STRING("]");
+ }
+ return false;
+ break;
+
+ case DVP_EXLM:
+ if (left_shift_down || right_shift_down)
+ {
+ if(record->event.pressed)
+ {
+ if(left_shift_down)
+ unregister_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ unregister_code(KC_RIGHT_SHIFT);
+
+ register_code(KC_8);
+ unregister_code(KC_8);
+
+ if(left_shift_down)
+ register_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ register_code(KC_RIGHT_SHIFT);
+ }
+ }
+ else
+ {
+ if(record->event.pressed)
+ SEND_STRING("!");
+ }
+ return false;
+ break;
+
+ case DVP_HASH:
+ if (left_shift_down || right_shift_down)
+ {
+ if(record->event.pressed)
+ {
+ if(left_shift_down)
+ unregister_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ unregister_code(KC_RIGHT_SHIFT);
+
+ register_code(KC_GRAVE);
+ unregister_code(KC_GRAVE);
+
+ if(left_shift_down)
+ register_code(KC_LEFT_SHIFT);
+ if(right_shift_down)
+ register_code(KC_RIGHT_SHIFT);
+ }
+ }
+ else
+ {
+ if(record->event.pressed)
+ SEND_STRING("#");
+ }
+ return false;
+ break;
+ case SHFT_DOT:
+ if(record->event.pressed)
+ SEND_STRING(">");
+ break;
+
+ case SHFT_COMMA:
+ if(record->event.pressed)
+ SEND_STRING("<");
+ break;
+
+ }
+
+
+
+ return true;
+}
+
+void led_set_user(uint8_t usb_led) {
+
+}
diff --git a/keyboards/ibm/model_m_122/ibm122m/keymaps/lukaus/readme.md b/keyboards/ibm/model_m_122/ibm122m/keymaps/lukaus/readme.md
new file mode 100644
index 0000000000..5d3f6abe15
--- /dev/null
+++ b/keyboards/ibm/model_m_122/ibm122m/keymaps/lukaus/readme.md
@@ -0,0 +1,2 @@
+# Lukaus' for ibm122m2
+Programmer's Dvorak as the default layer with a Qwerty layer that can access a function layer. Also includes the default layout, slightly modified
diff --git a/keyboards/ibm/model_m_122/ibm122m/keymaps/via/keymap.c b/keyboards/ibm/model_m_122/ibm122m/keymaps/via/keymap.c
new file mode 100644
index 0000000000..7f491def14
--- /dev/null
+++ b/keyboards/ibm/model_m_122/ibm122m/keymaps/via/keymap.c
@@ -0,0 +1,63 @@
+/* Copyright 2018 andresteare
+ *
+ * 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
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ // Programmer's Dvorak
+ [0] = LAYOUT(
+ KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24,
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
+ KC_ESC, KC_NO, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_NO, KC_NO, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_ENT, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
+ KC_NO, KC_NO, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_UP, KC_P4, KC_P5, KC_P6, KC_BSPC,
+ KC_NO, KC_NO, KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_LEFT, KC_NO, KC_RIGHT, KC_P1, KC_P2, KC_P3, KC_PENT,
+ KC_NO, KC_NO, KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_DOWN, KC_P0, KC_PDOT
+ ),
+
+ // Qwerty layer + function
+ [1] = LAYOUT(
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+ ),
+
+ // Orirginal Layer
+ [2] = LAYOUT(
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+ ),
+
+ // Function Layer
+ [3] = LAYOUT(
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+ ),
+
+}; \ No newline at end of file
diff --git a/keyboards/ibm/model_m_122/ibm122m/keymaps/via/rules.mk b/keyboards/ibm/model_m_122/ibm122m/keymaps/via/rules.mk
new file mode 100644
index 0000000000..1e5b99807c
--- /dev/null
+++ b/keyboards/ibm/model_m_122/ibm122m/keymaps/via/rules.mk
@@ -0,0 +1 @@
+VIA_ENABLE = yes
diff --git a/keyboards/ibm/model_m_122/ibm122m/readme.md b/keyboards/ibm/model_m_122/ibm122m/readme.md
new file mode 100644
index 0000000000..87b145cd5b
--- /dev/null
+++ b/keyboards/ibm/model_m_122/ibm122m/readme.md
@@ -0,0 +1,31 @@
+# ibm122m
+
+![IBM Model M 122 key](https://i.imgur.com/Oo3Ozqz.jpg)
+
+This is a keymap for the IBM Model M 122 key terminal keyboard running on a Teensy++ 2.0
+I wired it to weird pins on mine (mainly to accomodate two speakers), so make sure to update the pin arrays.
+
+* Keyboard Maintainer: [Luke Stanley](https://github.com/lukexorz)
+* Hardware Supported: Teensy++ 2.0
+* Hardware Availability: https://www.pjrc.com/store/teensypp.html
+
+Pins of the Teensy board you should use by default:
+```
+Columns: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
+Pins: E6 B7 D0 D1 D2 D3 D4 D5 D6 D7 E0 E1 C0 C1 C2 C3 C4 C5 C7 F1
+--------------------------------------------------------
+Rows: 1 2 3 4 5 6 7 8
+Pins: F0 B5 B4 B3 B2 B1 B0 E7
+--------------------------------------------------------
+Status LEDs: CapsLock +5V ScrollLock NumLock
+Pins: N/A 5V N/A N/A
+--------------------------------------------------------
+Speaker: 1+ 1- 2+ 2-
+Pins: C6 GND B6 GND
+```
+
+Make example for this keyboard (after setting up your build environment):
+
+ make ibm/model_m_122/ibm122m:default
+
+See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information.
diff --git a/keyboards/ibm/model_m_122/ibm122m/rules.mk b/keyboards/ibm/model_m_122/ibm122m/rules.mk
new file mode 100644
index 0000000000..3b2469ecc8
--- /dev/null
+++ b/keyboards/ibm/model_m_122/ibm122m/rules.mk
@@ -0,0 +1,11 @@
+# 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 = yes # Enable N-Key Rollover
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+AUDIO_ENABLE = yes # Audio output
diff --git a/keyboards/ibm/model_m_122/m122_3270/blackpill/info.json b/keyboards/ibm/model_m_122/m122_3270/blackpill/info.json
new file mode 100644
index 0000000000..b17554b7e0
--- /dev/null
+++ b/keyboards/ibm/model_m_122/m122_3270/blackpill/info.json
@@ -0,0 +1,13 @@
+{
+ "usb": {
+ "device_version": "0.0.2"
+ },
+ "matrix_pins": {
+ "cols": ["B0", "B1", "B10", "B12", "B13", "B14", "B15", "A8", "A7", "A10", "A6", "A5", "A15", "B3", "B4", "B5", "B6", "B7", "B8", "B9"],
+ "rows": ["C13", "C14", "C15", "A0", "A1", "A2", "A3", "A4"]
+ },
+ "diode_direction": "ROW2COL",
+ "processor": "STM32F411",
+ "bootloader": "stm32-dfu",
+ "board": "BLACKPILL_STM32_F411"
+}
diff --git a/keyboards/ibm/model_m_122/m122_3270/blackpill/readme.md b/keyboards/ibm/model_m_122/m122_3270/blackpill/readme.md
new file mode 100644
index 0000000000..1e47a447a3
--- /dev/null
+++ b/keyboards/ibm/model_m_122/m122_3270/blackpill/readme.md
@@ -0,0 +1,3 @@
+# BlackPill controller for m122-3270
+
+This directory contains the BlackPill-specific definitions for the M122-3270 keyboard.
diff --git a/keyboards/ibm/model_m_122/m122_3270/blackpill/rules.mk b/keyboards/ibm/model_m_122/m122_3270/blackpill/rules.mk
new file mode 100644
index 0000000000..0a85fffb85
--- /dev/null
+++ b/keyboards/ibm/model_m_122/m122_3270/blackpill/rules.mk
@@ -0,0 +1,12 @@
+# 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 = yes # Enable N-Key Rollover
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
+AUDIO_ENABLE = no # Audio output
diff --git a/keyboards/ibm/model_m_122/m122_3270/bluepill/info.json b/keyboards/ibm/model_m_122/m122_3270/bluepill/info.json
new file mode 100644
index 0000000000..e2f18d06e4
--- /dev/null
+++ b/keyboards/ibm/model_m_122/m122_3270/bluepill/info.json
@@ -0,0 +1,12 @@
+{
+ "usb": {
+ "device_version": "0.0.3"
+ },
+ "matrix_pins": {
+ "cols": ["B1", "B10", "B11", "B12", "B13", "B14", "B15", "A8", "B0", "A10", "A7", "A6", "A15", "B3", "B4", "B5", "B6", "B7", "B8", "B9"],
+ "rows": ["C13", "C14", "C15", "A1", "A2", "A3", "A4", "A5"]
+ },
+ "diode_direction": "ROW2COL",
+ "processor": "STM32F103",
+ "bootloader": "stm32duino"
+}
diff --git a/keyboards/ibm/model_m_122/m122_3270/bluepill/readme.md b/keyboards/ibm/model_m_122/m122_3270/bluepill/readme.md
new file mode 100644
index 0000000000..a8d92432d4
--- /dev/null
+++ b/keyboards/ibm/model_m_122/m122_3270/bluepill/readme.md
@@ -0,0 +1,2 @@
+# BluePill controller for m122-3270
+This directory contains the BluePill-specific definitions for the M122-3270 keyboard.
diff --git a/keyboards/ibm/model_m_122/m122_3270/bluepill/rules.mk b/keyboards/ibm/model_m_122/m122_3270/bluepill/rules.mk
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/keyboards/ibm/model_m_122/m122_3270/bluepill/rules.mk
diff --git a/keyboards/ibm/model_m_122/m122_3270/info.json b/keyboards/ibm/model_m_122/m122_3270/info.json
new file mode 100644
index 0000000000..9b7a78c7f7
--- /dev/null
+++ b/keyboards/ibm/model_m_122/m122_3270/info.json
@@ -0,0 +1,161 @@
+{
+ "keyboard_name": "Model M PC/3270 122 key",
+ "manufacturer": "IBM",
+ "url": "https://github.com/qmk/qmk_firmware/tree/master/keyboards/ibm/model_m_122/m122_3270",
+ "maintainer": "jmaynard",
+ "usb": {
+ "vid": "0x1209",
+ "pid": "0x3270",
+ "max_power": 100
+ },
+ "debounce": 15,
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"matrix": [0, 9], "x": 3.25, "y": 0},
+ {"matrix": [1, 9], "x": 4.25, "y": 0},
+ {"matrix": [1, 10], "x": 5.25, "y": 0},
+ {"matrix": [2, 9], "x": 6.25, "y": 0},
+ {"matrix": [3, 9], "x": 7.25, "y": 0},
+ {"matrix": [3, 10], "x": 8.25, "y": 0},
+ {"matrix": [4, 9], "x": 9.25, "y": 0},
+ {"matrix": [5, 9], "x": 10.25, "y": 0},
+ {"matrix": [5, 10], "x": 11.25, "y": 0},
+ {"matrix": [6, 9], "x": 12.25, "y": 0},
+ {"matrix": [7, 9], "x": 13.25, "y": 0},
+ {"matrix": [7, 10], "x": 14.25, "y": 0},
+
+ {"matrix": [0, 10], "x": 3.25, "y": 1},
+ {"matrix": [0, 11], "x": 4.25, "y": 1},
+ {"matrix": [1, 11], "x": 5.25, "y": 1},
+ {"matrix": [2, 10], "x": 6.25, "y": 1},
+ {"matrix": [2, 11], "x": 7.25, "y": 1},
+ {"matrix": [3, 11], "x": 8.25, "y": 1},
+ {"matrix": [4, 10], "x": 9.25, "y": 1},
+ {"matrix": [4, 11], "x": 10.25, "y": 1},
+ {"matrix": [5, 11], "x": 11.25, "y": 1},
+ {"matrix": [6, 10], "x": 12.25, "y": 1},
+ {"matrix": [6, 11], "x": 13.25, "y": 1},
+ {"matrix": [7, 11], "x": 14.25, "y": 1},
+
+ {"matrix": [3, 1], "x": 0, "y": 3},
+ {"matrix": [3, 2], "x": 1, "y": 3},
+
+ {"matrix": [3, 4], "x": 2.25, "y": 3},
+ {"matrix": [2, 4], "x": 3.25, "y": 3},
+ {"matrix": [2, 5], "x": 4.25, "y": 3},
+ {"matrix": [2, 6], "x": 5.25, "y": 3},
+ {"matrix": [2, 7], "x": 6.25, "y": 3},
+ {"matrix": [3, 7], "x": 7.25, "y": 3},
+ {"matrix": [3, 8], "x": 8.25, "y": 3},
+ {"matrix": [2, 8], "x": 9.25, "y": 3},
+ {"matrix": [2, 12], "x": 10.25, "y": 3},
+ {"matrix": [2, 13], "x": 11.25, "y": 3},
+ {"matrix": [2, 14], "x": 12.25, "y": 3},
+ {"matrix": [3, 14], "x": 13.25, "y": 3},
+ {"matrix": [3, 12], "x": 14.25, "y": 3},
+ {"matrix": [3, 15], "x": 15.25, "y": 3, "w": 2},
+
+ {"matrix": [3, 16], "x": 17.5, "y": 3},
+ {"matrix": [3, 17], "x": 18.5, "y": 3},
+ {"matrix": [2, 16], "x": 19.5, "y": 3},
+
+ {"matrix": [2, 15], "x": 20.75, "y": 3},
+ {"matrix": [2, 17], "x": 21.75, "y": 3},
+ {"matrix": [2, 18], "x": 22.75, "y": 3},
+ {"matrix": [2, 0], "x": 23.75, "y": 3},
+
+ {"matrix": [2, 1], "x": 0, "y": 4},
+ {"matrix": [4, 1], "x": 1, "y": 4},
+
+ {"matrix": [4, 2], "x": 2.25, "y": 4, "w": 1.5},
+ {"matrix": [4, 4], "x": 3.75, "y": 4},
+ {"matrix": [4, 5], "x": 4.75, "y": 4},
+ {"matrix": [4, 6], "x": 5.75, "y": 4},
+ {"matrix": [4, 7], "x": 6.75, "y": 4},
+ {"matrix": [5, 7], "x": 7.75, "y": 4},
+ {"matrix": [5, 8], "x": 8.75, "y": 4},
+ {"matrix": [4, 8], "x": 9.75, "y": 4},
+ {"matrix": [4, 12], "x": 10.75, "y": 4},
+ {"matrix": [4, 13], "x": 11.75, "y": 4},
+ {"matrix": [4, 14], "x": 12.75, "y": 4},
+ {"matrix": [5, 14], "x": 13.75, "y": 4},
+ {"matrix": [5, 12], "x": 14.75, "y": 4},
+ {"matrix": [6, 15], "x": 16, "y": 4, "w": 1.25, "h": 2},
+
+ {"matrix": [1, 16], "x": 17.5, "y": 4},
+ {"matrix": [5, 16], "x": 18.5, "y": 4},
+ {"matrix": [4, 16], "x": 19.5, "y": 4},
+
+ {"matrix": [4, 15], "x": 20.75, "y": 4},
+ {"matrix": [4, 17], "x": 21.75, "y": 4},
+ {"matrix": [4, 18], "x": 22.75, "y": 4},
+ {"matrix": [4, 0], "x": 23.75, "y": 4},
+
+ {"matrix": [5, 1], "x": 0, "y": 5},
+ {"matrix": [5, 2], "x": 1, "y": 5},
+
+ {"matrix": [6, 2], "x": 2.25, "y": 5, "w": 1.75},
+ {"matrix": [1, 4], "x": 4, "y": 5},
+ {"matrix": [1, 5], "x": 5, "y": 5},
+ {"matrix": [1, 6], "x": 6, "y": 5},
+ {"matrix": [1, 7], "x": 7, "y": 5},
+ {"matrix": [0, 7], "x": 8, "y": 5},
+ {"matrix": [0, 8], "x": 9, "y": 5},
+ {"matrix": [1, 8], "x": 10, "y": 5},
+ {"matrix": [1, 12], "x": 11, "y": 5},
+ {"matrix": [1, 13], "x": 12, "y": 5},
+ {"matrix": [1, 14], "x": 13, "y": 5},
+ {"matrix": [0, 14], "x": 14, "y": 5},
+ {"matrix": [6, 14], "x": 15, "y": 5},
+
+ {"matrix": [0, 16], "x": 18.5, "y": 5},
+
+ {"matrix": [1, 15], "x": 20.75, "y": 5},
+ {"matrix": [1, 17], "x": 21.75, "y": 5},
+ {"matrix": [1, 18], "x": 22.75, "y": 5},
+ {"matrix": [1, 0], "x": 23.75, "y": 5},
+
+ {"matrix": [1, 1], "x": 0, "y": 6},
+ {"matrix": [1, 2], "x": 1, "y": 6},
+
+ {"matrix": [7, 3], "x": 2.25, "y": 6, "w": 1.25},
+ {"matrix": [7, 4], "x": 3.5, "y": 6},
+ {"matrix": [6, 4], "x": 4.5, "y": 6},
+ {"matrix": [6, 5], "x": 5.5, "y": 6},
+ {"matrix": [6, 6], "x": 6.5, "y": 6},
+ {"matrix": [6, 7], "x": 7.5, "y": 6},
+ {"matrix": [7, 7], "x": 8.5, "y": 6},
+ {"matrix": [7, 8], "x": 9.5, "y": 6},
+ {"matrix": [6, 8], "x": 10.5, "y": 6},
+ {"matrix": [6, 12], "x": 11.5, "y": 6},
+ {"matrix": [6, 13], "x": 12.5, "y": 6},
+ {"matrix": [7, 14], "x": 13.5, "y": 6},
+ {"matrix": [6, 3], "x": 14.5, "y": 6, "w": 2.75},
+
+ {"matrix": [6, 0], "x": 17.5, "y": 6},
+ {"matrix": [0, 19], "x": 18.5, "y": 6},
+ {"matrix": [1, 19], "x": 19.5, "y": 6},
+
+ {"matrix": [6, 1], "x": 20.75, "y": 6},
+ {"matrix": [6, 17], "x": 21.75, "y": 6},
+ {"matrix": [6, 18], "x": 22.75, "y": 6},
+ {"matrix": [7, 19], "x": 23.75, "y": 6, "h": 2},
+
+ {"matrix": [0, 2], "x": 0, "y": 7},
+ {"matrix": [0, 1], "x": 1, "y": 7},
+
+ {"matrix": [0, 0], "x": 2.25, "y": 7, "w": 1.5},
+ {"matrix": [7, 0], "x": 4.75, "y": 7, "w": 1.5},
+ {"matrix": [7, 1], "x": 6.25, "y": 7, "w": 7},
+ {"matrix": [0, 3], "x": 13.25, "y": 7, "w": 1.5},
+ {"matrix": [7, 2], "x": 15.75, "y": 7, "w": 1.5},
+
+ {"matrix": [0, 15], "x": 18.5, "y": 7},
+
+ {"matrix": [7, 17], "x": 20.75, "y": 7, "w": 2},
+ {"matrix": [7, 18], "x": 22.75, "y": 7}
+ ]
+ }
+ }
+}
diff --git a/keyboards/ibm/model_m_122/m122_3270/keymaps/default/keymap.c b/keyboards/ibm/model_m_122/m122_3270/keymaps/default/keymap.c
new file mode 100644
index 0000000000..4ade8fe6ee
--- /dev/null
+++ b/keyboards/ibm/model_m_122/m122_3270/keymaps/default/keymap.c
@@ -0,0 +1,214 @@
+/* Copyright 2021 James R. Maynard III <jaymaynard@gmail.com>
+ *
+ * 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
+
+enum custom_keycodes {
+ JM_DOT = SAFE_RANGE, // . both shifted and unshifted
+ JM_COMM, // , both shifted and unshifted
+ JM_GRLS, // < and > on one key
+ JM_CBRC, // { and } on one key
+ JM_CENT, // cent sign and ! on one key
+ JM_DPA1, // DUP/PA1,
+ JM_FPA2, // FldMk/PA2,
+ JM_JUMP, // JUMP/PA3,
+ JM_DEL, // Delete
+ JM_NSLC // NumLock/ScrollLock on one key
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ // PC/3270 layout: PC legends (blue)
+ [0] = LAYOUT(
+ KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24,
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
+
+ KC_NO, KC_NO, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_NO, KC_PGUP, KC_PGDN, KC_ESC, JM_NSLC, KC_PAST, KC_PSLS,
+ KC_NO, KC_PAUS, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_ENT, KC_END, KC_INS, KC_DEL, KC_P7, KC_P8, KC_P9, KC_PPLS,
+ KC_NO, KC_NO, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_UP, KC_P4, KC_P5, KC_P6, KC_PMNS,
+ KC_PSCR, KC_NO, KC_LSFT, JM_GRLS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_LEFT, KC_HOME, KC_RIGHT, KC_P1, KC_P2, KC_P3, KC_PENT,
+ MO(2), KC_LGUI, KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_DOWN, KC_P0, KC_PDOT
+ ),
+
+ // PC/3270 layout: 3270 legends (black), with x3270 keycodes
+ [1] = LAYOUT(
+ A(KC_F1), A(KC_F2), A(KC_F3), A(KC_F4), A(KC_F5), A(KC_F6), A(KC_F7), A(KC_F8), A(KC_F9), A(KC_F10), A(KC_F11), A(KC_F12),
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
+
+ A(KC_A), A(KC_C), KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, JM_DPA1, JM_FPA2, JM_JUMP, KC_ESC, JM_NSLC, KC_PCMM, KC_SPC,
+ KC_CRSEL, KC_PAUS, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, JM_CENT, KC_BSLS, S(KC_ENT), S(KC_TAB), KC_INS, JM_DEL, KC_P7, KC_P8, KC_P9, KC_TAB,
+ KC_EXSEL, A(KC_E), KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, JM_CBRC, KC_UP, KC_P4, KC_P5, KC_P6, KC_PMNS,
+ A(KC_B), C(KC_C), KC_LSFT, JM_GRLS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, JM_COMM, JM_DOT, KC_SLSH, KC_RSFT, KC_LEFT, A(KC_H), KC_RIGHT, KC_P1, KC_P2, KC_P3, KC_PENT,
+ MO(2), KC_LGUI, A(KC_R), KC_LALT, KC_SPC, KC_RALT, KC_ENT, KC_DOWN, KC_P0, KC_PDOT
+ ),
+
+ // Function layer, accessed by the Zoom key
+ [2] = LAYOUT(
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+
+ DF(0), DF(1), _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, MO(3), _______, _______, _______, _______, _______
+ ),
+
+ // Firmware layer, accessed by the Zoom/Space key pair (hold both down)
+ [3] = LAYOUT(
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, EE_CLR, QK_BOOT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, DB_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
+ )
+};
+
+bool left_shift_down = false;
+bool right_shift_down = false;
+bool left_alt_down = false;
+bool right_alt_down = false;
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ switch (keycode) {
+ case KC_LSFT:
+ left_shift_down = record->event.pressed;
+ break;
+ case KC_RSFT:
+ right_shift_down = record->event.pressed;
+ break;
+ case KC_LALT:
+ left_alt_down = record->event.pressed;
+ break;
+ case KC_RALT:
+ right_alt_down = record->event.pressed;
+ break;
+ case JM_GRLS:
+ if (left_shift_down || right_shift_down) {
+ if(record->event.pressed) {
+ SEND_STRING(">");
+ }
+ } else {
+ if(record->event.pressed) {
+ SEND_STRING("<");
+ }
+ }
+ return false;
+ case JM_CBRC:
+ if (left_shift_down || right_shift_down) {
+ if (record->event.pressed) {
+ SEND_STRING("}");
+ }
+ } else {
+ if(record->event.pressed) {
+ SEND_STRING("{");
+ }
+ }
+ return false;
+ case JM_CENT:
+ if (left_shift_down || right_shift_down) {
+ if (record->event.pressed) {
+ SEND_STRING("!");
+ }
+ } else { // This assumes that the Linux Compose has been set to Scroll Lock
+ if (record->event.pressed) {
+ tap_code16(KC_SCRL);
+ SEND_STRING("c/");
+ }
+ }
+ return false;
+ case JM_COMM:
+ if (record->event.pressed){
+ SEND_STRING(",");
+ }
+ return false;
+ case JM_DOT:
+ if (record->event.pressed) {
+ SEND_STRING(".");
+ }
+ return false;
+ case JM_DPA1:
+ if (left_shift_down || right_shift_down) {
+ if (record->event.pressed) {
+ tap_code16(C(KC_D));
+ }
+ return false;
+ } else {
+ if(record->event.pressed) {
+ tap_code16(A(KC_1));
+ }
+ return false;
+ }
+ break;
+ case JM_FPA2:
+ if (left_shift_down || right_shift_down) {
+ if (record->event.pressed) {
+ tap_code16(C(KC_F));
+ }
+ return false;
+ } else {
+ if(record->event.pressed) {
+ tap_code16(A(KC_2));
+ }
+ return false;
+ }
+ break;
+ case JM_JUMP:
+ if (record->event.pressed) {
+ if (left_alt_down || right_alt_down) {
+ SEND_STRING("3");
+ }
+ }
+ return false;
+ case JM_DEL:
+ if (record->event.pressed) {
+ if (left_alt_down || right_alt_down) {
+ unregister_code(KC_LALT);
+ unregister_code(KC_RALT);
+ tap_code16(C(KC_W));
+ if (left_alt_down) {
+ register_code(KC_LALT);
+ }
+ if (right_alt_down) {
+ register_code(KC_RALT);
+ }
+ } else {
+ tap_code16(KC_DEL);
+ }
+ }
+ return false;
+ case JM_NSLC:
+ if (left_shift_down || right_shift_down) {
+ if (record->event.pressed) {
+ register_code(KC_NUM_LOCK);
+ }
+ else {
+ unregister_code(KC_NUM_LOCK);
+ }
+ } else {
+ if (record->event.pressed) {
+ register_code(KC_SCRL);
+ }
+ else {
+ unregister_code(KC_SCRL);
+ }
+ }
+ return false;
+ }
+
+ return true;
+}
diff --git a/keyboards/ibm/model_m_122/m122_3270/keymaps/default/readme.md b/keyboards/ibm/model_m_122/m122_3270/keymaps/default/readme.md
new file mode 100644
index 0000000000..cab833dd30
--- /dev/null
+++ b/keyboards/ibm/model_m_122/m122_3270/keymaps/default/readme.md
@@ -0,0 +1,35 @@
+# Default keymap for m122-3270
+
+This keymap is intended to make the PC/3270 122-key IBM keyboard work as closely as possible to the standard
+PC/3270 keyboard's (part number 1397000) original mapping. Two layers are defined: layer 0 is the PC layout,
+using the blue legends on the PC/3270 keys (as shipped by Unicomp; I don't have the original keycaps, and I
+know there are a few differences), while layer 1 is the 3270 layout, with keycodes selected to make the `x3270`
+suite do the right thing with each key as pressed. The idea here is, eventually, to get `x3270` to
+automatically shift the keyboard to layer 1 when it gains focus.
+
+When layer 0 is active, the upper left key of the 10-key pad is Escape, the Reset and Enter keys are Control, and
+the comma and dot keys act like normal PC keys (< and >, repectively, when shifted). The Ctrl key (bottom right
+of the left-side 10-key cluster) is always the left GUI key. PA2 and Jump/PA3 are PgUp and PgDn, respectively,
+and the backtab key is End. The Rule/Home key is Home. The key next to the Escape key is Scroll Lock when unshifted,
+and Num Lock when shifted.
+
+When layer 1 is active, the keys do their labeled functions. The only keys that don't do anything are CrSel,
+ExSel, and Jump, though only a few of the alternate functions (on the front of the keys) work: left/right/delete
+word and PA3. The rest aren't emulated by x3270. Many of the keys that have function in PC mode will *not* have
+that same function in 3270 mode, since x3270 uses different keystrokes to accomplish the same function.
+
+To manually switch to layer 1, hold the Zoom key (the one on the far lower left of the keyboard) and press Clear
+(the one at the top right of that same block of 10 keys); to switch back to layer 0, hold the Zoom key and hit
+Attn (the one at the top left of that block of 10). Holding the Zoom key and the spacebar gets you to keys that
+control QMK itself: Zoom-space-R resets to the bootloader, Zoom-space-E erases the EEPROM (which currently does
+nothing), and Zoom-space-D turns the debugger on and off.
+
+Note that you need to set your Linux system to use the Scroll Lock key as the Compose key in order to get the
+cent sign to register as intended, and add the following lines to a file in your home directory named `.x3270pro`
+to make Dup and Field Mark work:
+```
+x3270.keymap.m122: #override \
+ Ctrl<Key>F: FieldMark()\n\
+ Ctrl<Key>D: Dup()
+```
+You need to then invoke `x3270` with the parameter `-keymap m122` to activate those definitions.
diff --git a/keyboards/ibm/model_m_122/m122_3270/readme.md b/keyboards/ibm/model_m_122/m122_3270/readme.md
new file mode 100644
index 0000000000..14b8684897
--- /dev/null
+++ b/keyboards/ibm/model_m_122/m122_3270/readme.md
@@ -0,0 +1,33 @@
+# m122-3270
+
+![IBM Model M 122 key](https://i.imgur.com/Oo3Ozqzh.jpg)
+
+This is a replacement controller for the IBM Model M 122 key terminal keyboard
+running on a STM32F411 BlackPill, intended to act as closely to the 3270
+keyboard's functioning as possible while still being usable on a PC.
+
+* Keyboard Maintainer: [Jay Maynard](https://github.com/jmaynard)
+* Hardware Supported: BlackPill STM32F411, Teensy++ 2.0
+* Hardware Availability: [BlackPill](https://www.adafruit.com/product/4877), [Teensy](https://www.pjrc.com/store/teensypp.html)
+
+Make example for this keyboard (after setting up your build environment):
+
+ make ibm/model_m_122/m122_3270/blackpill:default
+ make ibm/model_m_122/m122_3270/bluepill:default
+ make ibm/model_m_122/m122_3270/teensy: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).
+
+A schematic and Gerber files are publicly available for those wishing to have
+carrier boards made professionally instead of handwiring things. The M122
+matrix connectors plug right into it. It can be found at
+https://github.com/jmaynard/tronguylabs-m122-blackpill.
+
+This is derived from Luke Stanley's handwired/ibm122m keyboard, with my own
+keymapping and rework of the I/O for the BlackPill. There's also a version for
+the Teensy++ 2.0, since that was my original design and I still use one on one
+board, even though I switched to the BlackPill for future-proofing.
+The Teensy++ 2.0 is not recommended for new designs.
diff --git a/keyboards/ibm/model_m_122/m122_3270/teensy/info.json b/keyboards/ibm/model_m_122/m122_3270/teensy/info.json
new file mode 100644
index 0000000000..7596f5fc15
--- /dev/null
+++ b/keyboards/ibm/model_m_122/m122_3270/teensy/info.json
@@ -0,0 +1,12 @@
+{
+ "usb": {
+ "device_version": "0.0.1"
+ },
+ "matrix_pins": {
+ "cols": ["B5", "B6", "B7", "D0", "D1", "D2", "D3", "D4", "D5", "D7", "E0", "E1", "C0", "C1", "C2", "C3", "C4", "C5", "C6", "C7"],
+ "rows": ["F0", "F1", "F2", "F3", "F4", "F5", "F6", "F7"]
+ },
+ "diode_direction": "ROW2COL",
+ "processor": "at90usb1286",
+ "bootloader": "halfkay"
+}
diff --git a/keyboards/ibm/model_m_122/m122_3270/teensy/readme.md b/keyboards/ibm/model_m_122/m122_3270/teensy/readme.md
new file mode 100644
index 0000000000..43357ea610
--- /dev/null
+++ b/keyboards/ibm/model_m_122/m122_3270/teensy/readme.md
@@ -0,0 +1,3 @@
+# Teensy controller for m122-3270
+
+This directory contains the Teensy++ 2.0-specific definitions for the M122-3270 keyboard.
diff --git a/keyboards/ibm/model_m_122/m122_3270/teensy/rules.mk b/keyboards/ibm/model_m_122/m122_3270/teensy/rules.mk
new file mode 100644
index 0000000000..0a85fffb85
--- /dev/null
+++ b/keyboards/ibm/model_m_122/m122_3270/teensy/rules.mk
@@ -0,0 +1,12 @@
+# 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 = yes # Enable N-Key Rollover
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
+AUDIO_ENABLE = no # Audio output
diff --git a/keyboards/ibm/model_m_122/readme.md b/keyboards/ibm/model_m_122/readme.md
new file mode 100644
index 0000000000..0f11f3cf99
--- /dev/null
+++ b/keyboards/ibm/model_m_122/readme.md
@@ -0,0 +1,24 @@
+# IBM Model M Terminal with 122 keys
+
+This is the parent directory for all projects that replace the controller
+of IBM's Model M terminal keyboard with 122 keys and then run QMK on it.
+
+These controllers differ in their use of microcontrollers, connection (mainly
+USB) optional speakers etc.
+
+Some of them can be bought fully assembled others are do-it-yourself.
+
+## Warning - Model M Variants
+
+**Not all of these projects will fit into your keyboard!**
+
+As the Model M was produced over several years there are many variants of the
+controller PCB. Check what fits your keyboard before you build/order one.
+
+The variants built for PCs differ in:
+* PCB size
+* Connectors (8/12 pin flex, location)
+* Ground wire connector location
+
+Additionally IBM built Model M variants with 101/102 keys, the
+space saving keyboard (SSK, 84-key) etc.
diff --git a/keyboards/ibm/model_m_ssk/readme.md b/keyboards/ibm/model_m_ssk/readme.md
new file mode 100644
index 0000000000..aa9ee490c4
--- /dev/null
+++ b/keyboards/ibm/model_m_ssk/readme.md
@@ -0,0 +1,24 @@
+# IBM Model M Space Saving Keyboard (SSK, 84-key)
+
+This is the parent directory for all projects that replace the controller
+of IBM's Model M space saving keyboard keyboard with 84 keys and then run QMK on it.
+
+These controllers differ in their use of microcontrollers, connection (mainly
+USB) optional speakers etc.
+
+Some of them can be bought fully assembled others are do-it-yourself.
+
+## Warning - Model M Variants
+
+**Not all of these projects will fit into your keyboard!**
+
+As the Model M was produced over several years there are many variants of the
+controller PCB. Check what fits your keyboard before you build/order one.
+
+The variants built for PCs differ in:
+* PCB size
+* Connectors (8/12 pin flex, location)
+* Ground wire connector location
+
+Additionally IBM built Model M variants with 101/102 keys, the
+terminal keyboard with 122 keys etc.
diff --git a/keyboards/ibm/model_m_ssk/teensypp_ssk/config.h b/keyboards/ibm/model_m_ssk/teensypp_ssk/config.h
new file mode 100644
index 0000000000..3b6e758833
--- /dev/null
+++ b/keyboards/ibm/model_m_ssk/teensypp_ssk/config.h
@@ -0,0 +1,37 @@
+/*
+Copyright 2019-2021 iw0rm3r, tiltowait
+
+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
+
+/* The Model M does not have NKRO */
+#define MATRIX_HAS_GHOST
+
+/*
+ * Feature disable options
+ * These options are also useful to firmware size reduction.
+ */
+
+/* disable debug print */
+//#define NO_DEBUG
+
+/* disable print */
+//#define NO_PRINT
+
+/* disable action features */
+//#define NO_ACTION_LAYER
+//#define NO_ACTION_TAPPING
+//#define NO_ACTION_ONESHOT
diff --git a/keyboards/ibm/model_m_ssk/teensypp_ssk/info.json b/keyboards/ibm/model_m_ssk/teensypp_ssk/info.json
new file mode 100644
index 0000000000..fbc3076c47
--- /dev/null
+++ b/keyboards/ibm/model_m_ssk/teensypp_ssk/info.json
@@ -0,0 +1,128 @@
+{
+ "keyboard_name": "IBM Model M Space-Saving Keyboard",
+ "manufacturer": "tiltowait",
+ "url": "https://github.com/qmk/qmk_firmware/tree/master/keyboards/ibm/model_m_ssk/teensypp_ssk",
+ "maintainer": "tiltowait",
+ "usb": {
+ "vid": "0xFEED",
+ "pid": "0x0000",
+ "device_version": "0.0.1"
+ },
+ "matrix_pins": {
+ "cols": ["C7", "C6", "C5", "C4", "C3", "C2", "C1", "C0", "E1", "E0", "D7", "D5", "D4", "D3", "D2", "D1"],
+ "rows": ["F0", "F1", "F2", "F3", "F4", "F5", "F6", "F7"]
+ },
+ "diode_direction": "ROW2COL",
+ "indicators": {
+ "caps_lock": "B6",
+ "num_lock": "B4",
+ "scroll_lock": "B5"
+ },
+ "processor": "at90usb1286",
+ "bootloader": "halfkay",
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"matrix": [7, 2], "x": 0, "y": 0},
+
+ {"matrix": [5, 3], "x": 2, "y": 0},
+ {"matrix": [5, 4], "x": 3, "y": 0},
+ {"matrix": [6, 4], "x": 4, "y": 0},
+ {"matrix": [7, 4], "x": 5, "y": 0},
+
+ {"matrix": [7, 6], "x": 6.5, "y": 0},
+ {"matrix": [7, 8], "x": 7.5, "y": 0},
+ {"matrix": [6, 9], "x": 8.5, "y": 0},
+ {"matrix": [5, 9], "x": 9.5, "y": 0},
+
+ {"matrix": [5, 6], "x": 11, "y": 0},
+ {"matrix": [4, 6], "x": 12, "y": 0},
+ {"matrix": [4, 11], "x": 13, "y": 0},
+ {"matrix": [4, 12], "x": 14, "y": 0},
+
+ {"matrix": [4, 15], "x": 15.25, "y": 0},
+ {"matrix": [3, 15], "x": 16.25, "y": 0},
+ {"matrix": [1, 14], "x": 17.25, "y": 0},
+
+ {"matrix": [5, 2], "x": 0, "y": 1.5},
+ {"matrix": [4, 2], "x": 1, "y": 1.5},
+ {"matrix": [4, 3], "x": 2, "y": 1.5},
+ {"matrix": [4, 4], "x": 3, "y": 1.5},
+ {"matrix": [4, 5], "x": 4, "y": 1.5},
+ {"matrix": [5, 5], "x": 5, "y": 1.5},
+ {"matrix": [5, 7], "x": 6, "y": 1.5},
+ {"matrix": [4, 7], "x": 7, "y": 1.5},
+ {"matrix": [4, 8], "x": 8, "y": 1.5},
+ {"matrix": [4, 9], "x": 9, "y": 1.5},
+ {"matrix": [4, 10], "x": 10, "y": 1.5},
+ {"matrix": [5, 10], "x": 11, "y": 1.5},
+ {"matrix": [5, 8], "x": 12, "y": 1.5},
+ {"matrix": [6, 6], "x": 13, "y": 1.5, "w": 2},
+
+ {"matrix": [5, 12], "x": 15.25, "y": 1.5},
+ {"matrix": [5, 14], "x": 16.25, "y": 1.5},
+ {"matrix": [5, 13], "x": 17.25, "y": 1.5},
+
+ {"matrix": [6, 2], "x": 0, "y": 2.5, "w": 1.5},
+ {"matrix": [3, 2], "x": 1.5, "y": 2.5},
+ {"matrix": [3, 3], "x": 2.5, "y": 2.5},
+ {"matrix": [3, 4], "x": 3.5, "y": 2.5},
+ {"matrix": [3, 5], "x": 4.5, "y": 2.5},
+ {"matrix": [6, 5], "x": 5.5, "y": 2.5},
+ {"matrix": [6, 7], "x": 6.5, "y": 2.5},
+ {"matrix": [3, 7], "x": 7.5, "y": 2.5},
+ {"matrix": [3, 8], "x": 8.5, "y": 2.5},
+ {"matrix": [3, 9], "x": 9.5, "y": 2.5},
+ {"matrix": [3, 10], "x": 10.5, "y": 2.5},
+ {"matrix": [6, 10], "x": 11.5, "y": 2.5},
+ {"matrix": [6, 8], "x": 12.5, "y": 2.5},
+ {"matrix": [2, 6], "x": 13.5, "y": 2.5, "w": 1.5},
+
+ {"matrix": [5, 11], "x": 15.25, "y": 2.5},
+ {"matrix": [4, 14], "x": 16.25, "y": 2.5},
+ {"matrix": [4, 13], "x": 17.25, "y": 2.5},
+
+ {"matrix": [6, 3], "x": 0, "y": 3.5, "w": 1.5},
+ {"matrix": [2, 2], "x": 1.75, "y": 3.5},
+ {"matrix": [2, 3], "x": 2.75, "y": 3.5},
+ {"matrix": [2, 4], "x": 3.75, "y": 3.5},
+ {"matrix": [2, 5], "x": 4.75, "y": 3.5},
+ {"matrix": [7, 5], "x": 5.75, "y": 3.5},
+ {"matrix": [7, 7], "x": 6.75, "y": 3.5},
+ {"matrix": [2, 7], "x": 7.75, "y": 3.5},
+ {"matrix": [2, 8], "x": 8.75, "y": 3.5},
+ {"matrix": [2, 9], "x": 9.75, "y": 3.5},
+ {"matrix": [2, 10], "x": 10.75, "y": 3.5},
+ {"matrix": [7, 10], "x": 11.75, "y": 3.5},
+ {"matrix": [1, 10], "x": 12.75, "y": 3.5},
+ {"matrix": [1, 6], "x": 13.75, "y": 3.5, "w": 1.25},
+
+ {"matrix": [6, 1], "x": 0, "y": 4.5, "w": 1.25},
+ {"matrix": [7, 3], "x": 1.25, "y": 4.5},
+ {"matrix": [1, 2], "x": 2.25, "y": 4.5},
+ {"matrix": [1, 3], "x": 3.25, "y": 4.5},
+ {"matrix": [1, 4], "x": 4.25, "y": 4.5},
+ {"matrix": [1, 5], "x": 5.25, "y": 4.5},
+ {"matrix": [0, 5], "x": 6.25, "y": 4.5},
+ {"matrix": [0, 7], "x": 7.25, "y": 4.5},
+ {"matrix": [1, 7], "x": 8.25, "y": 4.5},
+ {"matrix": [1, 8], "x": 9.25, "y": 4.5},
+ {"matrix": [1, 9], "x": 10.25, "y": 4.5},
+ {"matrix": [0, 10], "x": 11.25, "y": 4.5},
+ {"matrix": [1, 1], "x": 12.25, "y": 4.5, "w": 2.75},
+
+ {"matrix": [7, 14], "x": 16.25, "y": 4.5},
+
+ {"matrix": [5, 0], "x": 0, "y": 5.5, "w": 1.5},
+ {"matrix": [7, 15], "x": 2.5, "y": 5.5, "w": 1.5},
+ {"matrix": [0, 6], "x": 4, "y": 5.5, "w": 7},
+ {"matrix": [0, 15], "x": 11, "y": 5.5, "w": 1.5},
+ {"matrix": [1, 0], "x": 13.5, "y": 5.5, "w": 1.5},
+
+ {"matrix": [0, 14], "x": 15.25, "y": 5.5},
+ {"matrix": [0, 11], "x": 16.25, "y": 5.5},
+ {"matrix": [0, 12], "x": 17.25, "y": 5.5}
+ ]
+ }
+ }
+}
diff --git a/keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/default/keymap.c b/keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/default/keymap.c
new file mode 100644
index 0000000000..928d745f0d
--- /dev/null
+++ b/keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/default/keymap.c
@@ -0,0 +1,114 @@
+/* Copyright 2019-2021 iw0rm3r, tiltowait
+ *
+ * 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
+
+enum custom_layers {
+ _BASE,
+ _NUMPAD,
+};
+
+enum custom_keycodes {
+ NUM_SCRL = SAFE_RANGE
+};
+
+void toggle_numpad_layer(int set_state);
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_BASE] = LAYOUT( /* Base layer */
+ KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, NUM_SCRL, KC_PAUS,
+ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
+ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
+ KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT,
+ KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
+ KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
+ ),
+ [_NUMPAD] = LAYOUT( /* Numpad Layer */
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_KP_7, KC_KP_8, KC_KP_9, KC_TRNS, KC_KP_MINUS, KC_KP_PLUS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_KP_4, KC_KP_5, KC_KP_6, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_ASTERISK, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_KP_0, KC_TRNS, KC_KP_DOT, KC_KP_SLASH, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+ ),
+};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ static uint16_t last_num_scroll = 0; /* For unregistering the proper key */
+
+ switch (keycode) {
+ case NUM_SCRL: /* Numlock / Scroll Lock */
+ if (record->event.pressed) {
+ if (get_mods() & MOD_MASK_SHIFT) {
+ /* Remove the shift modifiers */
+ uint8_t shift_mods = get_mods() & (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT));
+ del_mods(MOD_MASK_SHIFT);
+
+ last_num_scroll = KC_NUM_LOCK;
+ register_code(last_num_scroll);
+ toggle_numpad_layer(-1);
+
+ /* Reset the shift modifiers */
+ set_mods(shift_mods);
+ } else {
+ last_num_scroll = KC_SCROLL_LOCK;
+ register_code(last_num_scroll);
+ }
+ } else {
+ unregister_code(last_num_scroll);
+ }
+ break;
+ }
+ return true;
+}
+
+void toggle_numpad_layer(int set_state) {
+ static uint8_t numlock_enabled = 0;
+
+ /* set_state allows us to explicitly change the numlock state
+ rather than merely toggling it. */
+ if (set_state == -1) {
+ numlock_enabled = !numlock_enabled;
+ } else {
+ numlock_enabled = set_state;
+ }
+
+ if (numlock_enabled) {
+ layer_on(_NUMPAD);
+ }
+ else {
+ layer_off(_NUMPAD);
+ }
+}
+
+bool led_update_user(led_t led_state) {
+ /* In rare and unlikely conditions, it's possible for numlock
+ state to change externally from the keyboard. If this happens,
+ we want to match the new state.
+
+ On Windows and Linux, this means that the keyboard will technically
+ toggle the numpad layer twice.
+ */
+
+ static int8_t numlock_state = -1; /* Unknown state at default */
+
+ if (led_state.num_lock != numlock_state) {
+ numlock_state = led_state.num_lock;
+ toggle_numpad_layer(led_state.num_lock);
+ }
+ return true;
+}
+
diff --git a/keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/default/readme.md b/keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/default/readme.md
new file mode 100644
index 0000000000..bc829be266
--- /dev/null
+++ b/keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/default/readme.md
@@ -0,0 +1 @@
+# The default keymap for modelm_ssk
diff --git a/keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/tiltowait/config.h b/keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/tiltowait/config.h
new file mode 100644
index 0000000000..151118fdf6
--- /dev/null
+++ b/keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/tiltowait/config.h
@@ -0,0 +1,21 @@
+/* Copyright 2021 tiltowait
+ *
+ * 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
+
+#define PERMISSIVE_HOLD
diff --git a/keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/tiltowait/keymap.c b/keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/tiltowait/keymap.c
new file mode 100644
index 0000000000..4836ad329e
--- /dev/null
+++ b/keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/tiltowait/keymap.c
@@ -0,0 +1,116 @@
+/* Copyright 2021 tiltowait
+ *
+ * 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
+
+enum custom_layers {
+ _BASE,
+ _SECOND,
+ _NUMPAD,
+};
+
+enum custom_keycodes {
+ NUM_SCRL = SAFE_RANGE /* Dual-purpose Scroll Lock / Numlock button as on original hardware */
+};
+
+void toggle_numlock_layer(int set_state);
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_BASE] = LAYOUT( /* Base layer */
+ KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_MUTE, KC_F10, KC_VOLD, KC_VOLU, S(G(KC_4)), NUM_SCRL, KC_PAUS,
+
+ KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_INS, KC_HOME, KC_PGUP,
+ LT(_SECOND,KC_TAB), KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, KC_DEL, KC_END, KC_PGDN,
+ KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT,
+ KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
+ KC_LALT, LGUI_T(KC_ENT), KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
+ ),
+ [_SECOND] = LAYOUT( /* Layer 1 */
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, S(A(KC_MINS)), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, C(KC_LEFT), C(KC_RGHT), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, S(A(KC_M)), KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_ENT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, C(KC_SPC), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+ ),
+ [_NUMPAD] = LAYOUT( /* Numpad Layer */
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_KP_7, KC_KP_8, KC_KP_9, KC_TRNS, KC_KP_MINUS, KC_KP_PLUS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_KP_4, KC_KP_5, KC_KP_6, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_ASTERISK, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_KP_0, KC_TRNS, KC_KP_DOT, KC_KP_SLASH, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+ ),
+};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ static uint16_t last_num_scroll = 0; /* For unregistering the proper key */
+
+ switch (keycode) {
+ case NUM_SCRL:
+ if (record->event.pressed) {
+ if (get_mods() & MOD_MASK_SHIFT) {
+ /* Remove the shift modifiers */
+ uint8_t shift_mods = get_mods() & (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT));
+ set_mods(get_mods() & ~(MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) );
+
+ last_num_scroll = KC_NUM_LOCK;
+ register_code(last_num_scroll);
+ toggle_numlock_layer(-1);
+
+ /* Reset the shift modifiers */
+ set_mods(shift_mods);
+ } else {
+ last_num_scroll = KC_SCROLL_LOCK;
+ register_code(last_num_scroll);
+ }
+ } else {
+ unregister_code(last_num_scroll);
+ }
+ break;
+ }
+ return true;
+}
+
+void toggle_numlock_layer(int set_state) {
+ static uint8_t numlock_enabled = 0;
+
+ /* set_state allows us to explicitly change the numlock state
+ rather than merely toggling it. */
+ if (set_state == -1) {
+ numlock_enabled = !numlock_enabled;
+ } else {
+ numlock_enabled = set_state;
+ }
+
+ if (numlock_enabled) {
+ layer_on(_NUMPAD);
+ }
+ else {
+ layer_off(_NUMPAD);
+ }
+}
+
+bool led_update_kb(led_t led_state) {
+ static int8_t numlock_state = -1;
+
+ if (led_state.num_lock != numlock_state) {
+ numlock_state = led_state.num_lock;
+ toggle_numlock_layer(led_state.num_lock);
+ }
+ return true;
+}
diff --git a/keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/tiltowait/readme.md b/keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/tiltowait/readme.md
new file mode 100644
index 0000000000..aecdd89b82
--- /dev/null
+++ b/keyboards/ibm/model_m_ssk/teensypp_ssk/keymaps/tiltowait/readme.md
@@ -0,0 +1,11 @@
+# The maintainer's personal keymap for modelm_ssk
+
+This is a keymap suitable for macOS use.
+
+* Backspace and backslash have been swapped (HHKB style)
+* Capslock is LCTRL
+* LCTRL is LALT
+* LALT is LGUI
+* Tab shifts to layer 1 on hold
+* Layer 1 has a couple of Mac shortcuts, plus Vim-style arrow keys
+* Shift+Numlock enables numlock
diff --git a/keyboards/ibm/model_m_ssk/teensypp_ssk/readme.md b/keyboards/ibm/model_m_ssk/teensypp_ssk/readme.md
new file mode 100644
index 0000000000..14c0e93dbd
--- /dev/null
+++ b/keyboards/ibm/model_m_ssk/teensypp_ssk/readme.md
@@ -0,0 +1,55 @@
+# modelm_ssk
+
+![IBM Model M Space-Saving Keyboard](https://i.imgur.com/CSXrQI5.jpg)
+
+This is a QMK firmware configuration for the IBM Model M Space-Saving Keyboard (SSK). Based on [this project](https://github.com/qmk/qmk_firmware/tree/master/keyboards/ibm/model_m/teensypp), it features a few slight improvements and, most importantly, a full remapping to match the SSK's matrix, which differs from its full-sized cousins. The modification is easily reversible, as no part of the keyboard is permanently changed. Just take out the replacement controller and reinstall the original, should you desire.
+
+The numpad layer (accessed with Shift + Scroll Lock as with the original controller) is mapped to layer 7 by default. All non-numpad keys are transparent.
+
+**Note:** As of this writing, this configuration has only been tested on the 1392464 SSK. It's possible other models differ in their internal matrices. Should the provided matrix not work for you (and you are certain of your connections), you can enable debugging with `CONSOLE_ENABLE = yes` in `rules.mk` and by following the directions in `default/keymap.c`. Once done, [QMK Toolbox](https://github.com/qmk/qmk_toolbox) will display row/col information to help you remap `keymap.c`.
+
+## Requirements
+
+* [Teensy++ 2.0](https://www.pjrc.com/store/teensypp.html) - I recommend buying one with pins already attached
+* A Trio-Mate 16-pin ribbon connector (6-520315-6 or 6-520415-6)
+* A Trio-Mate 8-pin ribbon connector (5-120628-8 or 5-520314-8). Alternatively, two 16-pin connectors can be used if the 8-pin is out of stock. Just be sure to line up your pins correctly
+* Breadboard or perfboard. A perfboard is recommended due to its reduced height and low clearance inside the chassis
+* Mini-B to USB-A cable
+* Jumper wires and wire strippers/cutters
+* Soldering iron if not using a breadboard
+
+## Setup
+
+![Finished controller](https://i.imgur.com/m1yuo4F.jpg)
+
+The controller uses the following mapping (in zero-indexed hex):
+
+```
+Column: 0 1 2 3 4 5 6 7 8 9 A B C D E F
+Pin: C7 C6 C5 C4 C3 C2 C1 C0 E1 E0 D7 D5 D4 D3 D2 D1
+--------------------------------------------------------
+Row: 0 1 2 3 4 5 6 7
+Pin: F0 F1 F2 F3 F4 F5 F6 F7
+```
+
+**IMPORTANT:** It is necessary to skip pin D6 on the Teensy. There is an LED attached to this pin, which can cause interference with registering keys. Alternatively, you can remove the LED from the board, which is likely to be a permanent modification of the Teensy. The choice is yours. I am not responsible for any damage to your Teensy or keyboard.
+
+## A note on the Unicomp Mini M
+
+This configuration will not work out of the box with the [Unicomp Mini M](https://www.pckeyboard.com/page/product/MINI_M). That keyboard uses a 16x12 matrix rather than the SSK's 16x8 in order to reduce occurrences of 2KRO lockup. It also features lock lights, which the SSK lacks. However, it should be possible to map out the Mini M's matrix to get it working.
+
+## Maintainer
+
+* Keyboard Maintainer: [tiltowait](https://github.com/tiltowait), original work by [iw0rm3r](https://github.com/iw0rm3r)
+* Hardware Supported: Teensy 2.0++ board by PJRC
+* Hardware Availability: https://www.pjrc.com/store/teensypp.html
+
+## Building
+
+Make example for this keyboard (after setting up your build environment):
+
+ make ibm/model_m_ssk/teensypp_ssk:default
+
+You must press the button on the Teensy to enter the bootloader the first time. Afterward, so long as you keep `COMMAND_ENABLE = yes` in `rules.mk` (enabled by default), you can use `Left Shift + Right Shift + B` to enter the bootloader. With this method, you can omit `:teensy` from the end of the `make` command.
+
+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/ibm/model_m_ssk/teensypp_ssk/rules.mk b/keyboards/ibm/model_m_ssk/teensypp_ssk/rules.mk
new file mode 100644
index 0000000000..2904475d7d
--- /dev/null
+++ b/keyboards/ibm/model_m_ssk/teensypp_ssk/rules.mk
@@ -0,0 +1,12 @@
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
+MOUSEKEY_ENABLE = no # Mouse keys
+EXTRAKEY_ENABLE = yes # Audio control and System control
+CONSOLE_ENABLE = no # 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