diff options
| author | tmk <nobody@nowhere> | 2012-02-14 12:00:29 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2012-02-14 12:00:29 +0900 |
| commit | 0a04817304bad630e8d3ba74675646b681827e7e (patch) | |
| tree | 19fb74c2109ad414224fe0cb8b01370686b3acc8 /terminal_usb | |
| parent | 9e0c6247c9cbc5c4c7a4ae6b1e2adc6a7a332c49 (diff) | |
| download | qmk_firmware-0a04817304bad630e8d3ba74675646b681827e7e.tar.gz qmk_firmware-0a04817304bad630e8d3ba74675646b681827e7e.zip | |
Fixed keymap of IBM Terminal keyboard converter.
Diffstat (limited to 'terminal_usb')
| -rw-r--r-- | terminal_usb/README | 25 | ||||
| -rw-r--r-- | terminal_usb/keymap_102.c | 2 | ||||
| -rw-r--r-- | terminal_usb/keymap_122.c | 4 |
3 files changed, 22 insertions, 9 deletions
diff --git a/terminal_usb/README b/terminal_usb/README index 454f0ec18..1ce49f33d 100644 --- a/terminal_usb/README +++ b/terminal_usb/README | |||
| @@ -1,34 +1,47 @@ | |||
| 1 | PS/2 to USB keyboard converter for IBM terminal keyboard | 1 | PS/2 to USB keyboard converter for IBM terminal keyboard |
| 2 | ========================================================= | 2 | ========================================================= |
| 3 | It supports PS/2 Scan Code Set 3 and runs on Teensy, Teensy++ and boards withATMega32u4/AT90USB. | 3 | It supports PS/2 Scan Code Set 3 and runs on Teensy, Teensy++ and boards withATMega32u4/AT90USB. |
| 4 | I tested the converter only on Teensy with 1392595(102keys terminal keyboard), though, I think it will also work with 122keys boards. | 4 | I tested the converter only on Teensy with 1392595(102keys terminal keyboard), |
| 5 | though, I think it will also work with 122keys boards. | ||
| 5 | 6 | ||
| 7 | http://geekhack.org/showwiki.php?title=Island:27272 | ||
| 6 | 8 | ||
| 7 | 9 | ||
| 8 | CONNECTION | 10 | CONNECTION |
| 9 | ---------- | 11 | ---------- |
| 10 | Data: PD0 | 12 | Data: PD0 |
| 11 | Clock: PD1 | 13 | Clock: PD1 |
| 14 | VCC and GND, of course. | ||
| 12 | 15 | ||
| 13 | It is same as Soarer's converter pin configuration. | 16 | It is the same as Soarer's converter pin configuration. |
| 14 | http://geekhack.org/showwiki.php?title=Island:17458 | 17 | See RESOURCE for keyboard connector pin assign. |
| 15 | 18 | ||
| 16 | 19 | ||
| 17 | 20 | ||
| 18 | BUILD | 21 | BUILD |
| 19 | ----- | 22 | ----- |
| 23 | Get source: | ||
| 24 | $ git clone https://github.com/tmk/tmk_keyboard.git | ||
| 25 | $ cd terminal_usb | ||
| 26 | |||
| 20 | For 102keys: | 27 | For 102keys: |
| 21 | $ make -f Makefile.102_pjrc | 28 | $ make -f Makefile.102_pjrc |
| 22 | 29 | ||
| 23 | For 122keys(not tested): | 30 | For 122keys(not tested): |
| 24 | $ make -f Makefile.122_pjrc | 31 | $ make -f Makefile.122_pjrc |
| 25 | 32 | ||
| 26 | 33 | I used WinAVR 20100110 to develop and build. | |
| 27 | I used WinAVR 20100110 to develop. | ||
| 28 | 34 | ||
| 29 | 35 | ||
| 30 | 36 | ||
| 31 | RESOURCE | 37 | RESOURCE |
| 32 | -------- | 38 | -------- |
| 39 | Soarer's Converter: http://geekhack.org/showwiki.php?title=Island:17458 | ||
| 40 | 102keys(1392595): http://geekhack.org/showthread.php?10737-What-Can-I-Do-With-a-Terminal-Model-M | ||
| 41 | 122keys(1390876): http://www.seasip.info/VintagePC/ibm_1390876.html | ||
| 42 | KbdBabel: http://www.kbdbabel.org/ | ||
| 43 | RJ45 Connector: http://www.kbdbabel.org/conn/kbd_connector_ibmterm.png | ||
| 44 | DIN Connector: http://www.kbdbabel.org/conn/kbd_connector_ibm3179_318x_319x.png | ||
| 33 | WinAVR: http://winavr.sourceforge.net/ | 45 | WinAVR: http://winavr.sourceforge.net/ |
| 34 | 1392595: http://geekhack.org/showthread.php?10737-What-Can-I-Do-With-a-Terminal-Model-M | 46 | |
| 47 | EOF | ||
diff --git a/terminal_usb/keymap_102.c b/terminal_usb/keymap_102.c index e022acd21..430570c47 100644 --- a/terminal_usb/keymap_102.c +++ b/terminal_usb/keymap_102.c | |||
| @@ -62,7 +62,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 62 | { KB_NO, KB_##K49, KB_##K4A, KB_##K4B, KB_##K4C, KB_##K4D, KB_##K4E, KB_##K4F }, \ | 62 | { KB_NO, KB_##K49, KB_##K4A, KB_##K4B, KB_##K4C, KB_##K4D, KB_##K4E, KB_##K4F }, \ |
| 63 | { KB_NO, KB_##K51, KB_##K52, KB_##K53, KB_##K54, KB_##K55, KB_##K56, KB_##K57 }, \ | 63 | { KB_NO, KB_##K51, KB_##K52, KB_##K53, KB_##K54, KB_##K55, KB_##K56, KB_##K57 }, \ |
| 64 | { KB_##K58, KB_##K59, KB_##K5A, KB_##K5B, KB_##K5C, KB_##K5D, KB_##K5E, KB_##K5F }, \ | 64 | { KB_##K58, KB_##K59, KB_##K5A, KB_##K5B, KB_##K5C, KB_##K5D, KB_##K5E, KB_##K5F }, \ |
| 65 | { KB_NO, KB_##K61, KB_##K62, KB_##K63, KB_##K64, KB_##K65, KB_##K66, KB_##K67 }, \ | 65 | { KB_##K60, KB_##K61, KB_##K62, KB_##K63, KB_##K64, KB_##K65, KB_##K66, KB_##K67 }, \ |
| 66 | { KB_##K68, KB_##K69, KB_##K6A, KB_##K6B, KB_##K6C, KB_##K6D, KB_##K6E, KB_##K6F }, \ | 66 | { KB_##K68, KB_##K69, KB_##K6A, KB_##K6B, KB_##K6C, KB_##K6D, KB_##K6E, KB_##K6F }, \ |
| 67 | { KB_##K70, KB_##K71, KB_##K72, KB_##K73, KB_##K74, KB_##K75, KB_##K76, KB_##K77 }, \ | 67 | { KB_##K70, KB_##K71, KB_##K72, KB_##K73, KB_##K74, KB_##K75, KB_##K76, KB_##K77 }, \ |
| 68 | { KB_##K78, KB_##K79, KB_##K7A, KB_##K7B, KB_##K7C, KB_##K7D, KB_##K7E, KB_NO }, \ | 68 | { KB_##K78, KB_##K79, KB_##K7A, KB_##K7B, KB_##K7C, KB_##K7D, KB_##K7E, KB_NO }, \ |
diff --git a/terminal_usb/keymap_122.c b/terminal_usb/keymap_122.c index 8db09ee73..7a2168122 100644 --- a/terminal_usb/keymap_122.c +++ b/terminal_usb/keymap_122.c | |||
| @@ -120,8 +120,8 @@ static const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 120 | 120 | ||
| 121 | PSCR,ESC, GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, JYEN,BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS, | 121 | PSCR,ESC, GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, JYEN,BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS, |
| 122 | SLCK,INT4, TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, BSLS, DEL, END, PGDN, P7, P8, P9, PPLS, | 122 | SLCK,INT4, TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC, BSLS, DEL, END, PGDN, P7, P8, P9, PPLS, |
| 123 | PAUS,INT5, CAPS,A, S, D, F, G, H, J, K, L, FN0, QUOT, NUHS,ENT, UP, P4, P5, P6, PCMM, | 123 | PAUS,INT5, CAPS,A, S, D, F, G, H, J, K, L, SCLN,QUOT, NUHS,ENT, UP, P4, P5, P6, PCMM, |
| 124 | APP, INT6, LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, FN1, RO, FN2, LEFT,INT2,RGHT, P1, P2, P3, PENT, | 124 | APP, INT6, LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RO, RSFT, LEFT,INT2,RGHT, P1, P2, P3, PENT, |
| 125 | RGUI,LGUI, LCTL, LALT, SPC, RALT, RCTL, DOWN, NO, P0, PDOT,NO | 125 | RGUI,LGUI, LCTL, LALT, SPC, RALT, RCTL, DOWN, NO, P0, PDOT,NO |
| 126 | ), | 126 | ), |
| 127 | }; | 127 | }; |
