diff options
| author | QMK Bot <hello@qmk.fm> | 2021-01-22 16:38:26 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2021-01-22 16:38:26 +0000 |
| commit | 1c3ec3a91fa61ab39e0361e87314ca12187f1ba5 (patch) | |
| tree | fb56e8c742e1ab8f9021ed89b56dfb6696596850 | |
| parent | 20ef2aa57fb09afea020b83bebd0632043eb6e34 (diff) | |
| parent | a7d79f4c0060125a29cb0b3a9f8d9ad8356344c6 (diff) | |
| download | qmk_firmware-1c3ec3a91fa61ab39e0361e87314ca12187f1ba5.tar.gz qmk_firmware-1c3ec3a91fa61ab39e0361e87314ca12187f1ba5.zip | |
Merge remote-tracking branch 'origin/master' into develop
| -rw-r--r-- | keyboards/pinky/3/3.h | 15 | ||||
| -rw-r--r-- | keyboards/pinky/3/config.h | 103 | ||||
| -rw-r--r-- | keyboards/pinky/3/info.json | 66 | ||||
| -rw-r--r-- | keyboards/pinky/3/keymaps/default/keymap.c | 175 | ||||
| -rw-r--r-- | keyboards/pinky/3/keymaps/via/config.h | 31 | ||||
| -rw-r--r-- | keyboards/pinky/3/keymaps/via/keymap.c | 97 | ||||
| -rw-r--r-- | keyboards/pinky/3/keymaps/via/rules.mk | 5 | ||||
| -rw-r--r-- | keyboards/pinky/3/readme.md | 20 | ||||
| -rw-r--r-- | keyboards/pinky/4/4.h | 17 | ||||
| -rw-r--r-- | keyboards/pinky/4/config.h | 101 | ||||
| -rw-r--r-- | keyboards/pinky/4/info.json | 81 | ||||
| -rw-r--r-- | keyboards/pinky/4/keymaps/default/keymap.c | 199 | ||||
| -rw-r--r-- | keyboards/pinky/4/keymaps/via/keymap.c | 132 | ||||
| -rw-r--r-- | keyboards/pinky/4/readme.md | 20 | ||||
| -rw-r--r-- | keyboards/pinky/readme.md | 25 | ||||
| -rw-r--r-- | keyboards/pinky/rules.mk | 26 |
16 files changed, 563 insertions, 550 deletions
diff --git a/keyboards/pinky/3/3.h b/keyboards/pinky/3/3.h index 8bd2d49fa..add202537 100644 --- a/keyboards/pinky/3/3.h +++ b/keyboards/pinky/3/3.h | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | #endif | 12 | #endif |
| 13 | #endif | 13 | #endif |
| 14 | 14 | ||
| 15 | #define LAYOUT( \ | 15 | #define LAYOUT_split_3x7_4( \ |
| 16 | L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \ | 16 | L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \ |
| 17 | L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \ | 17 | L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \ |
| 18 | L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \ | 18 | L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \ |
| @@ -29,15 +29,4 @@ | |||
| 29 | { KC_NO, KC_NO, KC_NO, R33, R32, R31, R30 } \ | 29 | { KC_NO, KC_NO, KC_NO, R33, R32, R31, R30 } \ |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | #define LAYOUT_kc( \ | 32 | #define LAYOUT LAYOUT_split_3x7_4 |
| 33 | L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \ | ||
| 34 | L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \ | ||
| 35 | L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \ | ||
| 36 | L30, L31, L32, L33, R30, R31, R32, R33 \ | ||
| 37 | ) \ | ||
| 38 | LAYOUT( \ | ||
| 39 | KC_##L00, KC_##L01, KC_##L02, KC_##L03, KC_##L04, KC_##L05, KC_##L06, KC_##R00, KC_##R01, KC_##R02, KC_##R03, KC_##R04, KC_##R05, KC_##R06, \ | ||
| 40 | KC_##L10, KC_##L11, KC_##L12, KC_##L13, KC_##L14, KC_##L15, KC_##L16, KC_##R10, KC_##R11, KC_##R12, KC_##R13, KC_##R14, KC_##R15, KC_##R16, \ | ||
| 41 | KC_##L20, KC_##L21, KC_##L22, KC_##L23, KC_##L24, KC_##L25, KC_##L26, KC_##R20, KC_##R21, KC_##R22, KC_##R23, KC_##R24, KC_##R25, KC_##R26, \ | ||
| 42 | KC_##L30, KC_##L31, KC_##L32, KC_##L33, KC_##R30, KC_##R31, KC_##R32, KC_##R33 \ | ||
| 43 | ) | ||
diff --git a/keyboards/pinky/3/config.h b/keyboards/pinky/3/config.h index 25cfe22ac..c8d576388 100644 --- a/keyboards/pinky/3/config.h +++ b/keyboards/pinky/3/config.h | |||
| @@ -17,11 +17,11 @@ | |||
| 17 | #pragma once | 17 | #pragma once |
| 18 | 18 | ||
| 19 | /* USB Device descriptor parameter */ | 19 | /* USB Device descriptor parameter */ |
| 20 | #define VENDOR_ID 0xFEED | 20 | #define VENDOR_ID 0x544E // "TN" |
| 21 | #define PRODUCT_ID 0x3060 | 21 | #define PRODUCT_ID 0x7033 // "P3" |
| 22 | #define DEVICE_VER 0x0001 | 22 | #define DEVICE_VER 0x0001 |
| 23 | #define MANUFACTURER tamanishi | 23 | #define MANUFACTURER tamanishi |
| 24 | #define PRODUCT Pinky | 24 | #define PRODUCT Pinky3 |
| 25 | 25 | ||
| 26 | /* key matrix size */ | 26 | /* key matrix size */ |
| 27 | // Rows are doubled-up | 27 | // Rows are doubled-up |
| @@ -53,32 +53,6 @@ | |||
| 53 | */ | 53 | */ |
| 54 | #define SOFT_SERIAL_PIN D2 // or D1, D2, D3, E6 | 54 | #define SOFT_SERIAL_PIN D2 // or D1, D2, D3, E6 |
| 55 | 55 | ||
| 56 | // #define BACKLIGHT_PIN B7 | ||
| 57 | // #define BACKLIGHT_BREATHING | ||
| 58 | // #define BACKLIGHT_LEVELS 3 | ||
| 59 | |||
| 60 | // #define RGB_DI_PIN E2 | ||
| 61 | // #ifdef RGB_DI_PIN | ||
| 62 | // #define RGBLED_NUM 16 | ||
| 63 | // #define RGBLIGHT_HUE_STEP 8 | ||
| 64 | // #define RGBLIGHT_SAT_STEP 8 | ||
| 65 | // #define RGBLIGHT_VAL_STEP 8 | ||
| 66 | // #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 67 | // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 68 | // /*== all animations enable ==*/ | ||
| 69 | // #define RGBLIGHT_ANIMATIONS | ||
| 70 | // /*== or choose animations ==*/ | ||
| 71 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 72 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 73 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 74 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 75 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 76 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 77 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 78 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 79 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 80 | // #endif | ||
| 81 | |||
| 82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
| 83 | #define DEBOUNCE 5 | 57 | #define DEBOUNCE 5 |
| 84 | 58 | ||
| @@ -119,54 +93,6 @@ | |||
| 119 | //#define FORCE_NKRO | 93 | //#define FORCE_NKRO |
| 120 | 94 | ||
| 121 | /* | 95 | /* |
| 122 | * Magic Key Options | ||
| 123 | * | ||
| 124 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 125 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 126 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 127 | * | ||
| 128 | * The options below allow the magic key functionality to be changed. This is | ||
| 129 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 130 | * | ||
| 131 | */ | ||
| 132 | |||
| 133 | /* control how magic key switches layers */ | ||
| 134 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 135 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 136 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 137 | |||
| 138 | /* override magic key keymap */ | ||
| 139 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 140 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 141 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 142 | //#define MAGIC_KEY_HELP1 H | ||
| 143 | //#define MAGIC_KEY_HELP2 SLASH | ||
| 144 | //#define MAGIC_KEY_DEBUG D | ||
| 145 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 146 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 147 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 148 | //#define MAGIC_KEY_VERSION V | ||
| 149 | //#define MAGIC_KEY_STATUS S | ||
| 150 | //#define MAGIC_KEY_CONSOLE C | ||
| 151 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
| 152 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
| 153 | //#define MAGIC_KEY_LAYER0 0 | ||
| 154 | //#define MAGIC_KEY_LAYER1 1 | ||
| 155 | //#define MAGIC_KEY_LAYER2 2 | ||
| 156 | //#define MAGIC_KEY_LAYER3 3 | ||
| 157 | //#define MAGIC_KEY_LAYER4 4 | ||
| 158 | //#define MAGIC_KEY_LAYER5 5 | ||
| 159 | //#define MAGIC_KEY_LAYER6 6 | ||
| 160 | //#define MAGIC_KEY_LAYER7 7 | ||
| 161 | //#define MAGIC_KEY_LAYER8 8 | ||
| 162 | //#define MAGIC_KEY_LAYER9 9 | ||
| 163 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
| 164 | //#define MAGIC_KEY_LOCK CAPS | ||
| 165 | //#define MAGIC_KEY_EEPROM E | ||
| 166 | //#define MAGIC_KEY_NKRO N | ||
| 167 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 168 | |||
| 169 | /* | ||
| 170 | * Feature disable options | 96 | * Feature disable options |
| 171 | * These options are also useful to firmware size reduction. | 97 | * These options are also useful to firmware size reduction. |
| 172 | */ | 98 | */ |
| @@ -184,29 +110,6 @@ | |||
| 184 | //#define NO_ACTION_MACRO | 110 | //#define NO_ACTION_MACRO |
| 185 | //#define NO_ACTION_FUNCTION | 111 | //#define NO_ACTION_FUNCTION |
| 186 | 112 | ||
| 187 | /* | ||
| 188 | * MIDI options | ||
| 189 | */ | ||
| 190 | |||
| 191 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 192 | //#define MIDI_ENABLE_STRICT 1 | ||
| 193 | |||
| 194 | /* enable basic MIDI features: | ||
| 195 | - MIDI notes can be sent when in Music mode is on | ||
| 196 | */ | ||
| 197 | //#define MIDI_BASIC | ||
| 198 | |||
| 199 | /* enable advanced MIDI features: | ||
| 200 | - MIDI notes can be added to the keymap | ||
| 201 | - Octave shift and transpose | ||
| 202 | - Virtual sustain, portamento, and modulation wheel | ||
| 203 | - etc. | ||
| 204 | */ | ||
| 205 | //#define MIDI_ADVANCED | ||
| 206 | |||
| 207 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 208 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
| 209 | |||
| 210 | /* Bootmagic Lite key configuration */ | 113 | /* Bootmagic Lite key configuration */ |
| 211 | // #define BOOTMAGIC_LITE_ROW 0 | 114 | // #define BOOTMAGIC_LITE_ROW 0 |
| 212 | // #define BOOTMAGIC_LITE_COLUMN 0 | 115 | // #define BOOTMAGIC_LITE_COLUMN 0 |
diff --git a/keyboards/pinky/3/info.json b/keyboards/pinky/3/info.json new file mode 100644 index 000000000..92fa04f79 --- /dev/null +++ b/keyboards/pinky/3/info.json | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Pinky3", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "tamanishi", | ||
| 5 | "width": 16, | ||
| 6 | "height": 5.3, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_split_3x7_4": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"Esc", "x":0, "y":0.3}, | ||
| 11 | {"label":"Q", "x":1, "y":0.3}, | ||
| 12 | {"label":"W", "x":2, "y":0.2}, | ||
| 13 | {"label":"E", "x":3, "y":0}, | ||
| 14 | {"label":"R", "x":4, "y":0.2}, | ||
| 15 | {"label":"T", "x":5, "y":0.4}, | ||
| 16 | {"label":"(", "x":6, "y":0.6}, | ||
| 17 | {"label":")", "x":9, "y":0.6}, | ||
| 18 | {"label":"Y", "x":10, "y":0.4}, | ||
| 19 | {"label":"U", "x":11, "y":0.2}, | ||
| 20 | {"label":"I", "x":12, "y":0}, | ||
| 21 | {"label":"O", "x":13, "y":0.2}, | ||
| 22 | {"label":"P", "x":14, "y":0.3}, | ||
| 23 | {"label":"Backspace", "x":15, "y":0.3}, | ||
| 24 | |||
| 25 | {"label":"Ctrl / Tab", "x":0, "y":1.3}, | ||
| 26 | {"label":"A", "x":1, "y":1.3}, | ||
| 27 | {"label":"S", "x":2, "y":1.2}, | ||
| 28 | {"label":"D", "x":3, "y":1}, | ||
| 29 | {"label":"F", "x":4, "y":1.2}, | ||
| 30 | {"label":"G", "x":5, "y":1.4}, | ||
| 31 | {"label":"[", "x":6, "y":1.6}, | ||
| 32 | {"label":"]", "x":9, "y":1.6}, | ||
| 33 | {"label":"H", "x":10, "y":1.4}, | ||
| 34 | {"label":"J", "x":11, "y":1.2}, | ||
| 35 | {"label":"K", "x":12, "y":1}, | ||
| 36 | {"label":"L", "x":13, "y":1.2}, | ||
| 37 | {"label":":", "x":14, "y":1.3}, | ||
| 38 | {"label":"\"", "x":15, "y":1.3}, | ||
| 39 | |||
| 40 | {"label":"Shift", "x":0, "y":2.3}, | ||
| 41 | {"label":"Z", "x":1, "y":2.3}, | ||
| 42 | {"label":"X", "x":2, "y":2.2}, | ||
| 43 | {"label":"C", "x":3, "y":2}, | ||
| 44 | {"label":"V", "x":4, "y":2.2}, | ||
| 45 | {"label":"B", "x":5, "y":2.4}, | ||
| 46 | {"label":"MO(_ADJUST)", "x":6, "y":3}, | ||
| 47 | {"label":"MO(_ADJUST)", "x":9, "y":3}, | ||
| 48 | {"label":"N", "x":10, "y":2.4}, | ||
| 49 | {"label":"M", "x":11, "y":2.2}, | ||
| 50 | {"label":"<", "x":12, "y":2}, | ||
| 51 | {"label":">", "x":13, "y":2.2}, | ||
| 52 | {"label":"?", "x":14, "y":2.3}, | ||
| 53 | {"label":"Enter", "x":15, "y":2.3}, | ||
| 54 | |||
| 55 | {"label":"Alt", "x":3.5, "y":3.7}, | ||
| 56 | {"label":"MO(_LOWER)", "x":4.5, "y":3.8}, | ||
| 57 | {"label":"GUI", "x":5.5, "y":4}, | ||
| 58 | {"label":"Space", "x":6.5, "y":4.3}, | ||
| 59 | {"label":"Space", "x":8.5, "y":4.3}, | ||
| 60 | {"label":"GUI", "x":9.5, "y":4}, | ||
| 61 | {"label":"MO(_RAISE)", "x":10.5, "y":3.8}, | ||
| 62 | {"label":"Alt", "x":11.5, "y":3.7} | ||
| 63 | ] | ||
| 64 | } | ||
| 65 | } | ||
| 66 | } | ||
diff --git a/keyboards/pinky/3/keymaps/default/keymap.c b/keyboards/pinky/3/keymaps/default/keymap.c index 94ed82b02..b3fb27246 100644 --- a/keyboards/pinky/3/keymaps/default/keymap.c +++ b/keyboards/pinky/3/keymaps/default/keymap.c | |||
| @@ -15,120 +15,83 @@ | |||
| 15 | */ | 15 | */ |
| 16 | #include QMK_KEYBOARD_H | 16 | #include QMK_KEYBOARD_H |
| 17 | 17 | ||
| 18 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | 18 | enum layer_names { |
| 19 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | 19 | _QWERTY, |
| 20 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | 20 | _LOWER, |
| 21 | // entirely and just use numbers. | 21 | _RAISE, |
| 22 | #define _QWERTY 0 | 22 | _ADJUST |
| 23 | #define _LOWER 3 | 23 | }; |
| 24 | #define _RAISE 4 | ||
| 25 | #define _ADJUST 16 | ||
| 26 | 24 | ||
| 27 | enum custom_keycodes { | 25 | enum custom_keycodes { |
| 28 | QWERTY = SAFE_RANGE, | 26 | QWERTY = SAFE_RANGE, |
| 29 | LOWER, | 27 | LOWER, |
| 30 | RAISE, | 28 | RAISE, |
| 31 | ADJUST | 29 | ADJUST |
| 32 | }; | 30 | }; |
| 33 | 31 | ||
| 34 | #define ________ KC_TRNS | 32 | #define CTL_TAB CTL_T(KC_TAB) |
| 35 | #define XXXXXXXX KC_NO | ||
| 36 | #define KC_LOWER LOWER | ||
| 37 | #define KC_RAISE RAISE | ||
| 38 | #define KC_ADJ ADJUST | ||
| 39 | #define KC_CTLTB CTL_T(KC_TAB) | ||
| 40 | 33 | ||
| 41 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 34 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 42 | [_QWERTY] = LAYOUT( | 35 | [_QWERTY] = LAYOUT_split_3x7_4( |
| 43 | //,---------------------------------------------------------------------. ,---------------------------------------------------------------------. | 36 | KC_ESC , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_LPRN, KC_RPRN, KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSPC, |
| 44 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LPRN, KC_RPRN, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,\ | 37 | CTL_TAB, KC_A , KC_S , KC_D , KC_F , KC_G , KC_LBRC, KC_RBRC, KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, |
| 45 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 38 | KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , ADJUST , ADJUST , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_ENT , |
| 46 | KC_CTLTB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LBRC, KC_RBRC, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,\ | 39 | KC_LALT, LOWER , KC_LGUI, KC_SPC , KC_SPC , KC_RGUI, RAISE , KC_RALT |
| 47 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 40 | ), |
| 48 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_ADJ, KC_ADJ, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,\ | 41 | [_LOWER] = LAYOUT_split_3x7_4( |
| 49 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 42 | KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , _______, _______, KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_BSLS, |
| 50 | KC_LALT, KC_LOWER, KC_LGUI, KC_SPC, KC_SPC, KC_RGUI, KC_RAISE, KC_RALT \ | 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL , _______, |
| 51 | //`---------------------------------------' `---------------------------------------' | 44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 52 | ), | 45 | _______, _______, _______, _______, _______, _______, _______, _______ |
| 53 | 46 | ), | |
| 54 | [_LOWER] = LAYOUT( \ | 47 | [_RAISE] = LAYOUT_split_3x7_4( |
| 55 | //,---------------------------------------------------------------------. ,---------------------------------------------------------------------. | 48 | KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , _______, _______, KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_BSLS, |
| 56 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, ________, ________, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSLS,\ | 49 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL , _______, |
| 57 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 50 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 58 | ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, KC_MINS, KC_EQL, ________,\ | 51 | _______, _______, _______, _______, _______, _______, _______, _______ |
| 59 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 52 | ), |
| 60 | ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________,\ | 53 | [_ADJUST] = LAYOUT_split_3x7_4( |
| 61 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 54 | _______, KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_LCBR, KC_RCBR, KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , _______, |
| 62 | ________, ________, ________, ________, ________, ________, ________, ________ \ | 55 | _______, KC_F11 , KC_F12 , _______, _______, _______, KC_LCBR, KC_RCBR, KC_HOME, KC_PGDN, KC_PGUP, KC_END , _______, _______, |
| 63 | //`---------------------------------------' `---------------------------------------' | 56 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 64 | ), | 57 | _______, _______, _______, _______, _______, _______, _______, _______ |
| 65 | 58 | ) | |
| 66 | [_RAISE] = LAYOUT( \ | ||
| 67 | //,---------------------------------------------------------------------. ,---------------------------------------------------------------------. | ||
| 68 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, ________, ________, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSLS,\ | ||
| 69 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 70 | ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, KC_MINS, KC_EQL, ________,\ | ||
| 71 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 72 | ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________,\ | ||
| 73 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 74 | ________, ________, ________, ________, ________, ________, ________, ________ \ | ||
| 75 | //`---------------------------------------' `---------------------------------------' | ||
| 76 | ), | ||
| 77 | |||
| 78 | [_ADJUST] = LAYOUT( \ | ||
| 79 | //,---------------------------------------------------------------------. ,---------------------------------------------------------------------. | ||
| 80 | ________, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_LCBR, KC_RCBR, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, ________,\ | ||
| 81 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 82 | ________, KC_F11, KC_F12, ________, ________, ________, KC_LCBR, KC_RCBR, KC_HOME, KC_PGDN, KC_PGUP, KC_END, ________, ________,\ | ||
| 83 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 84 | ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________,\ | ||
| 85 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 86 | ________, ________, ________, ________, ________, ________, ________, ________ \ | ||
| 87 | //`---------------------------------------' `---------------------------------------' | ||
| 88 | ) | ||
| 89 | }; | 59 | }; |
| 90 | 60 | ||
| 91 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 61 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
| 92 | if (record->event.pressed) { | 62 | if (record->event.pressed) { |
| 93 | // set_timelog(); | 63 | // set_timelog(); |
| 94 | } | 64 | } |
| 95 | 65 | ||
| 96 | switch (keycode) { | 66 | switch (keycode) { |
| 97 | case QWERTY: | 67 | case LOWER: |
| 98 | if (record->event.pressed) { | 68 | if (record->event.pressed) { |
| 99 | set_single_persistent_default_layer(_QWERTY); | 69 | layer_on(_LOWER); |
| 100 | } | 70 | update_tri_layer(_LOWER, _RAISE, _ADJUST); |
| 101 | return false; | 71 | } else { |
| 102 | break; | 72 | layer_off(_LOWER); |
| 103 | case LOWER: | 73 | update_tri_layer(_LOWER, _RAISE, _ADJUST); |
| 104 | if (record->event.pressed) { | 74 | } |
| 105 | layer_on(_LOWER); | 75 | return false; |
| 106 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | 76 | break; |
| 107 | } else { | 77 | case RAISE: |
| 108 | layer_off(_LOWER); | 78 | if (record->event.pressed) { |
| 109 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | 79 | layer_on(_RAISE); |
| 110 | } | 80 | update_tri_layer(_LOWER, _RAISE, _ADJUST); |
| 111 | return false; | 81 | } else { |
| 112 | break; | 82 | layer_off(_RAISE); |
| 113 | case RAISE: | 83 | update_tri_layer(_LOWER, _RAISE, _ADJUST); |
| 114 | if (record->event.pressed) { | 84 | } |
| 115 | layer_on(_RAISE); | 85 | return false; |
| 116 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | 86 | break; |
| 117 | } else { | 87 | case ADJUST: |
| 118 | layer_off(_RAISE); | 88 | if (record->event.pressed) { |
| 119 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | 89 | layer_on(_ADJUST); |
| 120 | } | 90 | } else { |
| 121 | return false; | 91 | layer_off(_ADJUST); |
| 122 | break; | 92 | } |
| 123 | case ADJUST: | 93 | return false; |
| 124 | if (record->event.pressed) { | 94 | break; |
| 125 | layer_on(_ADJUST); | 95 | } |
| 126 | } else { | 96 | return true; |
| 127 | layer_off(_ADJUST); | ||
| 128 | } | ||
| 129 | return false; | ||
| 130 | break; | ||
| 131 | } | ||
| 132 | return true; | ||
| 133 | } | 97 | } |
| 134 | |||
diff --git a/keyboards/pinky/3/keymaps/via/config.h b/keyboards/pinky/3/keymaps/via/config.h new file mode 100644 index 000000000..db7977672 --- /dev/null +++ b/keyboards/pinky/3/keymaps/via/config.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* Copyright 2018 'Masayuki Sunahara' | ||
| 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 | //#define USE_MATRIX_I2C | ||
| 20 | |||
| 21 | /* Select hand configuration */ | ||
| 22 | |||
| 23 | #define MASTER_LEFT | ||
| 24 | // #define MASTER_RIGHT | ||
| 25 | // #define EE_HANDS | ||
| 26 | |||
| 27 | #define USE_SERIAL_PD2 | ||
| 28 | |||
| 29 | #define TAPPING_FORCE_HOLD | ||
| 30 | #define TAPPING_TERM 200 | ||
| 31 | #define RETRO_TAPPPING | ||
diff --git a/keyboards/pinky/3/keymaps/via/keymap.c b/keyboards/pinky/3/keymaps/via/keymap.c new file mode 100644 index 000000000..b3fb27246 --- /dev/null +++ b/keyboards/pinky/3/keymaps/via/keymap.c | |||
| @@ -0,0 +1,97 @@ | |||
| 1 | /* Copyright 2018 'Masayuki Sunahara' | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | enum layer_names { | ||
| 19 | _QWERTY, | ||
| 20 | _LOWER, | ||
| 21 | _RAISE, | ||
| 22 | _ADJUST | ||
| 23 | }; | ||
| 24 | |||
| 25 | enum custom_keycodes { | ||
| 26 | QWERTY = SAFE_RANGE, | ||
| 27 | LOWER, | ||
| 28 | RAISE, | ||
| 29 | ADJUST | ||
| 30 | }; | ||
| 31 | |||
| 32 | #define CTL_TAB CTL_T(KC_TAB) | ||
| 33 | |||
| 34 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 35 | [_QWERTY] = LAYOUT_split_3x7_4( | ||
| 36 | KC_ESC , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_LPRN, KC_RPRN, KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSPC, | ||
| 37 | CTL_TAB, KC_A , KC_S , KC_D , KC_F , KC_G , KC_LBRC, KC_RBRC, KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, | ||
| 38 | KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , ADJUST , ADJUST , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_ENT , | ||
| 39 | KC_LALT, LOWER , KC_LGUI, KC_SPC , KC_SPC , KC_RGUI, RAISE , KC_RALT | ||
| 40 | ), | ||
| 41 | [_LOWER] = LAYOUT_split_3x7_4( | ||
| 42 | KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , _______, _______, KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_BSLS, | ||
| 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL , _______, | ||
| 44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 45 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 46 | ), | ||
| 47 | [_RAISE] = LAYOUT_split_3x7_4( | ||
| 48 | KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , _______, _______, KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_BSLS, | ||
| 49 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL , _______, | ||
| 50 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 51 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 52 | ), | ||
| 53 | [_ADJUST] = LAYOUT_split_3x7_4( | ||
| 54 | _______, KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_LCBR, KC_RCBR, KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , _______, | ||
| 55 | _______, KC_F11 , KC_F12 , _______, _______, _______, KC_LCBR, KC_RCBR, KC_HOME, KC_PGDN, KC_PGUP, KC_END , _______, _______, | ||
| 56 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 57 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 58 | ) | ||
| 59 | }; | ||
| 60 | |||
| 61 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 62 | if (record->event.pressed) { | ||
| 63 | // set_timelog(); | ||
| 64 | } | ||
| 65 | |||
| 66 | switch (keycode) { | ||
| 67 | case LOWER: | ||
| 68 | if (record->event.pressed) { | ||
| 69 | layer_on(_LOWER); | ||
| 70 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 71 | } else { | ||
| 72 | layer_off(_LOWER); | ||
| 73 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 74 | } | ||
| 75 | return false; | ||
| 76 | break; | ||
| 77 | case RAISE: | ||
| 78 | if (record->event.pressed) { | ||
| 79 | layer_on(_RAISE); | ||
| 80 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 81 | } else { | ||
| 82 | layer_off(_RAISE); | ||
| 83 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 84 | } | ||
| 85 | return false; | ||
| 86 | break; | ||
| 87 | case ADJUST: | ||
| 88 | if (record->event.pressed) { | ||
| 89 | layer_on(_ADJUST); | ||
| 90 | } else { | ||
| 91 | layer_off(_ADJUST); | ||
| 92 | } | ||
| 93 | return false; | ||
| 94 | break; | ||
| 95 | } | ||
| 96 | return true; | ||
| 97 | } | ||
diff --git a/keyboards/pinky/3/keymaps/via/rules.mk b/keyboards/pinky/3/keymaps/via/rules.mk new file mode 100644 index 000000000..645d8584d --- /dev/null +++ b/keyboards/pinky/3/keymaps/via/rules.mk | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | |||
| 2 | VIA_ENABLE = yes | ||
| 3 | MOUSEKEY_ENABLE = yes | ||
| 4 | EXTRAKEY_ENABLE = yes | ||
| 5 | LTO_ENABLE = yes | ||
diff --git a/keyboards/pinky/3/readme.md b/keyboards/pinky/3/readme.md new file mode 100644 index 000000000..a9b4c193f --- /dev/null +++ b/keyboards/pinky/3/readme.md | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # Pinky3 | ||
| 2 | |||
| 3 | A split keyboard with 3x7 vertically staggered keys and 4 thumb keys. | ||
| 4 | An idea is inspired from [crkbd](https://github.com/foostan/crkbd), [Lily58](https://github.com/kata0510/Lily58), [Ergo42](https://github.com/Biacco42/Ergo42) and [Helix](https://github.com/MakotoKurauchi/helix). | ||
| 5 | |||
| 6 | * Keyboard Maintainer: [Masayuki Sunahara](https://github.com/tamanishi/) [@tamanishi](https://twitter.com/tamanishi) | ||
| 7 | * Hardware Supported: Pinky3 (3rows) PCB, Pro Micro | ||
| 8 | * Hardware Availability: [Pinky3 PCB & Case Data](https://github.com/tamanishi/Pinky3) | ||
| 9 | |||
| 10 | Make example for this keyboard (after setting up your build environment): | ||
| 11 | |||
| 12 | make pinky/3:default | ||
| 13 | |||
| 14 | Flashing example for this keyboard: | ||
| 15 | |||
| 16 | make pinky/3:default:flash | ||
| 17 | |||
| 18 | To reset the board into bootloader mode, double-tap the Reset switch mounted on the PCB. | ||
| 19 | |||
| 20 | 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/pinky/4/4.h b/keyboards/pinky/4/4.h index 255094001..9420a320f 100644 --- a/keyboards/pinky/4/4.h +++ b/keyboards/pinky/4/4.h | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | #endif | 12 | #endif |
| 13 | #endif | 13 | #endif |
| 14 | 14 | ||
| 15 | #define LAYOUT( \ | 15 | #define LAYOUT_split_4x7_4( \ |
| 16 | L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \ | 16 | L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \ |
| 17 | L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \ | 17 | L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \ |
| 18 | L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \ | 18 | L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \ |
| @@ -32,17 +32,4 @@ | |||
| 32 | { KC_NO, KC_NO, KC_NO, R43, R42, R41, R40 } \ | 32 | { KC_NO, KC_NO, KC_NO, R43, R42, R41, R40 } \ |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | #define LAYOUT_kc( \ | 35 | #define LAYOUT LAYOUT_split_4x7_4 |
| 36 | L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \ | ||
| 37 | L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \ | ||
| 38 | L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \ | ||
| 39 | L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36, \ | ||
| 40 | L40, L41, L42, L43, R40, R41, R42, R43 \ | ||
| 41 | ) \ | ||
| 42 | LAYOUT( \ | ||
| 43 | KC_##L00, KC_##L01, KC_##L02, KC_##L03, KC_##L04, KC_##L05, KC_##L06, KC_##R00, KC_##R01, KC_##R02, KC_##R03, KC_##R04, KC_##R05, KC_##R06, \ | ||
| 44 | KC_##L10, KC_##L11, KC_##L12, KC_##L13, KC_##L14, KC_##L15, KC_##L16, KC_##R10, KC_##R11, KC_##R12, KC_##R13, KC_##R14, KC_##R15, KC_##R16, \ | ||
| 45 | KC_##L20, KC_##L21, KC_##L22, KC_##L23, KC_##L24, KC_##L25, KC_##L26, KC_##R20, KC_##R21, KC_##R22, KC_##R23, KC_##R24, KC_##R25, KC_##R26, \ | ||
| 46 | KC_##L30, KC_##L31, KC_##L32, KC_##L33, KC_##L34, KC_##L35, KC_##L36, KC_##R30, KC_##R31, KC_##R32, KC_##R33, KC_##R34, KC_##R35, KC_##R36, \ | ||
| 47 | KC_##L40, KC_##L41, KC_##L42, KC_##L43, KC_##R40, KC_##R41, KC_##R42, KC_##R43 \ | ||
| 48 | ) | ||
diff --git a/keyboards/pinky/4/config.h b/keyboards/pinky/4/config.h index 5c955b0b7..d0d46f192 100644 --- a/keyboards/pinky/4/config.h +++ b/keyboards/pinky/4/config.h | |||
| @@ -17,8 +17,8 @@ | |||
| 17 | #pragma once | 17 | #pragma once |
| 18 | 18 | ||
| 19 | /* USB Device descriptor parameter */ | 19 | /* USB Device descriptor parameter */ |
| 20 | #define VENDOR_ID 0x544E | 20 | #define VENDOR_ID 0x544E // "TN" |
| 21 | #define PRODUCT_ID 0x7034 | 21 | #define PRODUCT_ID 0x7034 // "P4" |
| 22 | #define DEVICE_VER 0x0001 | 22 | #define DEVICE_VER 0x0001 |
| 23 | #define MANUFACTURER tamanishi | 23 | #define MANUFACTURER tamanishi |
| 24 | #define PRODUCT Pinky4 | 24 | #define PRODUCT Pinky4 |
| @@ -53,32 +53,6 @@ | |||
| 53 | */ | 53 | */ |
| 54 | #define SOFT_SERIAL_PIN D2 // or D1, D2, D3, E6 | 54 | #define SOFT_SERIAL_PIN D2 // or D1, D2, D3, E6 |
| 55 | 55 | ||
| 56 | // #define BACKLIGHT_PIN B7 | ||
| 57 | // #define BACKLIGHT_BREATHING | ||
| 58 | // #define BACKLIGHT_LEVELS 3 | ||
| 59 | |||
| 60 | // #define RGB_DI_PIN E2 | ||
| 61 | // #ifdef RGB_DI_PIN | ||
| 62 | // #define RGBLED_NUM 16 | ||
| 63 | // #define RGBLIGHT_HUE_STEP 8 | ||
| 64 | // #define RGBLIGHT_SAT_STEP 8 | ||
| 65 | // #define RGBLIGHT_VAL_STEP 8 | ||
| 66 | // #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 67 | // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 68 | // /*== all animations enable ==*/ | ||
| 69 | // #define RGBLIGHT_ANIMATIONS | ||
| 70 | // /*== or choose animations ==*/ | ||
| 71 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 72 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 73 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 74 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 75 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 76 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 77 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 78 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 79 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 80 | // #endif | ||
| 81 | |||
| 82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 56 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
| 83 | #define DEBOUNCE 5 | 57 | #define DEBOUNCE 5 |
| 84 | 58 | ||
| @@ -119,54 +93,6 @@ | |||
| 119 | //#define FORCE_NKRO | 93 | //#define FORCE_NKRO |
| 120 | 94 | ||
| 121 | /* | 95 | /* |
| 122 | * Magic Key Options | ||
| 123 | * | ||
| 124 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 125 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 126 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 127 | * | ||
| 128 | * The options below allow the magic key functionality to be changed. This is | ||
| 129 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 130 | * | ||
| 131 | */ | ||
| 132 | |||
| 133 | /* control how magic key switches layers */ | ||
| 134 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 135 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 136 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 137 | |||
| 138 | /* override magic key keymap */ | ||
| 139 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 140 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 141 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 142 | //#define MAGIC_KEY_HELP1 H | ||
| 143 | //#define MAGIC_KEY_HELP2 SLASH | ||
| 144 | //#define MAGIC_KEY_DEBUG D | ||
| 145 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 146 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 147 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 148 | //#define MAGIC_KEY_VERSION V | ||
| 149 | //#define MAGIC_KEY_STATUS S | ||
| 150 | //#define MAGIC_KEY_CONSOLE C | ||
| 151 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
| 152 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
| 153 | //#define MAGIC_KEY_LAYER0 0 | ||
| 154 | //#define MAGIC_KEY_LAYER1 1 | ||
| 155 | //#define MAGIC_KEY_LAYER2 2 | ||
| 156 | //#define MAGIC_KEY_LAYER3 3 | ||
| 157 | //#define MAGIC_KEY_LAYER4 4 | ||
| 158 | //#define MAGIC_KEY_LAYER5 5 | ||
| 159 | //#define MAGIC_KEY_LAYER6 6 | ||
| 160 | //#define MAGIC_KEY_LAYER7 7 | ||
| 161 | //#define MAGIC_KEY_LAYER8 8 | ||
| 162 | //#define MAGIC_KEY_LAYER9 9 | ||
| 163 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
| 164 | //#define MAGIC_KEY_LOCK CAPS | ||
| 165 | //#define MAGIC_KEY_EEPROM E | ||
| 166 | //#define MAGIC_KEY_NKRO N | ||
| 167 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 168 | |||
| 169 | /* | ||
| 170 | * Feature disable options | 96 | * Feature disable options |
| 171 | * These options are also useful to firmware size reduction. | 97 | * These options are also useful to firmware size reduction. |
| 172 | */ | 98 | */ |
| @@ -184,29 +110,6 @@ | |||
| 184 | //#define NO_ACTION_MACRO | 110 | //#define NO_ACTION_MACRO |
| 185 | //#define NO_ACTION_FUNCTION | 111 | //#define NO_ACTION_FUNCTION |
| 186 | 112 | ||
| 187 | /* | ||
| 188 | * MIDI options | ||
| 189 | */ | ||
| 190 | |||
| 191 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 192 | //#define MIDI_ENABLE_STRICT 1 | ||
| 193 | |||
| 194 | /* enable basic MIDI features: | ||
| 195 | - MIDI notes can be sent when in Music mode is on | ||
| 196 | */ | ||
| 197 | //#define MIDI_BASIC | ||
| 198 | |||
| 199 | /* enable advanced MIDI features: | ||
| 200 | - MIDI notes can be added to the keymap | ||
| 201 | - Octave shift and transpose | ||
| 202 | - Virtual sustain, portamento, and modulation wheel | ||
| 203 | - etc. | ||
| 204 | */ | ||
| 205 | //#define MIDI_ADVANCED | ||
| 206 | |||
| 207 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 208 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
| 209 | |||
| 210 | /* Bootmagic Lite key configuration */ | 113 | /* Bootmagic Lite key configuration */ |
| 211 | // #define BOOTMAGIC_LITE_ROW 0 | 114 | // #define BOOTMAGIC_LITE_ROW 0 |
| 212 | // #define BOOTMAGIC_LITE_COLUMN 0 | 115 | // #define BOOTMAGIC_LITE_COLUMN 0 |
diff --git a/keyboards/pinky/4/info.json b/keyboards/pinky/4/info.json new file mode 100644 index 000000000..b96da61fd --- /dev/null +++ b/keyboards/pinky/4/info.json | |||
| @@ -0,0 +1,81 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Pinky4", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "tamanishi", | ||
| 5 | "width": 16, | ||
| 6 | "height": 6.3, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_split_4x7_4": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"Esc", "x":0, "y":0.3}, | ||
| 11 | {"label":"1", "x":1, "y":0.3}, | ||
| 12 | {"label":"2", "x":2, "y":0.2}, | ||
| 13 | {"label":"3", "x":3, "y":0}, | ||
| 14 | {"label":"4", "x":4, "y":0.2}, | ||
| 15 | {"label":"5", "x":5, "y":0.4}, | ||
| 16 | {"label":"(", "x":6, "y":0.6}, | ||
| 17 | {"label":")", "x":9, "y":0.6}, | ||
| 18 | {"label":"6", "x":10, "y":0.4}, | ||
| 19 | {"label":"7", "x":11, "y":0.2}, | ||
| 20 | {"label":"8", "x":12, "y":0}, | ||
| 21 | {"label":"9", "x":13, "y":0.2}, | ||
| 22 | {"label":"0", "x":14, "y":0.3}, | ||
| 23 | {"label":"Backspace", "x":15, "y":0.3}, | ||
| 24 | |||
| 25 | {"label":"Tab", "x":0, "y":1.3}, | ||
| 26 | {"label":"Q", "x":1, "y":1.3}, | ||
| 27 | {"label":"W", "x":2, "y":1.2}, | ||
| 28 | {"label":"E", "x":3, "y":1}, | ||
| 29 | {"label":"R", "x":4, "y":1.2}, | ||
| 30 | {"label":"T", "x":5, "y":1.4}, | ||
| 31 | {"label":"[", "x":6, "y":1.6}, | ||
| 32 | {"label":"]", "x":9, "y":1.6}, | ||
| 33 | {"label":"Y", "x":10, "y":1.4}, | ||
| 34 | {"label":"U", "x":11, "y":1.2}, | ||
| 35 | {"label":"I", "x":12, "y":1}, | ||
| 36 | {"label":"O", "x":13, "y":1.2}, | ||
| 37 | {"label":"P", "x":14, "y":1.3}, | ||
| 38 | {"label":"\\", "x":15, "y":1.3}, | ||
| 39 | |||
| 40 | {"label":"Ctrl / Tab", "x":0, "y":2.3}, | ||
| 41 | {"label":"A", "x":1, "y":2.3}, | ||
| 42 | {"label":"S", "x":2, "y":2.2}, | ||
| 43 | {"label":"D", "x":3, "y":2}, | ||
| 44 | {"label":"F", "x":4, "y":2.2}, | ||
| 45 | {"label":"G", "x":5, "y":2.4}, | ||
| 46 | {"label":"{", "x":6, "y":2.6}, | ||
| 47 | {"label":"}", "x":9, "y":2.6}, | ||
| 48 | {"label":"H", "x":10, "y":2.4}, | ||
| 49 | {"label":"J", "x":11, "y":2.2}, | ||
| 50 | {"label":"K", "x":12, "y":2}, | ||
| 51 | {"label":"L", "x":13, "y":2.2}, | ||
| 52 | {"label":":", "x":14, "y":2.3}, | ||
| 53 | {"label":"\"", "x":15, "y":2.3}, | ||
| 54 | |||
| 55 | {"label":"Shift", "x":0, "y":3.3}, | ||
| 56 | {"label":"Z", "x":1, "y":3.3}, | ||
| 57 | {"label":"X", "x":2, "y":3.2}, | ||
| 58 | {"label":"C", "x":3, "y":3}, | ||
| 59 | {"label":"V", "x":4, "y":3.2}, | ||
| 60 | {"label":"B", "x":5, "y":3.4}, | ||
| 61 | {"label":"MO(_ADJUST)", "x":6, "y":4}, | ||
| 62 | {"label":"MO(_ADJUST)", "x":9, "y":4}, | ||
| 63 | {"label":"N", "x":10, "y":3.4}, | ||
| 64 | {"label":"M", "x":11, "y":3.2}, | ||
| 65 | {"label":"<", "x":12, "y":3}, | ||
| 66 | {"label":">", "x":13, "y":3.2}, | ||
| 67 | {"label":"?", "x":14, "y":3.3}, | ||
| 68 | {"label":"Enter", "x":15, "y":3.3}, | ||
| 69 | |||
| 70 | {"label":"Alt", "x":3.5, "y":4.7}, | ||
| 71 | {"label":"MO(_LOWER)", "x":4.5, "y":4.8}, | ||
| 72 | {"label":"GUI", "x":5.5, "y":5}, | ||
| 73 | {"label":"Space", "x":6.5, "y":5.3}, | ||
| 74 | {"label":"Space", "x":8.5, "y":5.3}, | ||
| 75 | {"label":"GUI", "x":9.5, "y":5}, | ||
| 76 | {"label":"MO(_RAISE)", "x":10.5, "y":4.8}, | ||
| 77 | {"label":"Alt", "x":11.5, "y":4.7} | ||
| 78 | ] | ||
| 79 | } | ||
| 80 | } | ||
| 81 | } | ||
diff --git a/keyboards/pinky/4/keymaps/default/keymap.c b/keyboards/pinky/4/keymaps/default/keymap.c index ee43194dd..2b876cb32 100644 --- a/keyboards/pinky/4/keymaps/default/keymap.c +++ b/keyboards/pinky/4/keymaps/default/keymap.c | |||
| @@ -15,140 +15,87 @@ | |||
| 15 | */ | 15 | */ |
| 16 | #include QMK_KEYBOARD_H | 16 | #include QMK_KEYBOARD_H |
| 17 | 17 | ||
| 18 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | 18 | enum layer_names { |
| 19 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | 19 | _QWERTY, |
| 20 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | 20 | _LOWER, |
| 21 | // entirely and just use numbers. | 21 | _RAISE, |
| 22 | #define _QWERTY 0 | 22 | _ADJUST |
| 23 | #define _LOWER 3 | 23 | }; |
| 24 | #define _RAISE 4 | ||
| 25 | #define _ADJUST 16 | ||
| 26 | 24 | ||
| 27 | // Defines the keycodes used by our macros in process_record_user | ||
| 28 | enum custom_keycodes { | 25 | enum custom_keycodes { |
| 29 | QWERTY = SAFE_RANGE, | 26 | QWERTY = SAFE_RANGE, |
| 30 | LOWER, | 27 | LOWER, |
| 31 | RAISE, | 28 | RAISE, |
| 32 | ADJUST | 29 | ADJUST |
| 33 | }; | 30 | }; |
| 34 | 31 | ||
| 35 | #define ________ KC_TRNS | 32 | #define CTL_TAB CTL_T(KC_TAB) |
| 36 | #define XXXXXXXX KC_NO | ||
| 37 | #define KC_LOWER LOWER | ||
| 38 | #define KC_RAISE RAISE | ||
| 39 | #define KC_ADJ ADJUST | ||
| 40 | #define KC_CTLTB CTL_T(KC_TAB) | ||
| 41 | 33 | ||
| 42 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 34 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 43 | [_QWERTY] = LAYOUT( \ | 35 | [_QWERTY] = LAYOUT_split_4x7_4( |
| 44 | //,---------------------------------------------------------------------. ,---------------------------------------------------------------------. | 36 | KC_ESC , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_LPRN, KC_RPRN, KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_BSPC, |
| 45 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LPRN, KC_RPRN, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,\ | 37 | KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_LBRC, KC_RBRC, KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSLS, |
| 46 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 38 | CTL_TAB, KC_A , KC_S , KC_D , KC_F , KC_G , KC_LCBR, KC_RCBR, KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, |
| 47 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,\ | 39 | KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , ADJUST , ADJUST , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_ENT , |
| 48 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 40 | KC_LALT, LOWER , KC_LGUI, KC_SPC , KC_SPC , KC_RGUI, RAISE , KC_RALT |
| 49 | KC_CTLTB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LCBR, KC_RCBR, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,\ | 41 | ), |
| 50 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 42 | [_LOWER] = LAYOUT_split_4x7_4( |
| 51 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_ADJ, KC_ADJ, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,\ | 43 | KC_GRV , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL , _______, |
| 52 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 53 | KC_LALT, KC_LOWER, KC_LGUI, KC_SPC, KC_SPC, KC_RGUI, KC_RAISE, KC_RALT \ | 45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 54 | //`---------------------------------------' `---------------------------------------' | 46 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 55 | ), | 47 | _______, _______, _______, _______, _______, _______, _______, _______ |
| 56 | 48 | ), | |
| 57 | [_LOWER] = LAYOUT( \ | 49 | [_RAISE] = LAYOUT_split_4x7_4( |
| 58 | //,---------------------------------------------------------------------. ,---------------------------------------------------------------------. | 50 | KC_GRV , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL , _______, |
| 59 | KC_GRV, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, KC_MINS, KC_EQL, ________,\ | 51 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 60 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 52 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 61 | ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________,\ | 53 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 62 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 54 | _______, _______, _______, _______, _______, _______, _______, _______ |
| 63 | ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________,\ | 55 | ), |
| 64 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 56 | [_ADJUST] = LAYOUT_split_4x7_4( |
| 65 | ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________,\ | 57 | _______, KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , _______, _______, KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , _______, |
| 66 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 58 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_F11 , KC_F12 , _______, |
| 67 | ________, ________, ________, ________, ________, ________, ________, ________ \ | 59 | _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END , _______, _______, |
| 68 | //`---------------------------------------' `---------------------------------------' | 60 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 69 | ), | 61 | _______, _______, _______, _______, _______, _______, _______, _______ |
| 70 | 62 | ) | |
| 71 | [_RAISE] = LAYOUT( \ | ||
| 72 | //,---------------------------------------------------------------------. ,---------------------------------------------------------------------. | ||
| 73 | KC_GRV, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, KC_MINS, KC_EQL, ________,\ | ||
| 74 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 75 | ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________,\ | ||
| 76 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 77 | ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________,\ | ||
| 78 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 79 | ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________,\ | ||
| 80 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 81 | ________, ________, ________, ________, ________, ________, ________, ________ \ | ||
| 82 | //`---------------------------------------' `---------------------------------------' | ||
| 83 | ), | ||
| 84 | |||
| 85 | [_ADJUST] = LAYOUT( \ | ||
| 86 | //,---------------------------------------------------------------------. ,---------------------------------------------------------------------. | ||
| 87 | ________, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, ________, ________, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, ________,\ | ||
| 88 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 89 | ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, KC_F11, KC_F12, ________,\ | ||
| 90 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 91 | ________, ________, ________, ________, ________, ________, ________, ________, KC_HOME, KC_PGDN, KC_PGUP, KC_END, ________, ________,\ | ||
| 92 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 93 | ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________, ________,\ | ||
| 94 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 95 | ________, ________, ________, ________, ________, ________, ________, ________ \ | ||
| 96 | //`---------------------------------------' `---------------------------------------' | ||
| 97 | ) | ||
| 98 | }; | 63 | }; |
| 99 | 64 | ||
| 100 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 65 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
| 101 | if (record->event.pressed) { | 66 | if (record->event.pressed) { |
| 102 | // set_timelog(); | 67 | // set_timelog(); |
| 103 | } | 68 | } |
| 104 | |||
| 105 | switch (keycode) { | ||
| 106 | case QWERTY: | ||
| 107 | if (record->event.pressed) { | ||
| 108 | set_single_persistent_default_layer(_QWERTY); | ||
| 109 | } | ||
| 110 | return false; | ||
| 111 | break; | ||
| 112 | case LOWER: | ||
| 113 | if (record->event.pressed) { | ||
| 114 | layer_on(_LOWER); | ||
| 115 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 116 | } else { | ||
| 117 | layer_off(_LOWER); | ||
| 118 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 119 | } | ||
| 120 | return false; | ||
| 121 | break; | ||
| 122 | case RAISE: | ||
| 123 | if (record->event.pressed) { | ||
| 124 | layer_on(_RAISE); | ||
| 125 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 126 | } else { | ||
| 127 | layer_off(_RAISE); | ||
| 128 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 129 | } | ||
| 130 | return false; | ||
| 131 | break; | ||
| 132 | case ADJUST: | ||
| 133 | if (record->event.pressed) { | ||
| 134 | layer_on(_ADJUST); | ||
| 135 | } else { | ||
| 136 | layer_off(_ADJUST); | ||
| 137 | } | ||
| 138 | return false; | ||
| 139 | break; | ||
| 140 | } | ||
| 141 | return true; | ||
| 142 | } | ||
| 143 | |||
| 144 | void matrix_init_user(void) { | ||
| 145 | |||
| 146 | } | ||
| 147 | |||
| 148 | void matrix_scan_user(void) { | ||
| 149 | |||
| 150 | } | ||
| 151 | |||
| 152 | void led_set_user(uint8_t usb_led) { | ||
| 153 | 69 | ||
| 70 | switch (keycode) { | ||
| 71 | case LOWER: | ||
| 72 | if (record->event.pressed) { | ||
| 73 | layer_on(_LOWER); | ||
| 74 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 75 | } else { | ||
| 76 | layer_off(_LOWER); | ||
| 77 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 78 | } | ||
| 79 | return false; | ||
| 80 | break; | ||
| 81 | case RAISE: | ||
| 82 | if (record->event.pressed) { | ||
| 83 | layer_on(_RAISE); | ||
| 84 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 85 | } else { | ||
| 86 | layer_off(_RAISE); | ||
| 87 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 88 | } | ||
| 89 | return false; | ||
| 90 | break; | ||
| 91 | case ADJUST: | ||
| 92 | if (record->event.pressed) { | ||
| 93 | layer_on(_ADJUST); | ||
| 94 | } else { | ||
| 95 | layer_off(_ADJUST); | ||
| 96 | } | ||
| 97 | return false; | ||
| 98 | break; | ||
| 99 | } | ||
| 100 | return true; | ||
| 154 | } | 101 | } |
diff --git a/keyboards/pinky/4/keymaps/via/keymap.c b/keyboards/pinky/4/keymaps/via/keymap.c index e5f8b65c0..2b876cb32 100644 --- a/keyboards/pinky/4/keymaps/via/keymap.c +++ b/keyboards/pinky/4/keymaps/via/keymap.c | |||
| @@ -15,7 +15,6 @@ | |||
| 15 | */ | 15 | */ |
| 16 | #include QMK_KEYBOARD_H | 16 | #include QMK_KEYBOARD_H |
| 17 | 17 | ||
| 18 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | 18 | enum layer_names { |
| 20 | _QWERTY, | 19 | _QWERTY, |
| 21 | _LOWER, | 20 | _LOWER, |
| @@ -23,65 +22,80 @@ enum layer_names { | |||
| 23 | _ADJUST | 22 | _ADJUST |
| 24 | }; | 23 | }; |
| 25 | 24 | ||
| 26 | #define KC_LOWER MO(_LOWER) | 25 | enum custom_keycodes { |
| 27 | #define KC_RAISE MO(_RAISE) | 26 | QWERTY = SAFE_RANGE, |
| 28 | #define KC_ADJ MO(_ADJUST) | 27 | LOWER, |
| 29 | #define KC_CTLTB CTL_T(KC_TAB) | 28 | RAISE, |
| 29 | ADJUST | ||
| 30 | }; | ||
| 30 | 31 | ||
| 31 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 32 | #define CTL_TAB CTL_T(KC_TAB) |
| 32 | [_QWERTY] = LAYOUT( | ||
| 33 | //,---------------------------------------------------------------------. ,---------------------------------------------------------------------. | ||
| 34 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LPRN, KC_RPRN, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 35 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 36 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, | ||
| 37 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 38 | KC_CTLTB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LCBR, KC_RCBR, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 39 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 40 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_ADJ, KC_ADJ, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
| 41 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 42 | KC_LALT, KC_LOWER, KC_LGUI, KC_SPC, KC_SPC, KC_RGUI, KC_RAISE, KC_RALT | ||
| 43 | //`---------------------------------------' `---------------------------------------' | ||
| 44 | ), | ||
| 45 | 33 | ||
| 46 | [_LOWER] = LAYOUT( | 34 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 47 | //,---------------------------------------------------------------------. ,---------------------------------------------------------------------. | 35 | [_QWERTY] = LAYOUT_split_4x7_4( |
| 48 | KC_GRV, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, _______, | 36 | KC_ESC , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_LPRN, KC_RPRN, KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_BSPC, |
| 49 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 37 | KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_LBRC, KC_RBRC, KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSLS, |
| 50 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 38 | CTL_TAB, KC_A , KC_S , KC_D , KC_F , KC_G , KC_LCBR, KC_RCBR, KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, |
| 51 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 39 | KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , ADJUST , ADJUST , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_ENT , |
| 52 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 40 | KC_LALT, LOWER , KC_LGUI, KC_SPC , KC_SPC , KC_RGUI, RAISE , KC_RALT |
| 53 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 41 | ), |
| 54 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 42 | [_LOWER] = LAYOUT_split_4x7_4( |
| 55 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 43 | KC_GRV , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL , _______, |
| 56 | _______, _______, _______, _______, _______, _______, _______, _______ | 44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 57 | //`---------------------------------------' `---------------------------------------' | 45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 58 | ), | 46 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 47 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 48 | ), | ||
| 49 | [_RAISE] = LAYOUT_split_4x7_4( | ||
| 50 | KC_GRV , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL , _______, | ||
| 51 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 52 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 53 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 54 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 55 | ), | ||
| 56 | [_ADJUST] = LAYOUT_split_4x7_4( | ||
| 57 | _______, KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , _______, _______, KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , _______, | ||
| 58 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_F11 , KC_F12 , _______, | ||
| 59 | _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END , _______, _______, | ||
| 60 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 61 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 62 | ) | ||
| 63 | }; | ||
| 59 | 64 | ||
| 60 | [_RAISE] = LAYOUT( | 65 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
| 61 | //,---------------------------------------------------------------------. ,---------------------------------------------------------------------. | 66 | if (record->event.pressed) { |
| 62 | KC_GRV, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, _______, | 67 | // set_timelog(); |
| 63 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 68 | } |
| 64 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 65 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 66 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 67 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 68 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 69 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 70 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 71 | //`---------------------------------------' `---------------------------------------' | ||
| 72 | ), | ||
| 73 | 69 | ||
| 74 | [_ADJUST] = LAYOUT( | 70 | switch (keycode) { |
| 75 | //,---------------------------------------------------------------------. ,---------------------------------------------------------------------. | 71 | case LOWER: |
| 76 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, | 72 | if (record->event.pressed) { |
| 77 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 73 | layer_on(_LOWER); |
| 78 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_F11, KC_F12, _______, | 74 | update_tri_layer(_LOWER, _RAISE, _ADJUST); |
| 79 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 75 | } else { |
| 80 | _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, _______, | 76 | layer_off(_LOWER); |
| 81 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 77 | update_tri_layer(_LOWER, _RAISE, _ADJUST); |
| 82 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 78 | } |
| 83 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | 79 | return false; |
| 84 | _______, _______, _______, _______, _______, _______, _______, _______ | 80 | break; |
| 85 | //`---------------------------------------' `---------------------------------------' | 81 | case RAISE: |
| 86 | ) | 82 | if (record->event.pressed) { |
| 87 | }; | 83 | layer_on(_RAISE); |
| 84 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 85 | } else { | ||
| 86 | layer_off(_RAISE); | ||
| 87 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 88 | } | ||
| 89 | return false; | ||
| 90 | break; | ||
| 91 | case ADJUST: | ||
| 92 | if (record->event.pressed) { | ||
| 93 | layer_on(_ADJUST); | ||
| 94 | } else { | ||
| 95 | layer_off(_ADJUST); | ||
| 96 | } | ||
| 97 | return false; | ||
| 98 | break; | ||
| 99 | } | ||
| 100 | return true; | ||
| 101 | } | ||
diff --git a/keyboards/pinky/4/readme.md b/keyboards/pinky/4/readme.md new file mode 100644 index 000000000..8209a02e0 --- /dev/null +++ b/keyboards/pinky/4/readme.md | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # Pinky4 | ||
| 2 | |||
| 3 | A split keyboard with 4x7 vertically staggered keys and 4 thumb keys. | ||
| 4 | An idea is inspired from [crkbd](https://github.com/foostan/crkbd), [Lily58](https://github.com/kata0510/Lily58), [Ergo42](https://github.com/Biacco42/Ergo42) and [Helix](https://github.com/MakotoKurauchi/helix). | ||
| 5 | |||
| 6 | * Keyboard Maintainer: [Masayuki Sunahara](https://github.com/tamanishi/) [@tamanishi](https://twitter.com/tamanishi) | ||
| 7 | * Hardware Supported: Pinky4 (4rows) PCB, Pro Micro | ||
| 8 | * Hardware Availability: [Pinky4 PCB & Case Data](https://github.com/tamanishi/Pinky4) | ||
| 9 | |||
| 10 | Make example for this keyboard (after setting up your build environment): | ||
| 11 | |||
| 12 | make pinky/4:default | ||
| 13 | |||
| 14 | Flashing example for this keyboard: | ||
| 15 | |||
| 16 | make pinky/4:default:flash | ||
| 17 | |||
| 18 | To reset the board into bootloader mode, double-tap the Reset switch mounted on the PCB. | ||
| 19 | |||
| 20 | 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/pinky/readme.md b/keyboards/pinky/readme.md index f9eb6ee2b..0e2f1482f 100644 --- a/keyboards/pinky/readme.md +++ b/keyboards/pinky/readme.md | |||
| @@ -1,25 +1,22 @@ | |||
| 1 | Pinky | 1 | # Pinky |
| 2 | === | ||
| 3 | 2 | ||
| 4 | A split keyboard with 3 or 4 x7 vertically staggered keys and 4 thumb keys. | 3 | A split keyboard with 3 or 4 x7 vertically staggered keys and 4 thumb keys. |
| 5 | An idea is inspired from [crkbd](https://github.com/foostan/crkbd), [Lily58](https://github.com/kata0510/Lily58), [Ergo42](https://github.com/Biacco42/Ergo42) and [Helix](https://github.com/MakotoKurauchi/helix). | 4 | An idea is inspired from [crkbd](https://github.com/foostan/crkbd), [Lily58](https://github.com/kata0510/Lily58), [Ergo42](https://github.com/Biacco42/Ergo42) and [Helix](https://github.com/MakotoKurauchi/helix). |
| 6 | 5 | ||
| 7 | Keyboard Maintainer: [Masayuki Sunahara](https://github.com/tamanishi/) [@tamanishi](https://twitter.com/tamanishi) | 6 | * Keyboard Maintainer: [Masayuki Sunahara](https://github.com/tamanishi/) [@tamanishi](https://twitter.com/tamanishi) |
| 8 | Hardware Supported: Pinky3(3rows) or Pinky4(4rows) PCB, Pro Micro | 7 | * Hardware Supported: [Pinky3 (3rows)](3/) or [Pinky4 (4rows)](4/) PCB, Pro Micro |
| 9 | Hardware Availability: [Pinky3 PCB & Case Data](https://github.com/tamanishi/Pinky3), [Pinky4 PCB & Case Data](https://github.com/tamanishi/Pinky4) | 8 | * Hardware Availability: [Pinky3 PCB & Case Data](https://github.com/tamanishi/Pinky3), [Pinky4 PCB & Case Data](https://github.com/tamanishi/Pinky4) |
| 10 | 9 | ||
| 11 | Make example for pinky(3rows) keyboard (after setting up your build environment): | 10 | Make example for this keyboard (after setting up your build environment): |
| 12 | 11 | ||
| 13 | make pinky:default | 12 | make pinky/3:default # for Pinky3 |
| 14 | or | 13 | make pinky/4:default # for Pinky4 |
| 15 | make pinky/3:default | ||
| 16 | 14 | ||
| 17 | Make example for pinky(4rows) keyboard (after setting up your build environment): | 15 | Flashing example for this keyboard: |
| 18 | 16 | ||
| 19 | make pinky/4:default | 17 | make pinky/3:default:flash # for Pinky3 |
| 18 | make pinky/4:default:flash # for Pinky4 | ||
| 20 | 19 | ||
| 21 | Install example for pinky(3rows) keyboard: | 20 | To reset the board into bootloader mode, double-tap the Reset switch mounted on the PCB. |
| 22 | |||
| 23 | make pinky:default:avrdude | ||
| 24 | 21 | ||
| 25 | 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). | 22 | 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/pinky/rules.mk b/keyboards/pinky/rules.mk index b743a7542..b1110356a 100644 --- a/keyboards/pinky/rules.mk +++ b/keyboards/pinky/rules.mk | |||
| @@ -2,34 +2,24 @@ | |||
| 2 | MCU = atmega32u4 | 2 | MCU = atmega32u4 |
| 3 | 3 | ||
| 4 | # Bootloader selection | 4 | # Bootloader selection |
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = caterina | 5 | BOOTLOADER = caterina |
| 13 | 6 | ||
| 14 | # Build Options | 7 | # Build Options |
| 15 | # change yes to no to disable | 8 | # change yes to no to disable |
| 16 | # | 9 | # |
| 17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | 10 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration |
| 18 | MOUSEKEY_ENABLE = no # Mouse keys | 11 | MOUSEKEY_ENABLE = no # Mouse keys |
| 19 | EXTRAKEY_ENABLE = no # Audio control and System control | 12 | EXTRAKEY_ENABLE = no # Audio control and System control |
| 20 | CONSOLE_ENABLE = no # Console for debug | 13 | CONSOLE_ENABLE = no # Console for debug |
| 21 | COMMAND_ENABLE = no # Commands for debug and configuration | 14 | COMMAND_ENABLE = no # Commands for debug and configuration |
| 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
| 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 25 | NKRO_ENABLE = no # USB Nkey Rollover | 18 | NKRO_ENABLE = no # USB Nkey Rollover |
| 26 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
| 27 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow |
| 28 | MIDI_ENABLE = no # MIDI support | 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth |
| 29 | UNICODE_ENABLE = no # Unicode | 22 | AUDIO_ENABLE = no # Audio output |
| 30 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 31 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 32 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 33 | 23 | ||
| 34 | SPLIT_KEYBOARD = yes | 24 | SPLIT_KEYBOARD = yes |
| 35 | 25 | ||
