diff options
| author | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2018-08-25 13:00:09 -0700 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-08-25 13:00:09 -0700 |
| commit | 1e7d08d2e3b621dd27bb2b709191b3f42488c9d8 (patch) | |
| tree | 654d2e05c97b013cbf8c133100f8ba0424e122e7 | |
| parent | b806cc9eea5d3ac46d071bbb06e055ef8e7c4cfb (diff) | |
| download | qmk_firmware-1e7d08d2e3b621dd27bb2b709191b3f42488c9d8.tar.gz qmk_firmware-1e7d08d2e3b621dd27bb2b709191b3f42488c9d8.zip | |
Keyboard: Tokyo60 Cleanup: QMK Configurator support (#3749)
* use LAYOUT_60_hhkb
* cleanups
* more minute clean ups
* fix some capitilization issues
* add configurator support
| -rw-r--r-- | keyboards/tokyo60/info.json | 12 | ||||
| -rw-r--r-- | keyboards/tokyo60/keymaps/default/config.h | 4 | ||||
| -rw-r--r-- | keyboards/tokyo60/keymaps/default/keymap.c | 19 | ||||
| -rw-r--r-- | keyboards/tokyo60/readme.md | 6 | ||||
| -rw-r--r-- | keyboards/tokyo60/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/tokyo60/tokyo60.c | 1 | ||||
| -rw-r--r-- | keyboards/tokyo60/tokyo60.h | 3 |
7 files changed, 27 insertions, 20 deletions
diff --git a/keyboards/tokyo60/info.json b/keyboards/tokyo60/info.json new file mode 100644 index 000000000..9431a0c07 --- /dev/null +++ b/keyboards/tokyo60/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Tokyo60", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 15, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"|", "x":13, "y":0}, {"label":"~", "x":14, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"Delete", "x":13.5, "y":1, "w":1.5}, {"label":"Control", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"label":"Enter", "x":12.75, "y":2, "w":2.25}, {"label":"Shift", "x":0, "y":3, "w":2.25}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":1.75}, {"label":"Fn", "x":14, "y":3}, {"label":"Os", "x":1.5, "y":4}, {"label":"Alt", "x":2.5, "y":4, "w":1.5}, {"x":4, "y":4, "w":7}, {"label":"Alt", "x":11, "y":4, "w":1.5}, {"label":"Os", "x":12.5, "y":4}] | ||
| 10 | } | ||
| 11 | } | ||
| 12 | } \ No newline at end of file | ||
diff --git a/keyboards/tokyo60/keymaps/default/config.h b/keyboards/tokyo60/keymaps/default/config.h index a5568e400..271f48d00 100644 --- a/keyboards/tokyo60/keymaps/default/config.h +++ b/keyboards/tokyo60/keymaps/default/config.h | |||
| @@ -1 +1,3 @@ | |||
| 1 | #include "../../config.h" | 1 | #pragma once |
| 2 | |||
| 3 | // place overrides here | ||
diff --git a/keyboards/tokyo60/keymaps/default/keymap.c b/keyboards/tokyo60/keymaps/default/keymap.c index 64b49a746..97380784c 100644 --- a/keyboards/tokyo60/keymaps/default/keymap.c +++ b/keyboards/tokyo60/keymaps/default/keymap.c | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | #include "tokyo60.h" | 1 | #include QMK_KEYBOARD_H |
| 2 | 2 | ||
| 3 | #define BL 0 | ||
| 4 | #define FN 1 | ||
| 3 | /* | 5 | /* |
| 4 | * Default HHKB Layout | 6 | * Default HHKB Layout |
| 5 | */ | 7 | */ |
| @@ -17,11 +19,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 17 | │█████│ Gui │ Alt │█████│█████│Space│█████│█████│█████│█████│█████│ Alt │ Gui │█████│█████│ | 19 | │█████│ Gui │ Alt │█████│█████│Space│█████│█████│█████│█████│█████│ Alt │ Gui │█████│█████│ |
| 18 | └─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘ | 20 | └─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘ |
| 19 | */ | 21 | */ |
| 20 | TOKYO_KEYMAP( | 22 | [BL] = LAYOUT_60_hhkb( |
| 21 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV, \ | 23 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV, \ |
| 22 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, \ | 24 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, \ |
| 23 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, \ | 25 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, \ |
| 24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_FN0, \ | 26 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(FN), \ |
| 25 | KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT ), | 27 | KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT ), |
| 26 | /* 1: HHKB Fn layer | 28 | /* 1: HHKB Fn layer |
| 27 | ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┐ | 29 | ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┐ |
| @@ -36,7 +38,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 36 | │█████│ │ │█████│█████│█████│ │█████│█████│█████│█████│ │ │█████│█████│ | 38 | │█████│ │ │█████│█████│█████│ │█████│█████│█████│█████│ │ │█████│█████│ |
| 37 | └─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘ | 39 | └─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘ |
| 38 | */ | 40 | */ |
| 39 | TOKYO_KEYMAP( | 41 | [FN]= LAYOUT_60_hhkb( |
| 40 | KC_PWR, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL, \ | 42 | KC_PWR, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL, \ |
| 41 | KC_CAPS, RGB_TOG, RGB_MOD, RGB_RMOD, BL_TOGG, BL_STEP, KC_TRNS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_UP, KC_TRNS, KC_TRNS, \ | 43 | KC_CAPS, RGB_TOG, RGB_MOD, RGB_RMOD, BL_TOGG, BL_STEP, KC_TRNS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_UP, KC_TRNS, KC_TRNS, \ |
| 42 | KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_EJCT, KC_TRNS, KC_PAST, KC_PSLS, KC_HOME, KC_PGUP, KC_LEFT, KC_RGHT, KC_PENT, \ | 44 | KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_EJCT, KC_TRNS, KC_PAST, KC_PSLS, KC_HOME, KC_PGUP, KC_LEFT, KC_RGHT, KC_PENT, \ |
| @@ -44,13 +46,4 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), | 46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS ), |
| 45 | }; | 47 | }; |
| 46 | 48 | ||
| 47 | /*5 | ||
| 48 | * Fn action definition | ||
| 49 | */ | ||
| 50 | const uint16_t PROGMEM fn_actions[] = { | ||
| 51 | [0] = ACTION_LAYER_MOMENTARY(1), | ||
| 52 | }; | ||
| 53 | 49 | ||
| 54 | void matrix_scan_user(void) { | ||
| 55 | |||
| 56 | }; | ||
diff --git a/keyboards/tokyo60/readme.md b/keyboards/tokyo60/readme.md index 811d0707c..3f6b3b76b 100644 --- a/keyboards/tokyo60/readme.md +++ b/keyboards/tokyo60/readme.md | |||
| @@ -2,11 +2,11 @@ | |||
| 2 | | 2 | |
| 3 |  | 3 |  |
| 4 | | 4 | |
| 5 | Minimal hacker style mechanical keyboard designed in Tokyo. Full aluminum hi-pro construction with integrated top-plate. Cherry MX compatible. [More Info at Tokyo Keyboard](http://tokyokeyboard.com). | 5 | Minimal hacker style mechanical keyboard designed in Tokyo. Full aluminum hi-pro construction with integrated top-plate. Cherry MX compatible. More Info at [Tokyo Keyboard](http://tokyokeyboard.com). |
| 6 | | 6 | |
| 7 | Keyboard Maintainer: [tokyo keyboard](http://tokyokeyboard.com) | 7 | Keyboard Maintainer: [Tokyo Keyboard](http://tokyokeyboard.com) |
| 8 | Hardware Supported: tokyo60 rev1 | 8 | Hardware Supported: tokyo60 rev1 |
| 9 | Hardware Availability: [tokyo keyboard](http://tokyokeyboard.com), [Massdrop](https://www.massdrop.com/buy/massdrop-x-tokyo-keyboard-tokyo60-keyboard-kit?mode=guest_open) | 9 | Hardware Availability: [Tokyo Keyboard](http://tokyokeyboard.com), [Massdrop](https://www.massdrop.com/buy/massdrop-x-tokyo-keyboard-tokyo60-keyboard-kit?mode=guest_open) |
| 10 | | 10 | |
| 11 | Make example for this keyboard (after setting up your build environment): | 11 | Make example for this keyboard (after setting up your build environment): |
| 12 | | 12 | |
diff --git a/keyboards/tokyo60/rules.mk b/keyboards/tokyo60/rules.mk index 7f8cfc0a8..45f0013c1 100644 --- a/keyboards/tokyo60/rules.mk +++ b/keyboards/tokyo60/rules.mk | |||
| @@ -73,3 +73,5 @@ COMMAND_ENABLE = yes # Commands for debug and configuration | |||
| 73 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 73 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 74 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | 74 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality |
| 75 | RGBLIGHT_ENABLE = yes # Enable RGB light | 75 | RGBLIGHT_ENABLE = yes # Enable RGB light |
| 76 | |||
| 77 | LAYOUTS = 60_hhkb | ||
diff --git a/keyboards/tokyo60/tokyo60.c b/keyboards/tokyo60/tokyo60.c index d3b6279df..2126bb612 100644 --- a/keyboards/tokyo60/tokyo60.c +++ b/keyboards/tokyo60/tokyo60.c | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #include "tokyo60.h" | 1 | #include "tokyo60.h" |
| 2 | //#include "led.h" | ||
| 3 | 2 | ||
| 4 | void matrix_init_kb(void) { | 3 | void matrix_init_kb(void) { |
| 5 | // Keyboard start-up code goes here | 4 | // Keyboard start-up code goes here |
diff --git a/keyboards/tokyo60/tokyo60.h b/keyboards/tokyo60/tokyo60.h index e3cfa711b..53f5d24a8 100644 --- a/keyboards/tokyo60/tokyo60.h +++ b/keyboards/tokyo60/tokyo60.h | |||
| @@ -3,8 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #include "quantum.h" | 4 | #include "quantum.h" |
| 5 | 5 | ||
| 6 | /* tokyo60 Keymap*/ | 6 | #define LAYOUT_60_hhkb( \ |
| 7 | #define TOKYO_KEYMAP( \ | ||
| 8 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K1D,\ | 7 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K1D,\ |
| 9 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K2D, \ | 8 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K2D, \ |
| 10 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K3D, \ | 9 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K3D, \ |
