diff options
| author | x1 <viva008@gmail.com> | 2019-12-18 17:02:57 +0900 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-12-18 00:02:57 -0800 |
| commit | 7048b9403472464e3b2c9eea4ffbaf5be9538785 (patch) | |
| tree | c43fb93a4901810495c2bb697d926fd789caa1d2 /keyboards/pico | |
| parent | 1ac99586a6035bb36fd8a9479b443e636a3abf87 (diff) | |
| download | qmk_firmware-7048b9403472464e3b2c9eea4ffbaf5be9538785.tar.gz qmk_firmware-7048b9403472464e3b2c9eea4ffbaf5be9538785.zip | |
[Keymap] Add pico 70 keys keymap (#7654)
* Move pico/rev1 to pico/65keys.
* Add pico/70keys.
* Remove unneeded codes.
* Modified valid 70 keys keymap for jis.
Diffstat (limited to 'keyboards/pico')
23 files changed, 313 insertions, 8 deletions
diff --git a/keyboards/pico/rev1/rev1.c b/keyboards/pico/65keys/65keys.c index e69de29bb..e69de29bb 100644 --- a/keyboards/pico/rev1/rev1.c +++ b/keyboards/pico/65keys/65keys.c | |||
diff --git a/keyboards/pico/rev1/rev1.h b/keyboards/pico/65keys/65keys.h index 61e32efd2..61e32efd2 100644 --- a/keyboards/pico/rev1/rev1.h +++ b/keyboards/pico/65keys/65keys.h | |||
diff --git a/keyboards/pico/rev1/config.h b/keyboards/pico/65keys/config.h index ab2202525..ab2202525 100644 --- a/keyboards/pico/rev1/config.h +++ b/keyboards/pico/65keys/config.h | |||
diff --git a/keyboards/pico/info.json b/keyboards/pico/65keys/info.json index c5c9c8a85..c5c9c8a85 100644 --- a/keyboards/pico/info.json +++ b/keyboards/pico/65keys/info.json | |||
diff --git a/keyboards/pico/keymaps/default/config.h b/keyboards/pico/65keys/keymaps/default/config.h index 5cbe7609a..5cbe7609a 100644 --- a/keyboards/pico/keymaps/default/config.h +++ b/keyboards/pico/65keys/keymaps/default/config.h | |||
diff --git a/keyboards/pico/keymaps/default/keymap.c b/keyboards/pico/65keys/keymaps/default/keymap.c index 17076f20c..17076f20c 100644 --- a/keyboards/pico/keymaps/default/keymap.c +++ b/keyboards/pico/65keys/keymaps/default/keymap.c | |||
diff --git a/keyboards/pico/keymaps/default/readme.md b/keyboards/pico/65keys/keymaps/default/readme.md index 9f8fa53eb..9f8fa53eb 100644 --- a/keyboards/pico/keymaps/default/readme.md +++ b/keyboards/pico/65keys/keymaps/default/readme.md | |||
diff --git a/keyboards/pico/keymaps/jis/config.h b/keyboards/pico/65keys/keymaps/jis/config.h index 5cbe7609a..5cbe7609a 100644 --- a/keyboards/pico/keymaps/jis/config.h +++ b/keyboards/pico/65keys/keymaps/jis/config.h | |||
diff --git a/keyboards/pico/keymaps/jis/keymap.c b/keyboards/pico/65keys/keymaps/jis/keymap.c index a3d260661..a3d260661 100644 --- a/keyboards/pico/keymaps/jis/keymap.c +++ b/keyboards/pico/65keys/keymaps/jis/keymap.c | |||
diff --git a/keyboards/pico/keymaps/jis/readme.md b/keyboards/pico/65keys/keymaps/jis/readme.md index 49d2aa7b7..49d2aa7b7 100644 --- a/keyboards/pico/keymaps/jis/readme.md +++ b/keyboards/pico/65keys/keymaps/jis/readme.md | |||
diff --git a/keyboards/pico/rev1/rules.mk b/keyboards/pico/65keys/rules.mk index e69de29bb..e69de29bb 100644 --- a/keyboards/pico/rev1/rules.mk +++ b/keyboards/pico/65keys/rules.mk | |||
diff --git a/keyboards/pico/70keys/70keys.c b/keyboards/pico/70keys/70keys.c new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/keyboards/pico/70keys/70keys.c | |||
diff --git a/keyboards/pico/70keys/70keys.h b/keyboards/pico/70keys/70keys.h new file mode 100644 index 000000000..67f7161ca --- /dev/null +++ b/keyboards/pico/70keys/70keys.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "pico.h" | ||
| 4 | #include "quantum.h" | ||
| 5 | |||
| 6 | #define LAYOUT( \ | ||
| 7 | L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \ | ||
| 8 | L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \ | ||
| 9 | L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \ | ||
| 10 | L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36, \ | ||
| 11 | L40, L41, L42, L43, L44, L45, L46, R40, R41, R42, R43, R44, R45, R46 \ | ||
| 12 | ) \ | ||
| 13 | { \ | ||
| 14 | { L00, L01, L02, L03, L04, L05, L06 }, \ | ||
| 15 | { L10, L11, L12, L13, L14, L15, L16 }, \ | ||
| 16 | { L20, L21, L22, L23, L24, L25, L26 }, \ | ||
| 17 | { L30, L31, L32, L33, L34, L35, L36 }, \ | ||
| 18 | { L40, L41, L42, L43, L44, L45, L46 }, \ | ||
| 19 | { R00, R01, R02, R03, R04, R05, R06 }, \ | ||
| 20 | { R10, R11, R12, R13, R14, R15, R16 }, \ | ||
| 21 | { R20, R21, R22, R23, R24, R25, R26 }, \ | ||
| 22 | { R30, R31, R32, R33, R34, R35, R36 }, \ | ||
| 23 | { R40, R41, R42, R43, R44, R45, R46 } \ | ||
| 24 | } | ||
diff --git a/keyboards/pico/70keys/config.h b/keyboards/pico/70keys/config.h new file mode 100644 index 000000000..4e5ba0db4 --- /dev/null +++ b/keyboards/pico/70keys/config.h | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | /* Copyright 2019 Kumao Kobo <kumaokobo@gmail.com> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #include "config_common.h" | ||
| 20 | |||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0xFEED | ||
| 23 | #define PRODUCT_ID 0x9692 | ||
| 24 | #define DEVICE_VER 0x0101 | ||
| 25 | #define MANUFACTURER Kumao Kobo | ||
| 26 | #define PRODUCT Pico Keyboard | ||
| 27 | #define DESCRIPTION Split row staggered 5x7 keyboard (using kailh mid-height) | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | // Rows are doubled-up | ||
| 31 | #define MATRIX_ROWS 10 | ||
| 32 | #define MATRIX_COLS 7 | ||
| 33 | |||
| 34 | // wiring of each half | ||
| 35 | #define MATRIX_ROW_PINS { D4, D7, E6, B4, B5 } | ||
| 36 | #define MATRIX_COL_PINS { F5, F6, F7, B1, B3, B2, B6 } | ||
| 37 | // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5} //uncomment this line and comment line above if you need to reverse left-to-right key order | ||
| 38 | |||
| 39 | /* COL2ROW or ROW2COL */ | ||
| 40 | #define DIODE_DIRECTION COL2ROW | ||
| 41 | |||
| 42 | /* define if matrix has ghost */ | ||
| 43 | //#define MATRIX_HAS_GHOST | ||
| 44 | |||
| 45 | /* number of backlight levels */ | ||
| 46 | // #define BACKLIGHT_LEVELS 3 | ||
| 47 | |||
| 48 | /* Set 0 if debouncing isn't needed */ | ||
| 49 | #define DEBOUNCE 5 | ||
| 50 | |||
| 51 | /* serial.c configuration for split keyboard */ | ||
| 52 | #define SOFT_SERIAL_PIN D0 | ||
| 53 | |||
| 54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 55 | #define LOCKING_SUPPORT_ENABLE | ||
| 56 | /* Locking resynchronize hack */ | ||
| 57 | #define LOCKING_RESYNC_ENABLE | ||
| 58 | |||
| 59 | /* ws2812 RGB LED */ | ||
| 60 | #define RGB_DI_PIN D3 | ||
| 61 | |||
| 62 | #undef RGBLED_NUM | ||
| 63 | #define RGBLED_NUM 14 // Number of LEDs | ||
| 64 | #define RGBLIGHT_ANIMATIONS | ||
| 65 | #define RGBLIGHT_HUE_STEP 8 | ||
| 66 | #define RGBLIGHT_SAT_STEP 8 | ||
| 67 | #define RGBLIGHT_VAL_STEP 8 | ||
| 68 | |||
| 69 | /* | ||
| 70 | * Feature disable options | ||
| 71 | * These options are also useful to firmware size reduction. | ||
| 72 | */ | ||
| 73 | |||
| 74 | /* disable debug print */ | ||
| 75 | // #define NO_DEBUG | ||
| 76 | |||
| 77 | /* disable print */ | ||
| 78 | // #define NO_PRINT | ||
| 79 | |||
| 80 | /* disable action features */ | ||
| 81 | //#define NO_ACTION_LAYER | ||
| 82 | //#define NO_ACTION_TAPPING | ||
| 83 | //#define NO_ACTION_ONESHOT | ||
| 84 | //#define NO_ACTION_MACRO | ||
| 85 | //#define NO_ACTION_FUNCTION | ||
| 86 | |||
| 87 | #define MOUSEKEY_INTERVAL 20 | ||
| 88 | #define MOUSEKEY_DELAY 0 | ||
| 89 | #define MOUSEKEY_TIME_TO_MAX 60 | ||
| 90 | #define MOUSEKEY_MAX_SPEED 7 | ||
| 91 | #define MOUSEKEY_WHEEL_DELAY 0 | ||
diff --git a/keyboards/pico/70keys/info.json b/keyboards/pico/70keys/info.json new file mode 100644 index 000000000..4c87ab369 --- /dev/null +++ b/keyboards/pico/70keys/info.json | |||
| @@ -0,0 +1,81 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Pico Keyboard", | ||
| 3 | "url": "https://github.com/kumaokobo/pico-keyboard/", | ||
| 4 | "maintainer": "Kumao Kobo", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT": { | ||
| 7 | "layout": [ | ||
| 8 | {"label":"Esc", "x":0, "y":0}, | ||
| 9 | {"label":"~", "x":1, "y":0}, | ||
| 10 | {"label":"1", "x":2, "y":0}, | ||
| 11 | {"label":"2", "x":3, "y":0}, | ||
| 12 | {"label":"3", "x":4, "y":0}, | ||
| 13 | {"label":"4", "x":5, "y":0}, | ||
| 14 | {"label":"5", "x":6, "y":0}, | ||
| 15 | {"label":"6", "x":9, "y":0}, | ||
| 16 | {"label":"7", "x":10, "y":0}, | ||
| 17 | {"label":"8", "x":11, "y":0}, | ||
| 18 | {"label":"9", "x":12, "y":0}, | ||
| 19 | {"label":"0", "x":13, "y":0}, | ||
| 20 | {"label":"-", "x":14, "y":0}, | ||
| 21 | {"label":"\u2190", "x":15, "y":0}, | ||
| 22 | {"label":"Tab", "x":0.25, "y":1}, | ||
| 23 | {"label":"Tab", "x":1.25, "y":1}, | ||
| 24 | {"label":"Q", "x":2.25, "y":1}, | ||
| 25 | {"label":"W", "x":3.25, "y":1}, | ||
| 26 | {"label":"E", "x":4.25, "y":1}, | ||
| 27 | {"label":"R", "x":5.25, "y":1}, | ||
| 28 | {"label":"T", "x":6.25, "y":1}, | ||
| 29 | {"label":"Y", "x":9.25, "y":1}, | ||
| 30 | {"label":"U", "x":10.25, "y":1}, | ||
| 31 | {"label":"I", "x":11.25, "y":1}, | ||
| 32 | {"label":"O", "x":12.25, "y":1}, | ||
| 33 | {"label":"P", "x":13.25, "y":1}, | ||
| 34 | {"label":"[", "x":14.25, "y":1}, | ||
| 35 | {"label":"]", "x":15.25, "y":1}, | ||
| 36 | {"label":"Ctrl", "x":0.5, "y":2}, | ||
| 37 | {"label":"Ctrl", "x":1.5, "y":2}, | ||
| 38 | {"label":"A", "x":2.5, "y":2}, | ||
| 39 | {"label":"S", "x":3.5, "y":2}, | ||
| 40 | {"label":"D", "x":4.5, "y":2}, | ||
| 41 | {"label":"F", "x":5.5, "y":2}, | ||
| 42 | {"label":"G", "x":6.5, "y":2}, | ||
| 43 | {"label":"H", "x":9.5, "y":2}, | ||
| 44 | {"label":"J", "x":10.5, "y":2}, | ||
| 45 | {"label":"K", "x":11.5, "y":2}, | ||
| 46 | {"label":"L", "x":12.5, "y":2}, | ||
| 47 | {"label":";", "x":13.5, "y":2}, | ||
| 48 | {"label":"'", "x":14.5, "y":2}, | ||
| 49 | {"label":"Enter", "x":15.5, "y":2}, | ||
| 50 | {"label":"Shift", "x":0.75, "y":3}, | ||
| 51 | {"label":"Shift", "x":1.75, "y":3}, | ||
| 52 | {"label":"Z", "x":2.75, "y":3}, | ||
| 53 | {"label":"X", "x":3.75, "y":3}, | ||
| 54 | {"label":"C", "x":4.75, "y":3}, | ||
| 55 | {"label":"V", "x":5.75, "y":3}, | ||
| 56 | {"label":"B", "x":6.75, "y":3}, | ||
| 57 | {"label":"N", "x":9.75, "y":3}, | ||
| 58 | {"label":"M", "x":10.75, "y":3}, | ||
| 59 | {"label":",", "x":11.75, "y":3}, | ||
| 60 | {"label":".", "x":12.75, "y":3}, | ||
| 61 | {"label":"/", "x":13.75, "y":3}, | ||
| 62 | {"label":"\u2191", "x":14.75, "y":3}, | ||
| 63 | {"label":"Shift", "x":15.75, "y":3}, | ||
| 64 | {"label":"Alt", "x":1, "y":4}, | ||
| 65 | {"label":"Alt", "x":2, "y":4}, | ||
| 66 | {"label":"Enter", "x":3, "y":4}, | ||
| 67 | {"label":"Del", "x":4, "y":4}, | ||
| 68 | {"label":"GUI", "x":5, "y":4}, | ||
| 69 | {"label":"LANG2", "x":6, "y":4}, | ||
| 70 | {"label":"Space", "x":7, "y":4}, | ||
| 71 | {"label":"Space", "x":10, "y":4}, | ||
| 72 | {"label":"LANG1", "x":11, "y":4}, | ||
| 73 | {"label":"GUI", "x":12, "y":4}, | ||
| 74 | {"label":"Del", "x":13, "y":4}, | ||
| 75 | {"label":"\u2190", "x":14, "y":4}, | ||
| 76 | {"label":"\u2193", "x":15, "y":4}, | ||
| 77 | {"label":"\u2192", "x":16, "y":4} | ||
| 78 | ] | ||
| 79 | } | ||
| 80 | } | ||
| 81 | } | ||
diff --git a/keyboards/pico/70keys/keymaps/default/keymap.c b/keyboards/pico/70keys/keymaps/default/keymap.c new file mode 100644 index 000000000..9b9ae30da --- /dev/null +++ b/keyboards/pico/70keys/keymaps/default/keymap.c | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
| 4 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
| 5 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
| 6 | // entirely and just use numbers. | ||
| 7 | #define _QWERTY 0 | ||
| 8 | #define _SYMB 1 | ||
| 9 | |||
| 10 | // Shortcut to make keymap more readable | ||
| 11 | #define SYM_L MO(_SYMB) | ||
| 12 | #define KC_ALES LALT_T(KC_ESC) | ||
| 13 | #define KC_L1SYM LT(_SYMB, KC_LANG1) | ||
| 14 | #define KC_L2SYM LT(_SYMB, KC_LANG2) | ||
| 15 | |||
| 16 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 17 | |||
| 18 | [_QWERTY] = LAYOUT( | ||
| 19 | //┌────────┬────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┐ | ||
| 20 | KC_ESC ,KC_GRV ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 , KC_6 ,KC_7 ,KC_8 ,KC_9 ,KC_0 ,KC_MINS ,KC_BSPC , | ||
| 21 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 22 | KC_TAB ,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 , | ||
| 23 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 24 | KC_LCTL ,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 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┬────────┤ | ||
| 26 | KC_LSFT ,KC_LSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,KC_B , KC_N ,KC_M ,KC_COMM ,KC_DOT ,KC_SLSH ,KC_UP ,KC_RSFT , | ||
| 27 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┴────────┼────────┼────────┼────────┤ | ||
| 28 | KC_ALES ,KC_ALES ,KC_ENT ,KC_DEL ,KC_LGUI ,KC_L2SYM,KC_SPC , KC_SPC ,KC_L1SYM,KC_RGUI ,KC_DEL ,KC_LEFT ,KC_DOWN ,KC_RGHT | ||
| 29 | //└────────┴────────┴────────┴────────┴────────┴────────┴────────┘ └────────┴────────┴────────┴────────┴────────┴────────┴────────┘ | ||
| 30 | ), | ||
| 31 | |||
| 32 | [_SYMB] = LAYOUT( | ||
| 33 | //┌────────┬────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┐ | ||
| 34 | _______ ,_______ ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 , KC_F6 ,KC_F7 ,KC_F8 ,KC_F9 ,KC_F10 ,KC_F11 ,KC_F12 , | ||
| 35 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 36 | _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ , KC_LPRN ,KC_RPRN ,KC_PIPE ,KC_ASTR ,KC_TILD ,KC_JYEN ,KC_BSLS , | ||
| 37 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 38 | _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ , KC_LBRC ,KC_RBRC ,KC_DOT ,KC_SLSH ,KC_GRV ,KC_MINS ,_______ , | ||
| 39 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┬────────┤ | ||
| 40 | _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ , KC_LCBR ,KC_RCBR ,_______ ,_______ ,_______ ,KC_CIRC ,_______ , | ||
| 41 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┴────────┼────────┼────────┼────────┤ | ||
| 42 | _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ , _______ ,_______ ,_______ ,_______ ,KC_LT ,KC_UNDS ,KC_GT | ||
| 43 | //└────────┴────────┴────────┴────────┴────────┴────────┴────────┘ └────────┴────────┴────────┴────────┴────────┴────────┴────────┘ | ||
| 44 | ) | ||
| 45 | |||
| 46 | }; | ||
diff --git a/keyboards/pico/70keys/keymaps/default/readme.md b/keyboards/pico/70keys/keymaps/default/readme.md new file mode 100644 index 000000000..0b9a978d7 --- /dev/null +++ b/keyboards/pico/70keys/keymaps/default/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # The default keymap for Pico Keyboard 70 keys | ||
| 2 | |||
| 3 |  | ||
diff --git a/keyboards/pico/70keys/keymaps/jis/keymap.c b/keyboards/pico/70keys/keymaps/jis/keymap.c new file mode 100644 index 000000000..73109245e --- /dev/null +++ b/keyboards/pico/70keys/keymaps/jis/keymap.c | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | #include"keymap_jp.h" | ||
| 3 | |||
| 4 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
| 5 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
| 6 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
| 7 | // entirely and just use numbers. | ||
| 8 | #define _QWERTY 0 | ||
| 9 | #define _SYMB 1 | ||
| 10 | |||
| 11 | // Shortcut to make keymap more readable | ||
| 12 | #define SYM_L MO(_SYMB) | ||
| 13 | #define KC_ALES LALT_T(KC_ESC) | ||
| 14 | #define KC_L1SYM LT(_SYMB, KC_LANG1) | ||
| 15 | #define KC_L2SYM LT(_SYMB, KC_LANG2) | ||
| 16 | |||
| 17 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 18 | |||
| 19 | [_QWERTY] = LAYOUT( | ||
| 20 | //┌────────┬────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┐ | ||
| 21 | KC_GRV ,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_BSPC , | ||
| 22 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 23 | KC_TAB ,KC_TAB ,KC_Q ,KC_W ,KC_E ,KC_R ,KC_T , KC_Y ,KC_U ,KC_I ,KC_O ,KC_P ,JP_AT ,JP_CIRC , | ||
| 24 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 25 | KC_LCTL ,KC_LCTL ,KC_A ,KC_S ,KC_D ,KC_F ,KC_G , KC_H ,KC_J ,KC_K ,KC_L ,KC_SCLN ,JP_COLN ,KC_ENT , | ||
| 26 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┬────────┤ | ||
| 27 | KC_LSFT ,KC_LSFT ,KC_Z ,KC_X ,KC_C ,KC_V ,KC_B , KC_N ,KC_M ,KC_COMM ,KC_DOT ,KC_SLSH ,KC_UP ,KC_RSFT , | ||
| 28 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┴────────┼────────┼────────┼────────┤ | ||
| 29 | KC_ALES ,KC_ALES ,KC_ENT ,KC_DEL ,KC_LGUI ,KC_L2SYM,KC_SPC , KC_SPC ,KC_L1SYM,KC_RGUI ,KC_DEL ,KC_LEFT ,KC_DOWN ,KC_RGHT | ||
| 30 | //└────────┴────────┴────────┴────────┴────────┴────────┴────────┘ └────────┴────────┴────────┴────────┴────────┴────────┴────────┘ | ||
| 31 | ), | ||
| 32 | |||
| 33 | [_SYMB] = LAYOUT( | ||
| 34 | //┌────────┬────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┬────────┐ | ||
| 35 | _______ ,_______ ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 , KC_F6 ,KC_F7 ,KC_F8 ,KC_F9 ,KC_F10 ,KC_F11 ,KC_F12 , | ||
| 36 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 37 | _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ , KC_LPRN ,KC_RPRN ,KC_PIPE ,JP_YEN ,JP_TILD ,_______ ,_______ , | ||
| 38 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 39 | _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ , KC_LBRC ,KC_RBRC ,KC_DOT ,KC_SLSH ,JP_GRV ,KC_MINS ,_______ , | ||
| 40 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┬────────┤ | ||
| 41 | _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ , KC_LCBR ,KC_RCBR ,_______ ,_______ ,_______ ,JP_UNDS ,_______ , | ||
| 42 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┴────────┼────────┼────────┼────────┤ | ||
| 43 | _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ , _______ ,_______ ,_______ ,_______ ,KC_LT ,_______ ,KC_GT | ||
| 44 | //└────────┴────────┴────────┴────────┴────────┴────────┴────────┘ └────────┴────────┴────────┴────────┴────────┴────────┴────────┘ | ||
| 45 | ) | ||
| 46 | |||
| 47 | }; | ||
diff --git a/keyboards/pico/70keys/keymaps/jis/readme.md b/keyboards/pico/70keys/keymaps/jis/readme.md new file mode 100644 index 000000000..dda39dfb8 --- /dev/null +++ b/keyboards/pico/70keys/keymaps/jis/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # The JIS-like keymap for Pico Keyboard 70 keys | ||
| 2 | |||
| 3 |  | ||
diff --git a/keyboards/pico/70keys/rules.mk b/keyboards/pico/70keys/rules.mk new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/keyboards/pico/70keys/rules.mk | |||
diff --git a/keyboards/pico/pico.h b/keyboards/pico/pico.h index 246ed8755..72024efd8 100644 --- a/keyboards/pico/pico.h +++ b/keyboards/pico/pico.h | |||
| @@ -16,8 +16,11 @@ | |||
| 16 | 16 | ||
| 17 | #pragma once | 17 | #pragma once |
| 18 | 18 | ||
| 19 | #ifdef KEYBOARD_pico_rev1 | 19 | #ifdef KEYBOARD_pico_65keys |
| 20 | #include "rev1.h" | 20 | #include "65keys.h" |
| 21 | #endif | ||
| 22 | #ifdef KEYBOARD_pico_70keys | ||
| 23 | #include "70keys.h" | ||
| 21 | #endif | 24 | #endif |
| 22 | 25 | ||
| 23 | #include "quantum.h" | 26 | #include "quantum.h" |
diff --git a/keyboards/pico/readme.md b/keyboards/pico/readme.md index 26bbf1da2..891bb174f 100644 --- a/keyboards/pico/readme.md +++ b/keyboards/pico/readme.md | |||
| @@ -1,9 +1,5 @@ | |||
| 1 | # Pico keyboard | 1 | # Pico keyboard |
| 2 | 2 | ||
| 3 | <p align="center"> | ||
| 4 | <img src="https://raw.githubusercontent.com/kumaokobo/pico-keyboard/master/img/pico-keyboard.jpg" alt="Pico Keyboard rev1.0" width="600"/> | ||
| 5 | </p> | ||
| 6 | |||
| 7 | A split keyboard kit designed for small hands. | 3 | A split keyboard kit designed for small hands. |
| 8 | Pico adopted the footprint for [Kailh Mid-Height](http://www.kailh.com/en/Products/Ks/KHS/) smaller than Cherry MX compatible switches. | 4 | Pico adopted the footprint for [Kailh Mid-Height](http://www.kailh.com/en/Products/Ks/KHS/) smaller than Cherry MX compatible switches. |
| 9 | 5 | ||
| @@ -12,6 +8,17 @@ Pico adopted the footprint for [Kailh Mid-Height](http://www.kailh.com/en/Produc | |||
| 12 | 8 | ||
| 13 | Make example for this keyboard (after setting up your build environment): | 9 | Make example for this keyboard (after setting up your build environment): |
| 14 | 10 | ||
| 15 | make pico/rev1:default | 11 | make pico/65keys:default |
| 12 | |||
| 13 | ## 65 keys | ||
| 14 | <p align="center"> | ||
| 15 | <img src="https://raw.githubusercontent.com/kumaokobo/pico-keyboard/master/img/pico-keyboard.jpg" alt="Pico Keyboard 65 keys" width="600"/> | ||
| 16 | </p> | ||
| 17 | |||
| 18 | ## 70 keys | ||
| 19 | <p align="center"> | ||
| 20 | <img src="https://raw.githubusercontent.com/kumaokobo/pico-keyboard/master/img/pico-keyboard2.jpg" alt="Pico Keyboard 70 keys" width="600"/> | ||
| 21 | </p> | ||
| 22 | |||
| 16 | 23 | ||
| 17 | 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). | 24 | 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/pico/rules.mk b/keyboards/pico/rules.mk index fc6ad1e7e..0e044b676 100644 --- a/keyboards/pico/rules.mk +++ b/keyboards/pico/rules.mk | |||
| @@ -33,4 +33,4 @@ RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. | |||
| 33 | 33 | ||
| 34 | SPLIT_KEYBOARD = yes | 34 | SPLIT_KEYBOARD = yes |
| 35 | 35 | ||
| 36 | DEFAULT_FOLDER = pico/rev1 | 36 | DEFAULT_FOLDER = pico/65keys |
