From 31a5e2aa71bed6e0df1414a57f143831eb25ce64 Mon Sep 17 00:00:00 2001 From: 8bits4ever <87928173+8bits4ever@users.noreply.github.com> Date: Thu, 12 Aug 2021 15:03:40 +0200 Subject: [PATCH 1/7] Rename keyboards/converter/a1200/config.h to keyboards/converter/a1200/teensy2pp/config.h --- keyboards/converter/a1200/{ => teensy2pp}/config.h | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename keyboards/converter/a1200/{ => teensy2pp}/config.h (100%) diff --git a/keyboards/converter/a1200/config.h b/keyboards/converter/a1200/teensy2pp/config.h similarity index 100% rename from keyboards/converter/a1200/config.h rename to keyboards/converter/a1200/teensy2pp/config.h From 0f5e218e62978568e0b5f54294d6073c958634a5 Mon Sep 17 00:00:00 2001 From: 8bits4ever <87928173+8bits4ever@users.noreply.github.com> Date: Thu, 12 Aug 2021 15:04:24 +0200 Subject: [PATCH 2/7] Rename keyboards/converter/a1200/rules.mk to keyboards/converter/a1200/teensy2pp/rules.mk --- keyboards/converter/a1200/{ => teensy2pp}/rules.mk | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename keyboards/converter/a1200/{ => teensy2pp}/rules.mk (100%) diff --git a/keyboards/converter/a1200/rules.mk b/keyboards/converter/a1200/teensy2pp/rules.mk similarity index 100% rename from keyboards/converter/a1200/rules.mk rename to keyboards/converter/a1200/teensy2pp/rules.mk From fd0bf91bed167b474a1e86aafefde81a65c945eb Mon Sep 17 00:00:00 2001 From: 8bits4ever <87928173+8bits4ever@users.noreply.github.com> Date: Thu, 12 Aug 2021 15:05:10 +0200 Subject: [PATCH 3/7] Create dummy --- keyboards/converter/a1200/miss1200/dummy | 1 + 1 file changed, 1 insertion(+) create mode 100644 keyboards/converter/a1200/miss1200/dummy diff --git a/keyboards/converter/a1200/miss1200/dummy b/keyboards/converter/a1200/miss1200/dummy new file mode 100644 index 000000000000..8b137891791f --- /dev/null +++ b/keyboards/converter/a1200/miss1200/dummy @@ -0,0 +1 @@ + From 64feebf673e009cdd3e1c6ba993e949736fce4ed Mon Sep 17 00:00:00 2001 From: 8bits4ever <87928173+8bits4ever@users.noreply.github.com> Date: Thu, 12 Aug 2021 15:05:51 +0200 Subject: [PATCH 4/7] Add files via upload --- keyboards/converter/a1200/miss1200/config.h | 62 +++++++++++++++++++++ keyboards/converter/a1200/miss1200/rules.mk | 22 ++++++++ 2 files changed, 84 insertions(+) create mode 100644 keyboards/converter/a1200/miss1200/config.h create mode 100644 keyboards/converter/a1200/miss1200/rules.mk diff --git a/keyboards/converter/a1200/miss1200/config.h b/keyboards/converter/a1200/miss1200/config.h new file mode 100644 index 000000000000..5a6c679651a7 --- /dev/null +++ b/keyboards/converter/a1200/miss1200/config.h @@ -0,0 +1,62 @@ +/* +Copyright 2021 8bits4ever + +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 . +*/ + +#pragma once + +#include "config_common.h" + +/* USB Device descriptor parameter */ +#define VENDOR_ID 0xFFFF +#define PRODUCT_ID 0x0000 +#define DEVICE_VER 0x0001 +#define MANUFACTURER 8bits4ever +#define PRODUCT MiSS-1200 + +/* key matrix size */ +#define MATRIX_ROWS 8 +#define MATRIX_COLS 16 + +/* + * Keyboard Matrix Assignments + * + * Change this to how you wired your keyboard + * COLS: AVR pins used for columns, left to right + * ROWS: AVR pins used for rows, top to bottom + * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) + * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) + * +*/ +#define MATRIX_ROW_PINS { F7, F6, F5, F4, F1, F0, B1, B3 } +#define MATRIX_COL_PINS { D0, D1, C7, D6, B7, B6, B5, B4, E6, D7, C6, D4, B2, D5, D3, D2 } +#define UNUSED_PINS + +/* COL2ROW, ROW2COL*/ +#define DIODE_DIRECTION ROW2COL + +#define LED_CAPS_LOCK_PIN B0 +#define LED_PIN_ON_STATE 0 + +/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ +#define DEBOUNCE 5 + + +/* disable action features */ +//#define NO_ACTION_LAYER +//#define NO_ACTION_TAPPING +//#define NO_ACTION_ONESHOT +//#define NO_ACTION_MACRO +//#define NO_ACTION_FUNCTION diff --git a/keyboards/converter/a1200/miss1200/rules.mk b/keyboards/converter/a1200/miss1200/rules.mk new file mode 100644 index 000000000000..aa06ad50ad04 --- /dev/null +++ b/keyboards/converter/a1200/miss1200/rules.mk @@ -0,0 +1,22 @@ +# MCU name +MCU = atmega32u4 + +# Bootloader selection +BOOTLOADER = atmel-dfu + +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration +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 +# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE +SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend +# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work +NKRO_ENABLE = yes # USB Nkey Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow +BLUETOOTH_ENABLE = no # Enable Bluetooth +AUDIO_ENABLE = no # Audio output From 8ff02de35673ee7b98b4c13322924540b5629985 Mon Sep 17 00:00:00 2001 From: 8bits4ever <87928173+8bits4ever@users.noreply.github.com> Date: Thu, 12 Aug 2021 15:06:23 +0200 Subject: [PATCH 5/7] Delete dummy --- keyboards/converter/a1200/miss1200/dummy | 1 - 1 file changed, 1 deletion(-) delete mode 100644 keyboards/converter/a1200/miss1200/dummy diff --git a/keyboards/converter/a1200/miss1200/dummy b/keyboards/converter/a1200/miss1200/dummy deleted file mode 100644 index 8b137891791f..000000000000 --- a/keyboards/converter/a1200/miss1200/dummy +++ /dev/null @@ -1 +0,0 @@ - From b99a73379cfb5dcbe99798c568f0a0d89f2deae5 Mon Sep 17 00:00:00 2001 From: 8bits4ever <87928173+8bits4ever@users.noreply.github.com> Date: Thu, 12 Aug 2021 15:07:53 +0200 Subject: [PATCH 6/7] Update readme.md --- keyboards/converter/a1200/readme.md | 32 +++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/keyboards/converter/a1200/readme.md b/keyboards/converter/a1200/readme.md index 927e0805f731..96c36b6207aa 100644 --- a/keyboards/converter/a1200/readme.md +++ b/keyboards/converter/a1200/readme.md @@ -1,13 +1,16 @@ # Amiga 1200 Keyboard Converter Modification of the Model-M 101 membrane adapter (converter/modelm101) to work with Amiga 1200 keyboard (and possibly Amiga 500/600 too). +The adapter allows using the original Amiga keyboard as a USB input device, either with a desktop PC or a R-Pi/FPGA board hosted inside the Amiga case. -A small PCB adapter is needed for connecting the keyboard membrane to the Teensy 2.0++ board. A very simple example of such a board can be seen here: +Available for two micros: AT90USB1286 (Teensy 2++ board), and ATmega32u4 (MiSS-1200 FPGA board). + +A small PCB adapter is needed for connecting the keyboard membrane to the Teensy 2.0++ board. A very simple example of such a board is available here: https://github.com/8bits4ever/A1200-Keyboard-Adapter -This adapter is meant to allow using the original Amiga keyboard as a USB input device, either with a desktop PC or a R-Pi/FPGA board hosted inside the Amiga case. +The MiSS-1200 FPGA board features a dedicated connector for the Amiga 1200 membrane keyboard. -Files have been modified in accordance to fit Amiga keyboard layout and features. A second layer has been implemented (momentary toggle "Help" key) to access unexistent keys (like F11 and F12). This is a work in progress. +Files have been modified in accordance to the Amiga keyboard layout and features. A second layer has been implemented (momentary toggle "Help" key) to access unexistent keys (like F11 and F12). This is a work in progress. Pins of the Teensy board you should use by default: @@ -22,14 +25,31 @@ Status LEDs: CapsLock +5V Pins: B6 5V ``` +Pins assignment MiSS-1200 board (ATmega32u4): +``` +Columns: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 +Pins: D0 D1 C7 D6 B7 B6 B5 B4 E6 D7 C6 D4 B2 D5 D3 D2 +-------------------------------------------------------- +Rows: 1 2 3 4 5 6 7 8 +Pins: F7 F6 F5 F4 F1 F0 B1 B3 +-------------------------------------------------------- +Status LEDs: CapsLock +5V +Pins: B0 5V +``` + * Keyboard Maintainer: [8bits4ever](https://github.com/8bits4ever) -* Hardware Supported: Teensy 2.0++ board by PJRC +* Hardware Supported: Teensy 2.0++ board by PJRC, MiSS-1200 FPGA by 8bits4ever * Hardware Availability: https://www.pjrc.com/store/teensypp.html -For first time flashing use the reset button on the Teensy board enter in bootloader mode. Once the board is flashed you can use "HELP"+"R" on the Amiga keyboard for the same purpose. +For first time flashing use the reset button to enter in bootloader mode. Once the board is flashed you can use "HELP"+"R" on the Amiga keyboard for reflashing. Make example for this keyboard (after setting up your build environment): - make converter/a1200:default + make converter/a1200/teensy2pp:default + +Or: + + make converter/a1200/miss1200: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). From 1c39206fa8eccc27f9eb9b154dcfb78b27ed9e30 Mon Sep 17 00:00:00 2001 From: 8bits4ever <87928173+8bits4ever@users.noreply.github.com> Date: Tue, 24 Aug 2021 12:04:58 +0200 Subject: [PATCH 7/7] Update info.json --- keyboards/converter/a1200/info.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/converter/a1200/info.json b/keyboards/converter/a1200/info.json index 03e39b757972..e4b443daaa95 100644 --- a/keyboards/converter/a1200/info.json +++ b/keyboards/converter/a1200/info.json @@ -4,7 +4,7 @@ "width": 22.5, "height": 6.5, "layouts": { - "LAYOUT_default": { + "LAYOUT": { "layout": [ {"label":"Esc", "x":0, "y":0}, {"label":"F1", "x":2, "y":0},