diff options
author | 8bits4ever <87928173+8bits4ever@users.noreply.github.com> | 2021-08-13 20:40:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-13 11:40:50 -0700 |
commit | 325009587a289fba3e554a6d56e2d5fedbe8fbb5 (patch) | |
tree | 3ab576ac951cc4ba617239ff3f9186d0891602da /keyboards | |
parent | 670603590ed1f4f1563a74b80ff13ce5f8cd3a48 (diff) | |
download | qmk_firmware-325009587a289fba3e554a6d56e2d5fedbe8fbb5.tar.gz qmk_firmware-325009587a289fba3e554a6d56e2d5fedbe8fbb5.zip |
[converter/a1200] Added support for ATmega32u4 (#13974)
Diffstat (limited to 'keyboards')
-rw-r--r-- | keyboards/converter/a1200/miss1200/config.h | 62 | ||||
-rw-r--r-- | keyboards/converter/a1200/miss1200/rules.mk | 22 | ||||
-rw-r--r-- | keyboards/converter/a1200/readme.md | 32 | ||||
-rw-r--r-- | keyboards/converter/a1200/teensy2pp/config.h (renamed from keyboards/converter/a1200/config.h) | 0 | ||||
-rw-r--r-- | keyboards/converter/a1200/teensy2pp/rules.mk (renamed from keyboards/converter/a1200/rules.mk) | 0 |
5 files changed, 110 insertions, 6 deletions
diff --git a/keyboards/converter/a1200/miss1200/config.h b/keyboards/converter/a1200/miss1200/config.h new file mode 100644 index 000000000..5a6c67965 --- /dev/null +++ b/keyboards/converter/a1200/miss1200/config.h | |||
@@ -0,0 +1,62 @@ | |||
1 | /* | ||
2 | Copyright 2021 8bits4ever | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | #include "config_common.h" | ||
21 | |||
22 | /* USB Device descriptor parameter */ | ||
23 | #define VENDOR_ID 0xFFFF | ||
24 | #define PRODUCT_ID 0x0000 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER 8bits4ever | ||
27 | #define PRODUCT MiSS-1200 | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 8 | ||
31 | #define MATRIX_COLS 16 | ||
32 | |||
33 | /* | ||
34 | * Keyboard Matrix Assignments | ||
35 | * | ||
36 | * Change this to how you wired your keyboard | ||
37 | * COLS: AVR pins used for columns, left to right | ||
38 | * ROWS: AVR pins used for rows, top to bottom | ||
39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
41 | * | ||
42 | */ | ||
43 | #define MATRIX_ROW_PINS { F7, F6, F5, F4, F1, F0, B1, B3 } | ||
44 | #define MATRIX_COL_PINS { D0, D1, C7, D6, B7, B6, B5, B4, E6, D7, C6, D4, B2, D5, D3, D2 } | ||
45 | #define UNUSED_PINS | ||
46 | |||
47 | /* COL2ROW, ROW2COL*/ | ||
48 | #define DIODE_DIRECTION ROW2COL | ||
49 | |||
50 | #define LED_CAPS_LOCK_PIN B0 | ||
51 | #define LED_PIN_ON_STATE 0 | ||
52 | |||
53 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
54 | #define DEBOUNCE 5 | ||
55 | |||
56 | |||
57 | /* disable action features */ | ||
58 | //#define NO_ACTION_LAYER | ||
59 | //#define NO_ACTION_TAPPING | ||
60 | //#define NO_ACTION_ONESHOT | ||
61 | //#define NO_ACTION_MACRO | ||
62 | //#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 000000000..aa06ad50a --- /dev/null +++ b/keyboards/converter/a1200/miss1200/rules.mk | |||
@@ -0,0 +1,22 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
11 | MOUSEKEY_ENABLE = no # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
22 | AUDIO_ENABLE = no # Audio output | ||
diff --git a/keyboards/converter/a1200/readme.md b/keyboards/converter/a1200/readme.md index 927e0805f..96c36b620 100644 --- a/keyboards/converter/a1200/readme.md +++ b/keyboards/converter/a1200/readme.md | |||
@@ -1,13 +1,16 @@ | |||
1 | # Amiga 1200 Keyboard Converter | 1 | # Amiga 1200 Keyboard Converter |
2 | 2 | ||
3 | Modification of the Model-M 101 membrane adapter (converter/modelm101) to work with Amiga 1200 keyboard (and possibly Amiga 500/600 too). | 3 | Modification of the Model-M 101 membrane adapter (converter/modelm101) to work with Amiga 1200 keyboard (and possibly Amiga 500/600 too). |
4 | 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. | ||
4 | 5 | ||
5 | 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: | 6 | Available for two micros: AT90USB1286 (Teensy 2++ board), and ATmega32u4 (MiSS-1200 FPGA board). |
7 | |||
8 | 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: | ||
6 | https://github.com/8bits4ever/A1200-Keyboard-Adapter | 9 | https://github.com/8bits4ever/A1200-Keyboard-Adapter |
7 | 10 | ||
8 | 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. | 11 | The MiSS-1200 FPGA board features a dedicated connector for the Amiga 1200 membrane keyboard. |
9 | 12 | ||
10 | 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. | 13 | 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. |
11 | 14 | ||
12 | 15 | ||
13 | Pins of the Teensy board you should use by default: | 16 | Pins of the Teensy board you should use by default: |
@@ -22,14 +25,31 @@ Status LEDs: CapsLock +5V | |||
22 | Pins: B6 5V | 25 | Pins: B6 5V |
23 | ``` | 26 | ``` |
24 | 27 | ||
28 | Pins assignment MiSS-1200 board (ATmega32u4): | ||
29 | ``` | ||
30 | Columns: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ||
31 | Pins: D0 D1 C7 D6 B7 B6 B5 B4 E6 D7 C6 D4 B2 D5 D3 D2 | ||
32 | -------------------------------------------------------- | ||
33 | Rows: 1 2 3 4 5 6 7 8 | ||
34 | Pins: F7 F6 F5 F4 F1 F0 B1 B3 | ||
35 | -------------------------------------------------------- | ||
36 | Status LEDs: CapsLock +5V | ||
37 | Pins: B0 5V | ||
38 | ``` | ||
39 | |||
25 | * Keyboard Maintainer: [8bits4ever](https://github.com/8bits4ever) | 40 | * Keyboard Maintainer: [8bits4ever](https://github.com/8bits4ever) |
26 | * Hardware Supported: Teensy 2.0++ board by PJRC | 41 | * Hardware Supported: Teensy 2.0++ board by PJRC, MiSS-1200 FPGA by 8bits4ever |
27 | * Hardware Availability: https://www.pjrc.com/store/teensypp.html | 42 | * Hardware Availability: https://www.pjrc.com/store/teensypp.html |
28 | 43 | ||
29 | 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. | 44 | 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. |
30 | 45 | ||
31 | Make example for this keyboard (after setting up your build environment): | 46 | Make example for this keyboard (after setting up your build environment): |
32 | 47 | ||
33 | make converter/a1200:default | 48 | make converter/a1200/teensy2pp:default |
49 | |||
50 | Or: | ||
51 | |||
52 | make converter/a1200/miss1200:default | ||
53 | |||
34 | 54 | ||
35 | 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). | 55 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). |
diff --git a/keyboards/converter/a1200/config.h b/keyboards/converter/a1200/teensy2pp/config.h index 19e7ca9b9..19e7ca9b9 100644 --- a/keyboards/converter/a1200/config.h +++ b/keyboards/converter/a1200/teensy2pp/config.h | |||
diff --git a/keyboards/converter/a1200/rules.mk b/keyboards/converter/a1200/teensy2pp/rules.mk index 007e40f3b..007e40f3b 100644 --- a/keyboards/converter/a1200/rules.mk +++ b/keyboards/converter/a1200/teensy2pp/rules.mk | |||