diff options
| author | itsdrdick <itsdrdick@gmail.com> | 2019-05-30 02:01:14 +0800 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-05-29 11:01:14 -0700 |
| commit | 2ca840d0b8e1c44365644c9c0e3059bfa4d2cd3e (patch) | |
| tree | 5ff92e19d176e67e51c47b17e796492a5282b915 | |
| parent | a1a7a84831230515bac68c9fe2c93cd90c02acb8 (diff) | |
| download | qmk_firmware-2ca840d0b8e1c44365644c9c0e3059bfa4d2cd3e.tar.gz qmk_firmware-2ca840d0b8e1c44365644c9c0e3059bfa4d2cd3e.zip | |
[Keyboard] Added XW60 PCB (#6011)
* Added XW60 PCB
* Update keyboards/xw60/config.h
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/xw60/rules.mk
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/xw60/rules.mk
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/xw60/xw60.h
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/xw60/xw60.h
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update keyboards/xw60/xw60.h
Co-Authored-By: fauxpark <fauxpark@gmail.com>
* Update rules.mk
* Removed redundant line
* Update keyboards/xw60/config.h
Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/xw60/readme.md
Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
| -rw-r--r-- | keyboards/xw60/config.h | 36 | ||||
| -rw-r--r-- | keyboards/xw60/info.json | 18 | ||||
| -rw-r--r-- | keyboards/xw60/keymaps/default/keymap.c | 38 | ||||
| -rw-r--r-- | keyboards/xw60/keymaps/default/readme.md | 58 | ||||
| -rw-r--r-- | keyboards/xw60/keymaps/pingjunior/keymap.c | 30 | ||||
| -rw-r--r-- | keyboards/xw60/keymaps/pingjunior/readme.md | 44 | ||||
| -rw-r--r-- | keyboards/xw60/readme.md | 29 | ||||
| -rw-r--r-- | keyboards/xw60/rules.mk | 67 | ||||
| -rw-r--r-- | keyboards/xw60/xw60.c | 1 | ||||
| -rw-r--r-- | keyboards/xw60/xw60.h | 60 |
10 files changed, 381 insertions, 0 deletions
diff --git a/keyboards/xw60/config.h b/keyboards/xw60/config.h new file mode 100644 index 000000000..95404fffb --- /dev/null +++ b/keyboards/xw60/config.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "config_common.h" | ||
| 4 | |||
| 5 | /* USB Device descriptor parameter */ | ||
| 6 | #define VENDOR_ID 0xFEED | ||
| 7 | #define PRODUCT_ID 0x6060 | ||
| 8 | #define DEVICE_VER 0x0001 | ||
| 9 | #define MANUFACTURER Drclick | ||
| 10 | #define PRODUCT XW60 | ||
| 11 | #define DESCRIPTION qmk keyboard firmware for XW60 | ||
| 12 | |||
| 13 | /* key matrix size */ | ||
| 14 | #define MATRIX_ROWS 5 | ||
| 15 | #define MATRIX_COLS 14 | ||
| 16 | |||
| 17 | #define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 } | ||
| 18 | #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B7, B5, B4, D7, D6, B3 } | ||
| 19 | #define UNUSED_PINS | ||
| 20 | |||
| 21 | /* COL2ROW or ROW2COL */ | ||
| 22 | #define DIODE_DIRECTION COL2ROW | ||
| 23 | |||
| 24 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 25 | #define DEBOUNCE 5 | ||
| 26 | |||
| 27 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 28 | //#define MATRIX_HAS_GHOST | ||
| 29 | |||
| 30 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 31 | #define LOCKING_SUPPORT_ENABLE | ||
| 32 | /* Locking resynchronize hack */ | ||
| 33 | |||
| 34 | #define SOLENOID_PIN F6 | ||
| 35 | #define SOLENOID_ACTIVE true | ||
| 36 | #define SOLENOID_DEFAULT_DWELL 75 | ||
diff --git a/keyboards/xw60/info.json b/keyboards/xw60/info.json new file mode 100644 index 000000000..9a44f5588 --- /dev/null +++ b/keyboards/xw60/info.json | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "XW60", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 15, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [{"label":"K00", "x":0, "y":0}, {"label":"K01", "x":1, "y":0}, {"label":"K02", "x":2, "y":0}, {"label":"K03", "x":3, "y":0}, {"label":"K04", "x":4, "y":0}, {"label":"K05", "x":5, "y":0}, {"label":"K06", "x":6, "y":0}, {"label":"K07", "x":7, "y":0}, {"label":"K08", "x":8, "y":0}, {"label":"K09", "x":9, "y":0}, {"label":"K0A", "x":10, "y":0}, {"label":"K0B", "x":11, "y":0}, {"label":"K0C", "x":12, "y":0}, {"label":"K0D", "x":13, "y":0}, {"label":"K49", "x":14, "y":0}, {"label":"K10", "x":0, "y":1, "w":1.5}, {"label":"K11", "x":1.5, "y":1}, {"label":"K12", "x":2.5, "y":1}, {"label":"K13", "x":3.5, "y":1}, {"label":"K14", "x":4.5, "y":1}, {"label":"K15", "x":5.5, "y":1}, {"label":"K16", "x":6.5, "y":1}, {"label":"K17", "x":7.5, "y":1}, {"label":"K18", "x":8.5, "y":1}, {"label":"K19", "x":9.5, "y":1}, {"label":"K1A", "x":10.5, "y":1}, {"label":"K1B", "x":11.5, "y":1}, {"label":"K1C", "x":12.5, "y":1}, {"label":"K1D", "x":13.5, "y":1, "w":1.5}, {"label":"K20", "x":0, "y":2, "w":1.75}, {"label":"K21", "x":1.75, "y":2}, {"label":"K22", "x":2.75, "y":2}, {"label":"K23", "x":3.75, "y":2}, {"label":"K24", "x":4.75, "y":2}, {"label":"K25", "x":5.75, "y":2}, {"label":"K26", "x":6.75, "y":2}, {"label":"K27", "x":7.75, "y":2}, {"label":"K28", "x":8.75, "y":2}, {"label":"K29", "x":9.75, "y":2}, {"label":"K2A", "x":10.75, "y":2}, {"label":"K2B", "x":11.75, "y":2}, {"label":"K2C", "x":12.75, "y":2}, {"label":"K2D", "x":13.75, "y":2, "w":1.25}, {"label":"K30", "x":0, "y":3, "w":1.25}, {"label":"K31", "x":1.25, "y":3}, {"label":"K32", "x":2.25, "y":3}, {"label":"K33", "x":3.25, "y":3}, {"label":"K34", "x":4.25, "y":3}, {"label":"K35", "x":5.25, "y":3}, {"label":"K36", "x":6.25, "y":3}, {"label":"K37", "x":7.25, "y":3}, {"label":"K38", "x":8.25, "y":3}, {"label":"K39", "x":9.25, "y":3}, {"label":"K3A", "x":10.25, "y":3}, {"label":"K3B", "x":11.25, "y":3}, {"label":"K3D", "x":12.25, "y":3, "w":1.75}, {"label":"K3C", "x":14, "y":3}, {"label":"K40", "x":0, "y":4, "w":1.25}, {"label":"K41", "x":1.25, "y":4, "w":1.25}, {"label":"K42", "x":2.5, "y":4, "w":1.25}, {"label":"K44", "x":3.75, "y":4, "w":2}, {"label":"K45", "x":5.75, "y":4, "w":2.25}, {"label":"K46", "x":8, "y":4, "w":2}, {"label":"K4A", "x":10, "y":4, "w":1.25}, {"label":"K4B", "x":11.25, "y":4, "w":1.25}, {"label":"K4C", "x":12.5, "y":4, "w":1.25}, {"label":"K4D", "x":13.75, "y":4, "w":1.25}] | ||
| 10 | }, | ||
| 11 | "LAYOUT_pingjunior": { | ||
| 12 | "layout": [{"label":"K00", "x":0, "y":0}, {"label":"K01", "x":1, "y":0}, {"label":"K02", "x":2, "y":0}, {"label":"K03", "x":3, "y":0}, {"label":"K04", "x":4, "y":0}, {"label":"K05", "x":5, "y":0}, {"label":"K06", "x":6, "y":0}, {"label":"K07", "x":7, "y":0}, {"label":"K08", "x":8, "y":0}, {"label":"K09", "x":9, "y":0}, {"label":"K0A", "x":10, "y":0}, {"label":"K0B", "x":11, "y":0}, {"label":"K0C", "x":12, "y":0}, {"label":"K0D", "x":13, "y":0}, {"label":"K49", "x":14, "y":0}, {"label":"K10", "x":0, "y":1, "w":1.5}, {"label":"K11", "x":1.5, "y":1}, {"label":"K12", "x":2.5, "y":1}, {"label":"K13", "x":3.5, "y":1}, {"label":"K14", "x":4.5, "y":1}, {"label":"K15", "x":5.5, "y":1}, {"label":"K16", "x":6.5, "y":1}, {"label":"K17", "x":7.5, "y":1}, {"label":"K18", "x":8.5, "y":1}, {"label":"K19", "x":9.5, "y":1}, {"label":"K1A", "x":10.5, "y":1}, {"label":"K1B", "x":11.5, "y":1}, {"label":"K1C", "x":12.5, "y":1}, {"label":"K1D", "x":13.5, "y":1, "w":1.5}, {"label":"K20", "x":0, "y":2, "w":1.75}, {"label":"K21", "x":1.75, "y":2}, {"label":"K22", "x":2.75, "y":2}, {"label":"K23", "x":3.75, "y":2}, {"label":"K24", "x":4.75, "y":2}, {"label":"K25", "x":5.75, "y":2}, {"label":"K26", "x":6.75, "y":2}, {"label":"K27", "x":7.75, "y":2}, {"label":"K28", "x":8.75, "y":2}, {"label":"K29", "x":9.75, "y":2}, {"label":"K2A", "x":10.75, "y":2}, {"label":"K2B", "x":11.75, "y":2}, {"label":"K2C", "x":12.75, "y":2}, {"label":"K2D", "x":13.75, "y":2, "w":1.25}, {"label":"K31", "x":0, "y":3, "w":2.25}, {"label":"K32", "x":2.25, "y":3}, {"label":"K33", "x":3.25, "y":3}, {"label":"K34", "x":4.25, "y":3}, {"label":"K35", "x":5.25, "y":3}, {"label":"K36", "x":6.25, "y":3}, {"label":"K37", "x":7.25, "y":3}, {"label":"K38", "x":8.25, "y":3}, {"label":"K39", "x":9.25, "y":3}, {"label":"K3A", "x":10.25, "y":3}, {"label":"K3B", "x":11.25, "y":3}, {"label":"K3D", "x":12.25, "y":3, "w":1.75}, {"label":"K3C", "x":14, "y":3}, {"label":"K40", "x":0, "y":4, "w":1.5}, {"label":"K41", "x":1.5, "y":4}, {"label":"K42", "x":2.5, "y":4, "w":1.5}, {"label":"K45", "x":4, "y":4, "w":7}, {"label":"K4B", "x":11, "y":4, "w":1.5}, {"label":"K4C", "x":12.5, "y":4}, {"label":"K4D", "x":13.5, "y":4, "w":1.5}] | ||
| 13 | } | ||
| 14 | } | ||
| 15 | } | ||
| 16 | |||
| 17 | |||
| 18 | |||
diff --git a/keyboards/xw60/keymaps/default/keymap.c b/keyboards/xw60/keymaps/default/keymap.c new file mode 100644 index 000000000..1a4d7fb3d --- /dev/null +++ b/keyboards/xw60/keymaps/default/keymap.c | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | |||
| 5 | /* 0: defuault */ | ||
| 6 | LAYOUT( | ||
| 7 | 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_BSPC, KC_NO, | ||
| 8 | 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_BSLS, | ||
| 9 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_ENT, | ||
| 10 | KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(3), | ||
| 11 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL | ||
| 12 | ), | ||
| 13 | /* 1: winkeyless */ | ||
| 14 | LAYOUT( | ||
| 15 | 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_BSPC, KC_NO, | ||
| 16 | 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_BSLS, | ||
| 17 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_ENT, | ||
| 18 | KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(3), | ||
| 19 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_NO, KC_RALT, KC_RGUI, KC_RCTL | ||
| 20 | ), | ||
| 21 | /* 2: hhkb */ | ||
| 22 | LAYOUT( | ||
| 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, | ||
| 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, | ||
| 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_BSLS, KC_ENT, | ||
| 26 | KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(3), | ||
| 27 | KC_NO, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_NO, KC_RALT, KC_RGUI, KC_NO | ||
| 28 | ), | ||
| 29 | /* 3: fn */ | ||
| 30 | LAYOUT( | ||
| 31 | _______, 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, | ||
| 32 | KC_CAPS, _______, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, KC_UP, _______, KC_DEL, | ||
| 33 | _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_RGHT, _______, _______, | ||
| 34 | _______, _______, _______, _______, _______, _______, HPT_TOG,HPT_DWLI,HPT_DWLD, _______, _______, KC_DOWN, _______, _______, | ||
| 35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 36 | ), | ||
| 37 | |||
| 38 | }; | ||
diff --git a/keyboards/xw60/keymaps/default/readme.md b/keyboards/xw60/keymaps/default/readme.md new file mode 100644 index 000000000..0e146718a --- /dev/null +++ b/keyboards/xw60/keymaps/default/readme.md | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | # The default keymap for xw60 | ||
| 2 | |||
| 3 | ### layer 0 - default | ||
| 4 | ``` | ||
| 5 | .--------------------------------------------------------------------------. | ||
| 6 | | esc| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | bksp | | ||
| 7 | |--------------------------------------------------------------------------| | ||
| 8 | | tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ | | ||
| 9 | |--------------------------------------------------------------------------| | ||
| 10 | | caps | A | S | D | F | G | H | J | K | L | ; | ' | \ |enter| | ||
| 11 | |--------------------------------------------------------------------------| | ||
| 12 | | sft | nubs| Z | X | C | V | B | N | M | , | . | / | shift | fn | | ||
| 13 | |--------------------------------------------------------------------------| | ||
| 14 | | ctrl| gui | alt | space / space / space | alt | gui | app | ctrl| | ||
| 15 | '--------------------------------------------------------------------------' | ||
| 16 | ``` | ||
| 17 | ### layer 1 - winkeyless | ||
| 18 | ``` | ||
| 19 | .--------------------------------------------------------------------------. | ||
| 20 | | esc| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | bksp | | ||
| 21 | |--------------------------------------------------------------------------| | ||
| 22 | | tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ | | ||
| 23 | |--------------------------------------------------------------------------| | ||
| 24 | | caps | A | S | D | F | G | H | J | K | L | ; | ' | \ |enter| | ||
| 25 | |--------------------------------------------------------------------------| | ||
| 26 | | sft | nubs| Z | X | C | V | B | N | M | , | . | / | shift | fn | | ||
| 27 | |--------------------------------------------------------------------------| | ||
| 28 | | ctrl | gui| alt | space | alt | gui| ctrl | | ||
| 29 | '--------------------------------------------------------------------------' | ||
| 30 | ``` | ||
| 31 | ### layer 2 - hhkb | ||
| 32 | ``` | ||
| 33 | .--------------------------------------------------------------------------. | ||
| 34 | | esc| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | \ | ` | | ||
| 35 | |--------------------------------------------------------------------------| | ||
| 36 | | tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | bksp | | ||
| 37 | |--------------------------------------------------------------------------| | ||
| 38 | | ctrl | A | S | D | F | G | H | J | K | L | ; | ' |pent|enter| | ||
| 39 | |--------------------------------------------------------------------------| | ||
| 40 | | shift | Z | X | C | V | B | N | M | , | . | / | rshift | fn | | ||
| 41 | '--------------------------------------------------------------------------' | ||
| 42 | | alt| gui | space | gui | alt| | ||
| 43 | '------------------------------------------------------------' | ||
| 44 | ``` | ||
| 45 | ### layer 3 - fn | ||
| 46 | ``` | ||
| 47 | ,--------------------------------------------------------------------------. | ||
| 48 | | | f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | f10| f11| f12| ins| del| | ||
| 49 | |--------------------------------------------------------------------------| | ||
| 50 | | caps | | up | | | | | | | | | up | | del | | ||
| 51 | |--------------------------------------------------------------------------| | ||
| 52 | | |left|down|rght| | | | | | |left|rght| | | | ||
| 53 | |--------------------------------------------------------------------------| | ||
| 54 | | | | | | |buzz| + | - | | |down| | | | ||
| 55 | |--------------------------------------------------------------------------| | ||
| 56 | | | | | | | | | | ||
| 57 | '--------------------------------------------------------------------------' | ||
| 58 | ``` \ No newline at end of file | ||
diff --git a/keyboards/xw60/keymaps/pingjunior/keymap.c b/keyboards/xw60/keymaps/pingjunior/keymap.c new file mode 100644 index 000000000..51767b56f --- /dev/null +++ b/keyboards/xw60/keymaps/pingjunior/keymap.c | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | |||
| 5 | /* 0: default */ | ||
| 6 | LAYOUT_pingjunior( | ||
| 7 | 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_GRV, KC_BSPC, | ||
| 8 | 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_BSLS, | ||
| 9 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_PENT, KC_ENT, | ||
| 10 | 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(2), | ||
| 11 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL | ||
| 12 | ), | ||
| 13 | /* 1: hhkb */ | ||
| 14 | LAYOUT_pingjunior( | ||
| 15 | 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, | ||
| 16 | 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, | ||
| 17 | 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_PENT, KC_ENT, | ||
| 18 | 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(2), | ||
| 19 | KC_NO, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, KC_NO | ||
| 20 | ), | ||
| 21 | /* 2: fn */ | ||
| 22 | LAYOUT_pingjunior( | ||
| 23 | _______, 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, | ||
| 24 | KC_CAPS, _______, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, KC_UP, _______, KC_DEL, | ||
| 25 | _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_RGHT, _______, _______, | ||
| 26 | _______, _______, _______, _______, _______, HPT_TOG,HPT_DWLI,HPT_DWLD, _______, _______, KC_DOWN, _______, _______, | ||
| 27 | _______, _______, _______, _______, _______, _______, _______ | ||
| 28 | ), | ||
| 29 | |||
| 30 | }; | ||
diff --git a/keyboards/xw60/keymaps/pingjunior/readme.md b/keyboards/xw60/keymaps/pingjunior/readme.md new file mode 100644 index 000000000..0943a88a9 --- /dev/null +++ b/keyboards/xw60/keymaps/pingjunior/readme.md | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | # The default keymap for pingjunior | ||
| 2 | |||
| 3 | ### layer 0 - default | ||
| 4 | ``` | ||
| 5 | .--------------------------------------------------------------------------. | ||
| 6 | | esc| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | ` |bksp| | ||
| 7 | |--------------------------------------------------------------------------| | ||
| 8 | | tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ | | ||
| 9 | |--------------------------------------------------------------------------| | ||
| 10 | | caps | A | S | D | F | G | H | J | K | L | ; | ' |pent|enter| | ||
| 11 | |--------------------------------------------------------------------------| | ||
| 12 | | shift | Z | X | C | V | B | N | M | , | . | / | shift | fn | | ||
| 13 | |--------------------------------------------------------------------------| | ||
| 14 | | ctrl | gui| alt | space | alt | gui/ ctrl | | ||
| 15 | '--------------------------------------------------------------------------' | ||
| 16 | ``` | ||
| 17 | ### layer 1 - hhkb | ||
| 18 | ``` | ||
| 19 | .--------------------------------------------------------------------------. | ||
| 20 | | esc| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | \ | ` | | ||
| 21 | |--------------------------------------------------------------------------| | ||
| 22 | | tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | bksp | | ||
| 23 | |--------------------------------------------------------------------------| | ||
| 24 | | ctrl | A | S | D | F | G | H | J | K | L | ; | ' |pent|enter| | ||
| 25 | |--------------------------------------------------------------------------| | ||
| 26 | | shift | Z | X | C | V | B | N | M | , | . | / | shift | fn | | ||
| 27 | '--------------------------------------------------------------------------' | ||
| 28 | | alt| gui | space | gui | alt| | ||
| 29 | '------------------------------------------------------------' | ||
| 30 | ``` | ||
| 31 | ### layer 2 - fn | ||
| 32 | ``` | ||
| 33 | ,--------------------------------------------------------------------------. | ||
| 34 | | | f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | f10| f11| f12| ins| del| | ||
| 35 | |--------------------------------------------------------------------------| | ||
| 36 | | caps | | up | | | | | | | | | up | | del | | ||
| 37 | |--------------------------------------------------------------------------| | ||
| 38 | | |left|down|rght| | | | | | |left|rght| | | | ||
| 39 | |--------------------------------------------------------------------------| | ||
| 40 | | | | | | |buzz| + | - | | |down| | | | ||
| 41 | |--------------------------------------------------------------------------| | ||
| 42 | | | | | | | | | | ||
| 43 | '--------------------------------------------------------------------------' | ||
| 44 | ``` \ No newline at end of file | ||
diff --git a/keyboards/xw60/readme.md b/keyboards/xw60/readme.md new file mode 100644 index 000000000..c2e0ce0ee --- /dev/null +++ b/keyboards/xw60/readme.md | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | # XW60 | ||
| 2 | |||
| 3 | A 60% custom PCB for non-MX switches. | ||
| 4 | |||
| 5 |  | ||
| 6 | |||
| 7 | ### Supported Switches: | ||
| 8 | |||
| 9 | ##### XW60 V1 | ||
| 10 | |||
| 11 | - ALPS SKCM/SKCL | ||
| 12 | - ALPS SKCP (IBM 5576 version) | ||
| 13 | - SMK SECOND GENERATION | ||
| 14 | |||
| 15 | ##### XW60 V2 | ||
| 16 | |||
| 17 | - ALPS SKCM/SKCL | ||
| 18 | - ALPS SKCC | ||
| 19 | - Omron B3G-S | ||
| 20 | |||
| 21 | Keyboard Maintainer: [Drclick](https://github.com/itsdrdick) | ||
| 22 | Hardware Supported: XW60 V1 & V2 | ||
| 23 | Hardware Availability: https://shop159471890.taobao.com | ||
| 24 | |||
| 25 | Make example for this keyboard (after setting up your build environment): | ||
| 26 | |||
| 27 | make xw60:default | ||
| 28 | |||
| 29 | 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/xw60/rules.mk b/keyboards/xw60/rules.mk new file mode 100644 index 000000000..01435ee54 --- /dev/null +++ b/keyboards/xw60/rules.mk | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Processor frequency. | ||
| 5 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 6 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 7 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 8 | # automatically to create a 32-bit value in your source code. | ||
| 9 | # | ||
| 10 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 11 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 12 | # does not *change* the processor frequency - it should merely be updated to | ||
| 13 | # reflect the processor speed set externally so that the code can use accurate | ||
| 14 | # software delays. | ||
| 15 | F_CPU = 16000000 | ||
| 16 | |||
| 17 | # | ||
| 18 | # LUFA specific | ||
| 19 | # | ||
| 20 | # Target architecture (see library "Board Types" documentation). | ||
| 21 | ARCH = AVR8 | ||
| 22 | |||
| 23 | # Input clock frequency. | ||
| 24 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 25 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 26 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 27 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 28 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 29 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 30 | # source code. | ||
| 31 | # | ||
| 32 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 33 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 34 | F_USB = $(F_CPU) | ||
| 35 | |||
| 36 | # Interrupt driven control endpoint task(+60) | ||
| 37 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 38 | |||
| 39 | # Bootloader selection | ||
| 40 | # Teensy halfkay | ||
| 41 | # Pro Micro caterina | ||
| 42 | # Atmel DFU atmel-dfu | ||
| 43 | # LUFA DFU lufa-dfu | ||
| 44 | # QMK DFU qmk-dfu | ||
| 45 | # atmega32a bootloadHID | ||
| 46 | BOOTLOADER = atmel-dfu | ||
| 47 | |||
| 48 | # Build Options | ||
| 49 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 50 | # the appropriate keymap folder that will get included automatically | ||
| 51 | # | ||
| 52 | BOOTMAGIC_ENABLE = full # Virtual DIP switch configuration(+1000) | ||
| 53 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 54 | EXTRAKEY_ENABLE = no # Audio control and System control(+450) | ||
| 55 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 56 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 57 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 58 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 59 | MIDI_ENABLE = no # MIDI controls | ||
| 60 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 61 | UNICODE_ENABLE = no # Unicode | ||
| 62 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 63 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 64 | API_SYSEX_ENABLE = no | ||
| 65 | HAPTIC_ENABLE += SOLENOID | ||
| 66 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 67 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
diff --git a/keyboards/xw60/xw60.c b/keyboards/xw60/xw60.c new file mode 100644 index 000000000..98ae6a758 --- /dev/null +++ b/keyboards/xw60/xw60.c | |||
| @@ -0,0 +1 @@ | |||
| #include "xw60.h" \ No newline at end of file | |||
diff --git a/keyboards/xw60/xw60.h b/keyboards/xw60/xw60.h new file mode 100644 index 000000000..52be45258 --- /dev/null +++ b/keyboards/xw60/xw60.h | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "quantum.h" | ||
| 4 | |||
| 5 | #define XXX KC_NO | ||
| 6 | |||
| 7 | /* | ||
| 8 | * ,-----------------------------------------------------------------------------------------. | ||
| 9 | * | K00 | K01 | K02 | K03 | K04 | K05 | K06 | K07 | K08 | K09 | K0A | K0B | K0C | K0D | K49 | | ||
| 10 | * |-----------------------------------------------------------------------------------------+ | ||
| 11 | * | K10 | K11 | K12 | K13 | K14 | K15 | K16 | K17 | K18 | K19 | K1A | K1B | K1C | K1D | | ||
| 12 | * |-----------------------------------------------------------------------------------------+ | ||
| 13 | * | K20 | K21 | K22 | K23 | K24 | K25 | K26 | K17 | K28 | K29 | K2A | K2B | K2C | K2D | | ||
| 14 | * |-----------------------------------------------------------------------------------------+ | ||
| 15 | * | K30 | K31 | K32 | K33 | K34 | K35 | K36 | K37 | K38 | K39 | K3A | K3B | K3D | K3C | | ||
| 16 | * |-----------------------------------------------------------------------------------------+ | ||
| 17 | * | K40 | K41 | K42 | | K44 | K45 | K46 | | K4A | K4B | K4C | K4D | | ||
| 18 | * `-----------------------------------------------------------------------------------------' | ||
| 19 | */ | ||
| 20 | #define LAYOUT( \ | ||
| 21 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K49, \ | ||
| 22 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \ | ||
| 23 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, \ | ||
| 24 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3D, K3C, \ | ||
| 25 | K40, K41, K42, K44, K45, K46, K4A, K4B, K4C, K4D \ | ||
| 26 | ) { \ | ||
| 27 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \ | ||
| 28 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \ | ||
| 29 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D }, \ | ||
| 30 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D }, \ | ||
| 31 | { K40, K41, K42, XXX, K44, K45, K46, XXX, XXX, K49, K4A, K4B, K4C, K4D } \ | ||
| 32 | } | ||
| 33 | |||
| 34 | /* | ||
| 35 | * ,-----------------------------------------------------------------------------------------. | ||
| 36 | * | K00 | K01 | K02 | K03 | K04 | K05 | K06 | K07 | K08 | K09 | K0A | K0B | K0C | K0D | K49 | | ||
| 37 | * |-----------------------------------------------------------------------------------------+ | ||
| 38 | * | K10 | K11 | K12 | K13 | K14 | K15 | K16 | K17 | K18 | K19 | K1A | K1B | K1C | K1D | | ||
| 39 | * |-----------------------------------------------------------------------------------------+ | ||
| 40 | * | K20 | K21 | K22 | K23 | K24 | K25 | K26 | K17 | K28 | K29 | K2A | K2B | K2C | K2D | | ||
| 41 | * |-----------------------------------------------------------------------------------------+ | ||
| 42 | * | K31 | K32 | K33 | K34 | K35 | K36 | K37 | K38 | K39 | K3A | K3B | K3D | K3C | | ||
| 43 | * |-----------------------------------------------------------------------------------------+ | ||
| 44 | * | K40 | K41 | K42 | K45 | K4B | K4C | K4D | | ||
| 45 | * `-----------------------------------------------------------------------------------------' | ||
| 46 | */ | ||
| 47 | #define LAYOUT_pingjunior( \ | ||
| 48 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K49, \ | ||
| 49 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \ | ||
| 50 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, \ | ||
| 51 | K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3D, K3C, \ | ||
| 52 | K40, K41, K42, K45, K4B, K4C, K4D \ | ||
| 53 | ) { \ | ||
| 54 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \ | ||
| 55 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \ | ||
| 56 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D }, \ | ||
| 57 | { XXX, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D }, \ | ||
| 58 | { K40, K41, K42, XXX, XXX, K45, XXX, XXX, XXX, K49, XXX, K4B, K4C, K4D } \ | ||
| 59 | } | ||
| 60 | |||
