summaryrefslogtreecommitdiffstats
path: root/keyboards/converter
diff options
context:
space:
mode:
authorAlex Ong <the.onga@gmail.com>2019-01-04 19:39:14 +1100
committerAlex Ong <the.onga@gmail.com>2019-01-04 19:39:14 +1100
commit47c91fc7f75ae0a477e55b687aa0fc30da0a283c (patch)
tree65ad39452748ff2e6d4a83ce54ede6ca22c9ada9 /keyboards/converter
parentac9b88e8ccbbf38762871504cd827ff0d941c426 (diff)
parent563ce3f225d981ce460c12ca5130dfe47af41df0 (diff)
Merge branch 'master' of https://github.com/qmk/qmk_firmware
Diffstat (limited to 'keyboards/converter')
-rw-r--r--keyboards/converter/adb_usb/README.md83
-rw-r--r--keyboards/converter/adb_usb/adb_usb.c3
-rw-r--r--keyboards/converter/adb_usb/adb_usb.h109
-rw-r--r--keyboards/converter/adb_usb/config.h43
-rw-r--r--keyboards/converter/adb_usb/info.json204
-rw-r--r--keyboards/converter/adb_usb/keymaps/13bit/keymap.c26
-rw-r--r--keyboards/converter/adb_usb/keymaps/default/keymap.c13
-rw-r--r--keyboards/converter/adb_usb/led.c27
-rw-r--r--keyboards/converter/adb_usb/led.h43
-rw-r--r--keyboards/converter/adb_usb/matrix.c267
-rw-r--r--keyboards/converter/adb_usb/rules.mk73
-rw-r--r--keyboards/converter/hp_46010a/config.h35
-rw-r--r--keyboards/converter/hp_46010a/hp_46010a.c3
-rw-r--r--keyboards/converter/hp_46010a/hp_46010a.h60
-rw-r--r--keyboards/converter/hp_46010a/info.json121
-rw-r--r--keyboards/converter/hp_46010a/keymaps/default/keymap.c45
-rw-r--r--keyboards/converter/hp_46010a/matrix.c244
-rw-r--r--keyboards/converter/hp_46010a/readme.md52
-rw-r--r--keyboards/converter/hp_46010a/rules.mk72
-rw-r--r--keyboards/converter/ibm_5291/config.h42
-rw-r--r--keyboards/converter/ibm_5291/ibm_5291.c3
-rw-r--r--keyboards/converter/ibm_5291/ibm_5291.h69
-rw-r--r--keyboards/converter/ibm_5291/info.json97
-rw-r--r--keyboards/converter/ibm_5291/keymaps/default/keymap.c233
-rw-r--r--keyboards/converter/ibm_5291/keymaps/kbdbabel_doc_ibm5291_kbd.pdfbin0 -> 13054 bytes
-rw-r--r--keyboards/converter/ibm_5291/matrix.c284
-rw-r--r--keyboards/converter/ibm_5291/matrix.csv96
-rw-r--r--keyboards/converter/ibm_5291/readme.md72
-rw-r--r--keyboards/converter/ibm_5291/rules.mk72
-rw-r--r--keyboards/converter/ibm_terminal/README.md40
-rw-r--r--keyboards/converter/ibm_terminal/ibm_terminal.h10
-rw-r--r--keyboards/converter/ibm_terminal/info.json245
-rw-r--r--keyboards/converter/ibm_terminal/keymaps/default/config.h7
-rw-r--r--keyboards/converter/ibm_terminal/keymaps/default/keymap.c12
-rw-r--r--keyboards/converter/ibm_terminal/keymaps/default/rules.mk2
-rw-r--r--keyboards/converter/ibm_terminal/keymaps/priyadi/config.h7
-rw-r--r--keyboards/converter/ibm_terminal/keymaps/priyadi/keymap.c28
-rw-r--r--keyboards/converter/ibm_terminal/keymaps/priyadi/rules.mk2
-rw-r--r--keyboards/converter/ibm_terminal/readme.md39
-rw-r--r--keyboards/converter/ibm_terminal/rules.mk2
-rw-r--r--keyboards/converter/m0110_usb/README.md18
-rw-r--r--keyboards/converter/m0110_usb/info.json172
-rw-r--r--keyboards/converter/palm_usb/config.h120
-rw-r--r--keyboards/converter/palm_usb/matrix.c398
-rw-r--r--keyboards/converter/palm_usb/readme.md96
-rw-r--r--keyboards/converter/palm_usb/rules.mk46
-rw-r--r--keyboards/converter/palm_usb/stowaway/info.json83
-rw-r--r--keyboards/converter/palm_usb/stowaway/keymaps/default/keymap.c59
-rw-r--r--keyboards/converter/palm_usb/stowaway/rules.mk0
-rw-r--r--keyboards/converter/palm_usb/stowaway/stowaway.h53
-rw-r--r--keyboards/converter/sun_usb/command_extra.c64
-rw-r--r--keyboards/converter/sun_usb/config.h88
-rw-r--r--keyboards/converter/sun_usb/led.c32
-rw-r--r--keyboards/converter/sun_usb/matrix.c197
-rw-r--r--keyboards/converter/sun_usb/readme.md89
-rw-r--r--keyboards/converter/sun_usb/rules.mk44
-rw-r--r--keyboards/converter/sun_usb/type3/info.json109
-rw-r--r--keyboards/converter/sun_usb/type3/keymaps/default/keymap.c29
-rw-r--r--keyboards/converter/sun_usb/type3/rules.mk0
-rw-r--r--keyboards/converter/sun_usb/type3/type3.h66
-rw-r--r--keyboards/converter/sun_usb/type5/info.json381
-rw-r--r--keyboards/converter/sun_usb/type5/keymaps/default/keymap.c30
-rw-r--r--keyboards/converter/sun_usb/type5/keymaps/sigma/keymap.c31
-rw-r--r--keyboards/converter/sun_usb/type5/keymaps/sigma/readme.md12
-rw-r--r--keyboards/converter/sun_usb/type5/keymaps/sigma/rules.mk1
-rw-r--r--keyboards/converter/sun_usb/type5/rules.mk0
-rw-r--r--keyboards/converter/sun_usb/type5/type5.h148
-rw-r--r--keyboards/converter/usb_usb/README.md4
-rw-r--r--keyboards/converter/usb_usb/ble/config.h10
-rw-r--r--keyboards/converter/usb_usb/ble/rules.mk20
-rw-r--r--keyboards/converter/usb_usb/info.json485
-rw-r--r--keyboards/converter/usb_usb/keymap.c288
-rw-r--r--keyboards/converter/usb_usb/keymaps/ble/keymap.c18
-rw-r--r--keyboards/converter/usb_usb/keymaps/coloneljesus/keymap.c44
-rw-r--r--keyboards/converter/usb_usb/keymaps/default/keymap.c22
-rw-r--r--keyboards/converter/usb_usb/usb_usb.h56
-rw-r--r--keyboards/converter/xt_usb/README.md17
-rw-r--r--keyboards/converter/xt_usb/config.h78
-rw-r--r--keyboards/converter/xt_usb/info.json229
-rw-r--r--keyboards/converter/xt_usb/keymaps/default/config.h1
-rw-r--r--keyboards/converter/xt_usb/keymaps/default/keymap.c55
-rw-r--r--keyboards/converter/xt_usb/led.c22
-rw-r--r--keyboards/converter/xt_usb/matrix.c309
-rw-r--r--keyboards/converter/xt_usb/rules.mk62
-rw-r--r--keyboards/converter/xt_usb/xt_usb.c1
-rw-r--r--keyboards/converter/xt_usb/xt_usb.h132
86 files changed, 6627 insertions, 477 deletions
diff --git a/keyboards/converter/adb_usb/README.md b/keyboards/converter/adb_usb/README.md
new file mode 100644
index 0000000000..ed71750080
--- /dev/null
+++ b/keyboards/converter/adb_usb/README.md
@@ -0,0 +1,83 @@
+ADB-to USB Keyboard Converter
+=============================
+This firmware converts Apple Desktop Bus (ADB) keyboard protocol to USB so that you can use an ADB keyboard on a modern computer. It works on the PJRC Teensy 2.0 and other USB AVR MCUs (ATMega32U4, AT90USB64/128, etc) and needs at least 10KB of flash memory.
+
+
+This is a port of the TMK ADB-to-USB converter to QMK. For information on QMK, please consult the following:
+https://github.com/qmk/qmk_firmware
+https://docs.qmk.fm
+
+
+Wiring
+------
+Connect the VCC, GND, and DATA lines of the ADB keyboard to the controller (Teensy 2.0 or similar). By default the DATA line uses port PD0. The Power SW line is unused by the converter.
+
+ADB female socket from the front:
+
+ ,--_--.
+ / o4 3o \ 1: DATA
+ | o2 1o | 2: Power SW
+ - === - 3: VCC
+ `-___-' 4: GND
+
+This converter uses AVR's internal pull-up, but it seems to be too weak, in particular when you want to use a long or coiled cable. Using an external pull-up resistor (1K-10K Ohm) between the DATA and VCC lines is strongly recommended.
+
+Pull-up resistor:
+
+ Keyboard Converter
+ ,------.
+ 5V------+------|VCC |
+ | | |
+ [R] | |
+ | | |
+ Signal--+------|PD0 |
+ | |
+ GND------------|GND |
+ `------'
+ R: 1K Ohm resistor
+
+
+Define following macros for ADB connection in config.h if you use other than port PD0.
+
+ ADB_PORT, ADB_PIN, ADB_DDR, ADB_DATA_BIT
+
+
+Building the Firmware
+------------------------------------------
+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).
+
+
+Keymap
+------
+To build the default keymap run this command:
+
+ $ make converter/adb_usb:default
+
+You may add your own keymap to the converter/adb_usb/keymaps directory, as you would with any other QMK-powered keyboard.
+
+To build your custom keymap, change the build command to:
+
+ $ make converter/adb_usb:my_keymap
+
+Where 'my_keymap' is the name of your custom keymap directory.
+
+
+Locking Caps Lock
+----------------
+Many old ADB keyboards use a locking switch for the caps lock key. This converter supports the locking caps lock key by default.
+
+
+Notes
+-----
+Non-extended ADB keyboards make no distinction between the left and right modifiers,
+i.e. the keycode for the left modifier will be sent even if the right modifier
+
+The Apple Extended Keyboard and Apple Extended Keyboard II can differentiate between the left and right modifiers except for the GUI key (Windows/Command).
+
+Most ADB keyboards have no diodes in its matrix so they are not NKRO,
+though the ADB protocol itself supports it. See protocol/adb.c for more info.
+
+
+QMK Port Changelog
+---------
+- 2018/09/16 - Initial release.
diff --git a/keyboards/converter/adb_usb/adb_usb.c b/keyboards/converter/adb_usb/adb_usb.c
new file mode 100644
index 0000000000..7026d62751
--- /dev/null
+++ b/keyboards/converter/adb_usb/adb_usb.c
@@ -0,0 +1,3 @@
+#include "adb_usb.h"
+#include <avr/io.h>
+#include "quantum.h"
diff --git a/keyboards/converter/adb_usb/adb_usb.h b/keyboards/converter/adb_usb/adb_usb.h
new file mode 100644
index 0000000000..8691adcc65
--- /dev/null
+++ b/keyboards/converter/adb_usb/adb_usb.h
@@ -0,0 +1,109 @@
+/*
+Copyright 2011,2012,2013 Jun Wako <wakojun@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/>.
+
+Ported to QMK by Peter Roe <pete@13bit.me>
+*/
+
+#ifndef ADB_USB_H
+#define ADB_USB_H
+
+#include "quantum.h"
+
+/* M0115/M3501 Apple Extended Keyboard ANSI
+ * ,---. ,---------------. ,---------------. ,---------------. ,-----------. ,---.
+ * |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau| |Pwr|
+ * `---' `---------------' `---------------' `---------------' `-----------' `---'
+ * ,-----------------------------------------------------------. ,-----------. ,---------------.
+ * | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backspa| |Ins|Hom|PgU| |NmL| =| /| *|
+ * |-----------------------------------------------------------| |-----------| |---------------|
+ * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| |Del|End|PgD| | 7| 8| 9| -|
+ * |-----------------------------------------------------------| `-----------' |---------------|
+ * |CapsLo| A| S| D| F| G| H| J| K| L| ;| '|Return | | 4| 5| 6| +|
+ * |-----------------------------------------------------------| ,---. |---------------|
+ * |Shift | Z| X| C| V| B| N| M| ,| ,| /|Shift | |Up | | 1| 2| 3| |
+ * |-----------------------------------------------------------| ,-----------. |-----------|Ent|
+ * |Ctrl |Opt |Cmd | Space | |Opt |Ctrl | |Lef|Dow|Rig| | 0| .| |
+ * `-----------------------------------------------------------' `-----------' `---------------'
+ */
+#define LAYOUT_ext_ansi( \
+ K35, K7A,K78,K63,K76,K60,K61,K62,K64,K65,K6D,K67,K6F, K69,K6B,K71, K7F, \
+ K32,K12,K13,K14,K15,K17,K16,K1A,K1C,K19,K1D,K1B,K18,K33, K72,K73,K74, K47,K51,K4B,K43, \
+ K30,K0C,K0D,K0E,K0F,K11,K10,K20,K22,K1F,K23,K21,K1E,K2A, K75,K77,K79, K59,K5B,K5C,K4E, \
+ K39,K00,K01,K02,K03,K05,K04,K26,K28,K25,K29,K27, K24, K56,K57,K58,K45, \
+ K38,K06,K07,K08,K09,K0B,K2D,K2E,K2B,K2F,K2C, K7B, K3E, K53,K54,K55, \
+ K36,K3A,K37, K31, K7C,K7D, K3B,K3D,K3C, K52, K41,K4C \
+) { \
+ { K00, K01, K02, K03, K04, K05, K06, K07 }, \
+ { K08, K09, KC_NO, K0B, K0C, K0D, K0E, K0F }, \
+ { K10, K11, K12, K13, K14, K15, K16, K17 }, \
+ { K18, K19, K1A, K1B, K1C, K1D, K1E, K1F }, \
+ { K20, K21, K22, K23, K24, K25, K26, K27 }, \
+ { K28, K29, K2A, K2B, K2C, K2D, K2E, K2F }, \
+ { K30, K31, K32, K33, KC_NO, K35, K36, K37 }, \
+ { K38, K39, K3A, K3B, K3C, K3D, K3E, KC_NO, }, \
+ { KC_NO, K41, KC_NO, K43, KC_NO, K45, KC_NO, K47 }, \
+ { KC_NO, KC_NO, KC_NO, K4B, K4C, KC_NO, K4E, KC_NO, }, \
+ { KC_NO, KC_NO, K52, K53, K54, K55, K56, K57 }, \
+ { K58, K59, KC_NO, K5B, K5C, KC_NO, KC_NO, KC_NO, }, \
+ { K60, K61, K62, K63, K64, K65, KC_NO, K67 }, \
+ { KC_NO, K69, KC_NO, K6B, KC_NO, K6D, KC_NO, K6F }, \
+ { KC_NO, K71, K72, K73, K74, K75, K76, K77 }, \
+ { K78, K79, K7A, K7B, K7C, K7D, KC_NO, K7F } \
+}
+
+/* M0116 Apple Standard Keyboard ANSI
+ * +-------+
+ * | power |
+ * +-------+
+ * +---+---+---+---+---+---+---+---+---+---+---+---+---+-----+ +---+---+---+---+
+ * |esc| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | bks | |clr| = | / | * |
+ * +---------------------------------------------------------+ +---+---+---+---+
+ * | tab | q | w | e | r | t | y | u | i | o | p | [ | ] | | | 7 | 8 | 9 | + |
+ * +-----------------------------------------------------+ | +---+---+---+---+
+ * | ctrl | a | s | d | f | g | h | j | k | l | ; | ' |return| | 4 | 5 | 6 | - |
+ * +---------------------------------------------------------+ +---+---+---+---+
+ * | shift | z | x | c | v | b | n | m | , | . | / | shift | | 1 | 2 | 3 | |
+ * +---------------------------------------------------------+ +-------+---|ent|
+ * |cap|opt|comnd| ` | | \ |lef|rig|dwn|up | | 0 | . | |
+ * +---------------------------------------------------------+ +-------+---+---+
+ */
+#define LAYOUT_m0116_ansi( \
+ K7F, \
+ K35,K12,K13,K14,K15,K17,K16,K1A,K1C,K19,K1D,K1B,K18,K33, K47,K51,K4B,K43, \
+ K30,K0C,K0D,K0E,K0F,K11,K10,K20,K22,K1F,K23,K21,K1E, K59,K5B,K5C,K45, \
+ K36,K00,K01,K02,K03,K05,K04,K26,K28,K25,K29,K27, K24, K56,K57,K58,K4E, \
+ K38,K06,K07,K08,K09,K0B,K2D,K2E,K2B,K2F,K2C, K7B, K53,K54,K55, \
+ K39,K3A,K37,K32, K31, K2A,K3B,K3C,K3D,K3E, K52, K41,K4C \
+) { \
+ { K00, K01, K02, K03, K04, K05, K06, K07 }, \
+ { K08, K09, KC_NO, K0B, K0C, K0D, K0E, K0F }, \
+ { K10, K11, K12, K13, K14, K15, K16, K17 }, \
+ { K18, K19, K1A, K1B, K1C, K1D, K1E, K1F }, \
+ { K20, K21, K22, K23, K24, K25, K26, K27 }, \
+ { K28, K29, K2A, K2B, K2C, K2D, K2E, K2F }, \
+ { K30, K31, K32, K33, KC_NO, K35, K36, K37 }, \
+ { K38, K39, K3A, K3B, K3C, K3D, K3E, KC_NO }, \
+ { KC_NO, K41, KC_NO, K43, KC_NO, K45, KC_NO, K47 }, \
+ { KC_NO, KC_NO, KC_NO, K4B, K4C, KC_NO, K4E, KC_NO }, \
+ { KC_NO, K51, K52, K53, K54, K55, K56, K57 }, \
+ { K58, K59, KC_NO, K5B, K5C, KC_NO, KC_NO, KC_NO }, \
+ { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
+ { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
+ { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
+ { KC_NO, KC_NO, KC_NO, K7B, KC_NO, KC_NO, KC_NO, K7F } \
+}
+
+#endif
diff --git a/keyboards/converter/adb_usb/config.h b/keyboards/converter/adb_usb/config.h
new file mode 100644
index 0000000000..a5845a0290
--- /dev/null
+++ b/keyboards/converter/adb_usb/config.h
@@ -0,0 +1,43 @@
+/*
+Copyright 2011 Jun Wako <wakojun@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/>.
+
+Ported to QMK by Peter Roe <pete@13bit.me>
+*/
+
+#pragma once
+
+#define VENDOR_ID 0xFEED
+#define PRODUCT_ID 0x0ADB
+#define DEVICE_VER 0x0101
+#define MANUFACTURER QMK
+#define PRODUCT ADB keyboard converter
+#define DESCRIPTION Convert ADB keyboard to USB
+
+/* matrix size */
+#define MATRIX_ROWS 16 // keycode bit: 3-0
+#define MATRIX_COLS 8 // keycode bit: 6-4
+
+/* 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
+
+/* ADB port setting */
+#define ADB_PORT PORTD
+#define ADB_PIN PIND
+#define ADB_DDR DDRD
+#define ADB_DATA_BIT 0
+//#define ADB_PSW_BIT 1 // optional
diff --git a/keyboards/converter/adb_usb/info.json b/keyboards/converter/adb_usb/info.json
new file mode 100644
index 0000000000..e06f9c1adb
--- /dev/null
+++ b/keyboards/converter/adb_usb/info.json
@@ -0,0 +1,204 @@
+{
+ "keyboard_name": "ADB to USB Keyboard Converter",
+ "url": "",
+ "maintainer": "qmk",
+ "width": 22.5,
+ "height": 7,
+ "layouts": {
+ "LAYOUT_ext_ansi": {
+ "layout": [
+ {"label":"Escape", "x":0, "y":0},
+ {"label":"F1", "x":2, "y":0},
+ {"label":"F2", "x":3, "y":0},
+ {"label":"F3", "x":4, "y":0},
+ {"label":"F4", "x":5, "y":0},
+ {"label":"F5", "x":6.5, "y":0},
+ {"label":"F6", "x":7.5, "y":0},
+ {"label":"F7", "x":8.5, "y":0},
+ {"label":"F8", "x":9.5, "y":0},
+ {"label":"F9", "x":11, "y":0},
+ {"label":"F10", "x":12, "y":0