diff --git a/converter/sun_usb/unimap_trans.h b/converter/sun_usb/unimap_trans.h index 22d3799055..8f56588864 100644 --- a/converter/sun_usb/unimap_trans.h +++ b/converter/sun_usb/unimap_trans.h @@ -92,6 +92,7 @@ const uint8_t PROGMEM unimap_trans[MATRIX_ROWS][MATRIX_COLS] = { * |-------| |-----------------------------------------------------------| .-----------. |-----------|Ent| * |Fnd|Cut| |Caps|Alt|Meta| | Space | | |Meta|Cmp|Alt| |Lef|Dow|Rig| | 0| .| | * `-------' `-----------------------------------------------------------' `-----------' `---------------' + * https://github.com/tmk/tmk_keyboard/wiki/Sun-Keyboard-Protocol#type-5 */ #define UNIMAP_TYPE5( \ K76, K0F, K05,K06,K08,K0A, K0C,K0E,K10,K11, K12,K07,K09,K0B, K16,K17,K15, K2D,K02,K04,K30, \ @@ -111,7 +112,7 @@ const uint8_t PROGMEM unimap_trans[MATRIX_ROWS][MATRIX_COLS] = { ) -/* Sun type 3 keyboard +/* Sun type 3 keyboard * ,-------. ,-----------------------------------------------------------. ,-----------. * | 01| 03| | 05| 06| 08| 0A| 0C| 0E| 10| 11| 12| 2B| | 15| 16| 17| * |-------| |-----------------------------------------------------------| |-----------| @@ -123,8 +124,8 @@ const uint8_t PROGMEM unimap_trans[MATRIX_ROWS][MATRIX_COLS] = { * |-------| |-----------------------------------------------------------| |-----------| * | 5F| 61| | 63 | 64| 65| 66| 67| 68| 69| 6A| 6B| 6C| 6D| 6E| 6F| | 70| 71| 72| * `-------' |-----------------------------------------------------------| `-----------' - * | 77 | 78 | 79 | 7A | 13 | - * `-----------------------------------------------------------' + * | 77 | 78 | 79 | 7A | 13 | + * `-----------------------------------------------------------' * http://blog.daveastels.com.s3-website-us-west-2.amazonaws.com/2014/12/27/type-3-keyboard.html * https://github.com/dastels/tmk_keyboard/blob/master/converter/sun3_usb/keymap.c */ @@ -145,4 +146,92 @@ const uint8_t PROGMEM unimap_trans[MATRIX_ROWS][MATRIX_COLS] = { K4C,K78,K13,NO, K79, NO, NO, NO, K7A,NO, NO, NO, NO, NO, NO, NO, NO \ ) + +/* CTCSP SHORT TYPE KEYBOARD + * Not tested. You can use Type-5 macro instead. + * ,---, ,-----------------.,-----------. ,---. ,-----------. + * |Stp| |F1|F2|F3|F4|F5|F6||Cut|Pst|Cpy| |Pwr| |Ins|Hom|PgU| + * `---' |F7|F8|F9|10|11|12|`-----------' `---' |Del|End|PgD| + * `-----------------' `-----------' + * ,-----------------------------------------------------------. + * |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| \| `| + * |-----------------------------------------------------------| + * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| Bspc| + * |-----------------------------------------------------------| + * |Ctrl | A| S| D| F| G| H| J| K| L| ;| '| Return| + * |-----------------------------------------------------------| + * |Shft| +\| Z| X| C| V| B| N| M| ,| .| /|Alt|Up|Shf| + * |-----------------------------------------------------------| + * |Caps |Alt |Met| Space |Met|Cmp|Num|Lft||Dn|Rig| + * `-----------------------------------------------------------' + * https://deskthority.net/wiki/Topre_short-throw_keyboards#SUN_connector + */ +#define UNIMAP_SHORT_TYPE( \ + K01, K05,K06,K08,K0A,K0C,K0E, K61,K49,K33, K30, K2C,K34,K60, \ + K10,K11,K12,K07,K09,K0B, K42,K4A,K7B, \ + K1D,K1E,K1F,K20,K21,K22,K23,K24,K25,K26,K27,K28,K29,K58,K2A, \ + K35, K36,K37,K38,K39,K3A,K3B,K3C,K3D,K3E,K3F,K40,K41, K2B, \ + K4C, K4D,K4E,K4F,K50,K51,K52,K53,K54,K55,K56,K57, K59, \ + K63,K7C,K64,K65,K66,K67,K68,K69,K6A,K6B,K6C,K6D,K0D,K14,K6E, \ + K77,K13, K78, K79, K7A,K43,K62,K18,K1B,K1C \ +) UNIMAP_TYPE5( \ + NO, NO, K05,K06,K08,K0A, K0C,K0E,K10,K11, K12,K07,K09,K0B, NO, NO, NO, NO, NO, NO, K30, \ + K01,NO, K1D,K1E,K1F,K20,K21,K22,K23,K24,K25,K26,K27,K28,K29,K58,K2A, K2C,K34,K60, K62,NO, NO, NO, \ + NO, NO, K35,K36,K37,K38,K39,K3A,K3B,K3C,K3D,K3E,K3F,K40,K41, K2B, K42,K4A,K7B, NO, NO, NO, NO, \ + NO, K33, K4C,K4D,K4E,K4F,K50,K51,K52,K53,K54,K55,K56,K57, K59, NO, NO, NO, \ + NO, K49, K63,K7C,K64,K65,K66,K67,K68,K69,K6A,K6B,K6C,K6D, NO, K6E, K14, NO, NO, NO, NO, \ + NO, K61, K77,K13,K78,NO, K79, NO, NO, K7A,K43,K0D, K18,K1B,K1C, NO, NO \ +) + + +/* Integrix Model 500 keyboard + * Not compatible to Sun computers. + * ,-------. ,----, ,---------------. ,---------------. ,---------------. ,---------------. + * | 76 | | 1D | | 05| 06| 08| 0A| | 0C| 0E| 10| 11| | 12| 07| 09| 0B| | 15| 16| 17| 62| + * `-------' `----' `---------------' `---------------' `---------------' `---------------' + * ,-------. ,-----------------------------------------------------------. ,-----------. ,---------------. + * | 01| 03| | 2A| 1E| 1F| 20| 21| 22| 23| 24| 25| 26| 27| 28| 29| 58| 42| | 02| 04| 0F| | 2D| 2E| 2F| 47| + * |-------| |-----------------------------------------------------------| |------------ |---------------| + * | 19| 1A| | 35 | 36| 37| 38| 39| 3A| 3B| 3C| 3D| 3E| 3F| 40| 41| 2B | | 14| 18| 1B| | 44| 45| 46| | + * |-------| |-----------------------------------------------------------| `-----------' |-----------| 7D| + * | 31| 33| | 4C | 4D| 4E| 4F| 50| 51| 52| 53| 54| 55| 56| 57| 59 | | 5B| 5C| 5D| | + * |-------| |-----------------------------------------------------------| ,---. |-----------|---| + * | 48| 49| | 63 |+7C| 64| 65| 66| 67| 68| 69| 6A| 6B| 6C| 6D| 6E | 6F| | 34| | 70| 71| 72| | + * |-------| |-----------------------------------------------------------| .-----------. |-----------| 5A| + * | 5F| 61| | 77 | 13| 78 | | 79 | | | 7A | 43| 0D| | 73| 74| 75| | 5E | 32| | + * `-------' `-----------------------------------------------------------' `-----------' `---------------' + * + * ,-------. ,----, ,---------------. ,---------------. ,---------------. ,---------------. + * | Help | |ESC | | F1| F2| F3| F4| | F5| F6| F7| F8| | F9|F10|F11|F12| |Pau|PrS|ScL|NmL| + * `-------' `----' `---------------' `---------------' `---------------' `---------------' + * ,-------. ,-----------------------------------------------------------. ,-----------. ,---------------. + * |Stp|Agn| | `| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| \|Del| |Ins|Hom|PgU| | =| /| *| -| + * |-------| |-----------------------------------------------------------| |-----------| |---------------| + * |Prp|Und| |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| Bspc| |Del|End|PgD| | 7| 8| 9| | + * |-------| |-----------------------------------------------------------| `-----------' |-----------| +| + * |Frt|Cpy| |Ctrl | A| S| D| F| G| H| J| K| L| ;| '| Return| | 4| 5| 6| | + * |-------| |-----------------------------------------------------------| ,---. |-----------|---| + * |Opn|Pst| |Shft| +\| Z| X| C| V| B| N| M| ,| .| /| Shift| LF| | Up| | 1| 2| 3| | + * |-------| |-----------------------------------------------------------| .-----------. |-----------|Ent| + * |Fnd|Cut| |Caps|Alt|Meta| | Space | | |Meta|Cmp|Alt| |Lef|Dow|Rig| | 0| .| | + * `-------' `-----------------------------------------------------------' `-----------' `---------------' + * https://github.com/tmk/tmk_keyboard/issues/663 + */ +#define UNIMAP_INTEGRIX_MODEL_500( \ + K76, K1D, K05,K06,K08,K0A, K0C,K0E,K10,K11, K12,K07,K09,K0B, K15,K16,K17,K62, \ + K01,K03, K2A,K1E,K1F,K20,K21,K22,K23,K24,K25,K26,K27,K28,K29,K58,K42, K02,K04,K0F, K2D,K2E,K2F,K47, \ + K19,K1A, K35,K36,K37,K38,K39,K3A,K3B,K3C,K3D,K3E,K3F,K40,K41, K2B, K14,K18,K1B, K44,K45,K46,K7D, \ + K31,K33, K4C,K4D,K4E,K4F,K50,K51,K52,K53,K54,K55,K56,K57, K59, K5B,K5C,K5D, \ + K48,K49, K63,K7C,K64,K65,K66,K67,K68,K69,K6A,K6B,K6C,K6D, K6E,K6F, K34, K70,K71,K72,K5A, \ + K5F,K61, K77,K78,K7A,K4A, K79, K7B,K1C,K13,K43,K0D, K73,K74,K75, K5E, K32 \ +) UNIMAP ( \ + K01,K03,K19,K1A,K31,K33,K48,K49,K5F,K61,K76,K0F, \ + K1D, K05,K06,K08,K0A,K0C,K0E,K10,K11,K12,K07,K09,K0B, K16,K17,K15, K02,K04,K2D, \ + K2A,K1E,K1F,K20,K21,K22,K23,K24,K25,K26,K27,K28,K29,NO, K2B, NO, K34,NO, K62,K2E,K2F,K47, \ + K35,K36,K37,K38,K39,K3A,K3B,K3C,K3D,K3E,K3F,K40,K41, K58, K42,K4A,K7B, K44,K45,K46,K7D, \ + K77,K4D,K4E,K4F,K50,K51,K52,K53,K54,K55,K56,K57, NO, K59, K5B,K5C,K5D,NO, \ + K63,K7C,K64,K65,K66,K67,K68,K69,K6A,K6B,K6C,K6D, K6F,K6E, K14, K70,K71,K72,K5A, \ + K4C,K78,K13,K73, K79, K74,K75,K0D,K7A,K43,NO, K18,K1B,K1C, K5E, K32,NO \ +) + #endif