diff options
| author | wanleg <32079073+wanleg@users.noreply.github.com> | 2018-12-05 08:42:50 -0800 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-12-05 08:42:50 -0800 |
| commit | 0677e64655f230722eaa35160acaefacf3684a43 (patch) | |
| tree | 4e52311f25851d7094a978b67adf6d8bb4021803 | |
| parent | 20130e010badad1968762439e66c71dc4b0760a1 (diff) | |
| download | qmk_firmware-0677e64655f230722eaa35160acaefacf3684a43.tar.gz qmk_firmware-0677e64655f230722eaa35160acaefacf3684a43.zip | |
Keymap: Wanleg layout updates (#4550)
* config fixes (including for issue #3678)
* put back audio
* jj40 backlighting setup
* jj40 backlighting setup
* rules.mk fix
* jj40 backlighting settings
* iris setup
* iris setup
* iris setup
* iris setup
* iris setup - onehand
* remove commented-out section
* edits due to #4403
* xd75 testing
* fix 5x15 layout issues with 5x5 bluetooth & xd75
* commenting out unused placeholders
* change iris to more wanleg-like 4x12 layout
* formatting changes
* onehand layout cleanup/fix
* revert temp change
| -rw-r--r-- | keyboards/iris/keymaps/wanleg/config.h | 33 | ||||
| -rw-r--r-- | keyboards/iris/keymaps/wanleg/keymap.c | 76 | ||||
| -rw-r--r-- | keyboards/iris/keymaps/wanleg/rules.mk | 5 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/wanleg/config.h | 13 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/wanleg/keymap.c | 17 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/wanleg/rules.mk | 16 | ||||
| -rw-r--r-- | layouts/community/ortho_5x15/wanleg/config.h | 2 | ||||
| -rw-r--r-- | layouts/community/ortho_5x15/wanleg/keymap.c | 49 | ||||
| -rw-r--r-- | layouts/community/ortho_5x15/wanleg/rules.mk | 19 | ||||
| -rw-r--r-- | users/wanleg/config.h | 12 | ||||
| -rw-r--r-- | users/wanleg/rules.mk | 10 | ||||
| -rw-r--r-- | users/wanleg/tapdances.c | 4 | ||||
| -rw-r--r-- | users/wanleg/wanleg.h | 18 |
13 files changed, 208 insertions, 66 deletions
diff --git a/keyboards/iris/keymaps/wanleg/config.h b/keyboards/iris/keymaps/wanleg/config.h new file mode 100644 index 000000000..9b9000768 --- /dev/null +++ b/keyboards/iris/keymaps/wanleg/config.h | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2017 Danny Nguyen <danny@keeb.io> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | /* Use I2C or Serial, not both */ | ||
| 21 | |||
| 22 | #define USE_SERIAL | ||
| 23 | #undef USE_I2C | ||
| 24 | |||
| 25 | /* Select hand configuration */ | ||
| 26 | |||
| 27 | // #define MASTER_LEFT | ||
| 28 | // #define MASTER_RIGHT | ||
| 29 | #define EE_HANDS | ||
| 30 | |||
| 31 | #define QMK_ESC_OUTPUT F6 // usually COL | ||
| 32 | #define QMK_ESC_INPUT D7 // usually ROW | ||
| 33 | #define QMK_LED B0 | ||
diff --git a/keyboards/iris/keymaps/wanleg/keymap.c b/keyboards/iris/keymaps/wanleg/keymap.c new file mode 100644 index 000000000..6f8ff9066 --- /dev/null +++ b/keyboards/iris/keymaps/wanleg/keymap.c | |||
| @@ -0,0 +1,76 @@ | |||
| 1 | |||
| 2 | #include QMK_KEYBOARD_H | ||
| 3 | #include "wanleg.h" | ||
| 4 | |||
| 5 | |||
| 6 | #define LAYOUT_iris_base( \ | ||
| 7 | K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, \ | ||
| 8 | K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, \ | ||
| 9 | K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \ | ||
| 10 | K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C \ | ||
| 11 | ) \ | ||
| 12 | LAYOUT_wrapper( \ | ||
| 13 | K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, \ | ||
| 14 | K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, \ | ||
| 15 | K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \ | ||
| 16 | K31, K32, K33, K34, K35, K36, _______, _______, K37, K38, K39, K3A, K3B, K3C, \ | ||
| 17 | _______, _______, _______, _______, _______, _______ \ | ||
| 18 | ) | ||
| 19 | #define LAYOUT_iris_base_wrapper(...) LAYOUT_iris_base(__VA_ARGS__) | ||
| 20 | |||
| 21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 22 | |||
| 23 | [_GK] = LAYOUT_iris_base_wrapper( | ||
| 24 | _______________GherkinLike_0_______________, | ||
| 25 | _______________GherkinLike_1_______________, | ||
| 26 | _______________GherkinLike_2_______________, | ||
| 27 | _______________GherkinLike_3_OneHand_______ | ||
| 28 | ), | ||
| 29 | [ONE] = LAYOUT_wrapper( | ||
| 30 | _______________Qwerty_Row__0_______________, | ||
| 31 | _______________Qwerty_Row__1_______________, | ||
| 32 | _______________Qwerty_Row__2_______________, | ||
| 33 | KC_LCTL, KC_LGUI, KC_LALT, GHERKIN, SUBTER, SH_T(KC_SPC), _______, _______, SH_T(KC_SPC), SUPRA, KC_RGUI, KC_RALT, GHERKIN, KC_RCTL, | ||
| 34 | _______, _______, _______, _______, _______, _______ | ||
| 35 | ), | ||
| 36 | [SUP] = LAYOUT_iris_base_wrapper( | ||
| 37 | ________________SUPRA_Row_0________________, | ||
| 38 | ________________SUPRA_Row_1________________, | ||
| 39 | ________________SUPRA_Row_2________________, | ||
| 40 | ________________SUPRA_Row_3________________ | ||
| 41 | ), | ||
| 42 | [SUB] = LAYOUT_iris_base_wrapper( | ||
| 43 | _______________SUBTER_Row__0_______________, | ||
| 44 | _______________SUBTER_Row__1_______________, | ||
| 45 | _______________SUBTER_Row__2_______________, | ||
| 46 | _______________SUBTER_Row__3_______________ | ||
| 47 | ), | ||
| 48 | [NUM] = LAYOUT_iris_base_wrapper( | ||
| 49 | _______________NUMBERS_Row_0_______________, | ||
| 50 | _______________NUMBERS_Row_1_______________, | ||
| 51 | _______________NUMBERS_Row_2_______________, | ||
| 52 | _______________NUMBERS_Row_3_______________ | ||
| 53 | ), | ||
| 54 | [DIR] = LAYOUT_iris_base_wrapper( | ||
| 55 | _____________DIRECTIONS_Row__0_____________, | ||
| 56 | _____________DIRECTIONS_Row__1_____________, | ||
| 57 | _____________DIRECTIONS_Row__2_____________, | ||
| 58 | _______, _______, ONEHAND, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 59 | ), | ||
| 60 | [ETC] = LAYOUT_iris_base_wrapper( | ||
| 61 | ______________ETCETERA_Row__0______________, | ||
| 62 | ______________ETCETERA_Row__1______________, | ||
| 63 | ______________ETCETERA_Row__2______________, | ||
| 64 | ______________ETCETERA_Row__3______________ | ||
| 65 | ) | ||
| 66 | |||
| 67 | }; | ||
| 68 | |||
| 69 | |||
| 70 | void matrix_init_keymap(void) { | ||
| 71 | DDRD &= ~(1<<5); | ||
| 72 | PORTD &= ~(1<<5); | ||
| 73 | |||
| 74 | DDRB &= ~(1<<0); | ||
| 75 | PORTB &= ~(1<<0); | ||
| 76 | } | ||
diff --git a/keyboards/iris/keymaps/wanleg/rules.mk b/keyboards/iris/keymaps/wanleg/rules.mk new file mode 100644 index 000000000..bbb05a5b4 --- /dev/null +++ b/keyboards/iris/keymaps/wanleg/rules.mk | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | RGBLIGHT_ENABLE = no | ||
| 2 | BACKLIGHT_ENABLE = no | ||
| 3 | |||
| 4 | SWAP_HANDS_ENABLE = yes | ||
| 5 | BOOTLOADER = qmk-dfu | ||
diff --git a/layouts/community/ortho_4x12/wanleg/config.h b/layouts/community/ortho_4x12/wanleg/config.h index 2b2072db2..f7650ddd3 100644 --- a/layouts/community/ortho_4x12/wanleg/config.h +++ b/layouts/community/ortho_4x12/wanleg/config.h | |||
| @@ -1,5 +1,14 @@ | |||
| 1 | #pragma once | 1 | #pragma once |
| 2 | 2 | ||
| 3 | #if defined(KEYBOARD_jj40) | ||
| 4 | #undef BACKLIGHT_BREATHING | ||
| 5 | #undef BACKLIGHT_LEVELS | ||
| 6 | #undef BREATHING_PERIOD | ||
| 7 | #define BACKLIGHT_BREATHING | ||
| 8 | #define BACKLIGHT_LEVELS 3 | ||
| 9 | #define BREATHING_PERIOD 15 | ||
| 10 | #endif | ||
| 11 | |||
| 3 | //QMK DFU settings (ProMicro boards with QMK bootloader) | 12 | //QMK DFU settings (ProMicro boards with QMK bootloader) |
| 4 | // set top left key as bootloader mode escape key on Lets Split rev2 | 13 | // set top left key as bootloader mode escape key on Lets Split rev2 |
| 5 | #if defined(KEYBOARD_lets_split_rev2) | 14 | #if defined(KEYBOARD_lets_split_rev2) |
| @@ -12,7 +21,7 @@ | |||
| 12 | #endif | 21 | #endif |
| 13 | 22 | ||
| 14 | // set top left key as bootloader mode escape key on 4x4 48key layout | 23 | // set top left key as bootloader mode escape key on 4x4 48key layout |
| 15 | #if defined(KEYBOARD_4x4) && !defined(PRO_MICRO) | 24 | #if defined(KEYBOARD_40percentclub_4x4) && !defined(PRO_MICRO) |
| 16 | #define QMK_LED B0 | 25 | #define QMK_LED B0 |
| 17 | #define QMK_ESC_OUTPUT C6 // usually COL | 26 | #define QMK_ESC_OUTPUT C6 // usually COL |
| 18 | #define QMK_ESC_INPUT B2 // usually ROW | 27 | #define QMK_ESC_INPUT B2 // usually ROW |
| @@ -20,7 +29,7 @@ | |||
| 20 | 29 | ||
| 21 | // use alternate settings for 4x4 board using ProMicro instead of Micro | 30 | // use alternate settings for 4x4 board using ProMicro instead of Micro |
| 22 | // usage: make 4x4:wanleg PM=yes | 31 | // usage: make 4x4:wanleg PM=yes |
| 23 | #if defined(KEYBOARD_4x4) && defined(PRO_MICRO) | 32 | #if defined(KEYBOARD_40percentclub_4x4) && defined(PRO_MICRO) |
| 24 | #define QMK_ESC_OUTPUT F4 // usually COL | 33 | #define QMK_ESC_OUTPUT F4 // usually COL |
| 25 | #define QMK_ESC_INPUT D1 // usually ROW | 34 | #define QMK_ESC_INPUT D1 // usually ROW |
| 26 | #define QMK_LED B0 | 35 | #define QMK_LED B0 |
diff --git a/layouts/community/ortho_4x12/wanleg/keymap.c b/layouts/community/ortho_4x12/wanleg/keymap.c index 6fe8446f6..23e794dc4 100644 --- a/layouts/community/ortho_4x12/wanleg/keymap.c +++ b/layouts/community/ortho_4x12/wanleg/keymap.c | |||
| @@ -15,8 +15,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 15 | _______________Qwerty_Row__2_______________, | 15 | _______________Qwerty_Row__2_______________, |
| 16 | KC_LCTL, KC_LGUI, KC_LALT, GHERKIN, SUBTER, SH_T(KC_SPC), SH_T(KC_SPC), SUPRA, KC_RGUI, KC_RALT, GHERKIN, KC_RCTL | 16 | KC_LCTL, KC_LGUI, KC_LALT, GHERKIN, SUBTER, SH_T(KC_SPC), SH_T(KC_SPC), SUPRA, KC_RGUI, KC_RALT, GHERKIN, KC_RCTL |
| 17 | ), | 17 | ), |
| 18 | 18 | [DIR] = LAYOUT_ortho_4x12_wrapper( | |
| 19 | #elif defined(KEYBOARD_4x4) | 19 | _____________DIRECTIONS_Row__0_____________, |
| 20 | _____________DIRECTIONS_Row__1_____________, | ||
| 21 | _____________DIRECTIONS_Row__2_____________, | ||
| 22 | _______, _______, ONEHAND, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 23 | ), | ||
| 24 | #elif defined(KEYBOARD_40percentclub_4x4) | ||
| 20 | [_GK] = LAYOUT_ortho_4x12_wrapper( | 25 | [_GK] = LAYOUT_ortho_4x12_wrapper( |
| 21 | _______________GherkinLike_0_______________, | 26 | _______________GherkinLike_0_______________, |
| 22 | _______________GherkinLike_1_______________, | 27 | _______________GherkinLike_1_______________, |
| @@ -31,6 +36,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 31 | _______________NUMPAD_Row__3_______________ | 36 | _______________NUMPAD_Row__3_______________ |
| 32 | ), | 37 | ), |
| 33 | 38 | ||
| 39 | #elif defined(KEYBOARD_jj40) | ||
| 40 | [_GK] = LAYOUT_ortho_4x12_wrapper( | ||
| 41 | _______________GherkinLike_0_______________, | ||
| 42 | _______________GherkinLike_1_______________, | ||
| 43 | _______________GherkinLike_2_______________, | ||
| 44 | TD(RST_TAP_DANCE), BL_TOGG, BL_STEP, BL_BRTG, NUMBER, ETCETERA, KC_SPC,DIRECTION, KC_RGUI, KC_RALT, KC_DEL, KC_RCTL | ||
| 45 | ), | ||
| 46 | |||
| 34 | #else | 47 | #else |
| 35 | [_GK] = LAYOUT_ortho_4x12_wrapper( | 48 | [_GK] = LAYOUT_ortho_4x12_wrapper( |
| 36 | _______________GherkinLike_0_______________, | 49 | _______________GherkinLike_0_______________, |
diff --git a/layouts/community/ortho_4x12/wanleg/rules.mk b/layouts/community/ortho_4x12/wanleg/rules.mk index 835022f4b..e8277610b 100644 --- a/layouts/community/ortho_4x12/wanleg/rules.mk +++ b/layouts/community/ortho_4x12/wanleg/rules.mk | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | AUDIO_ENABLE = no | 1 | AUDIO_ENABLE = no |
| 2 | SWAP_HANDS_ENABLE = yes | 2 | SWAP_HANDS_ENABLE = no |
| 3 | 3 | ||
| 4 | ifeq ($(strip $(KEYBOARD)), jj40) | 4 | ifeq ($(strip $(KEYBOARD)), lets_split/rev2) |
| 5 | SWAP_HANDS_ENABLE = no | 5 | SWAP_HANDS_ENABLE = yes |
| 6 | endif | 6 | endif |
| 7 | 7 | ||
| 8 | ifeq ($(strip $(KEYBOARD)), 40percentclub/4x4) | 8 | ifeq ($(strip $(KEYBOARD)), planck/rev6) |
| 9 | SWAP_HANDS_ENABLE = no | 9 | AUDIO_ENABLE = yes |
| 10 | endif | 10 | endif \ No newline at end of file |
| 11 | |||
| 12 | ifeq ($(strip $(KEYBOARD)), zlant) | ||
| 13 | SWAP_HANDS_ENABLE = no | ||
| 14 | endif | ||
diff --git a/layouts/community/ortho_5x15/wanleg/config.h b/layouts/community/ortho_5x15/wanleg/config.h index 1aeda2db4..d2b3d6719 100644 --- a/layouts/community/ortho_5x15/wanleg/config.h +++ b/layouts/community/ortho_5x15/wanleg/config.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #pragma once | 1 | #pragma once |
| 2 | 2 | ||
| 3 | //5x5 powered by Adafruit Feather 32u4 Bluefruit LE | 3 | //5x5 powered by Adafruit Feather 32u4 Bluefruit LE |
| 4 | #if defined(KEYBOARD_5x5) && defined(BLUEFRUIT) | 4 | #if defined(KEYBOARD_40percentclub_5x5) && defined(BLUEFRUIT) |
| 5 | 5 | ||
| 6 | //need to undefine standard 5x5 array before defining alternate Bluefruit array | 6 | //need to undefine standard 5x5 array before defining alternate Bluefruit array |
| 7 | #undef MATRIX_ROW_PINS | 7 | #undef MATRIX_ROW_PINS |
diff --git a/layouts/community/ortho_5x15/wanleg/keymap.c b/layouts/community/ortho_5x15/wanleg/keymap.c index 66b3ce018..51b020fcd 100644 --- a/layouts/community/ortho_5x15/wanleg/keymap.c +++ b/layouts/community/ortho_5x15/wanleg/keymap.c | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | #define _________________Num_Row_75________________ KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NLCK | 6 | #define _________________Num_Row_75________________ KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NLCK |
| 7 | 7 | ||
| 8 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 8 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 9 | #if defined(KEYBOARD_5x5) | 9 | #if defined(KEYBOARD_40percentclub_5x5) |
| 10 | [GK75] = LAYOUT_ortho_5x15_wrapper( | 10 | [GK75] = LAYOUT_ortho_5x15_wrapper( |
| 11 | _________________Num_Row_75________________, QWERTY75, XXXXXXX, FUNCTION75, | 11 | _________________Num_Row_75________________, QWERTY75, XXXXXXX, FUNCTION75, |
| 12 | _______________GherkinLike_0_______________, KC_KP_7, KC_KP_8, KC_KP_9, | 12 | _______________GherkinLike_0_______________, KC_KP_7, KC_KP_8, KC_KP_9, |
| @@ -23,6 +23,30 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 23 | TD(RST_TAP_DANCE), GHERKIN75, NUMPAD, gNUMBER, gETCETERA, KC_SPC,gDIRECTION, KC_RGUI, KC_RALT, KC_RGUI | 23 | TD(RST_TAP_DANCE), GHERKIN75, NUMPAD, gNUMBER, gETCETERA, KC_SPC,gDIRECTION, KC_RGUI, KC_RALT, KC_RGUI |
| 24 | ), | 24 | ), |
| 25 | 25 | ||
| 26 | [gNUM] = LAYOUT_ortho_5x10_wrapper( | ||
| 27 | _________________BLANK_50__________________, | ||
| 28 | _______________Gherkin_NUM_0_______________, | ||
| 29 | _______________Gherkin_NUM_1_______________, | ||
| 30 | _______________Gherkin_NUM_2_______________, | ||
| 31 | _______, _______, _______, _______, _______, KC_ENT, KC_RSFT, KC_RGUI, _______, _______ | ||
| 32 | ), | ||
| 33 | |||
| 34 | [gDIR] = LAYOUT_ortho_5x10_wrapper( | ||
| 35 | _________________BLANK_50__________________, | ||
| 36 | _______________Gherkin_DIR_0_______________, | ||
| 37 | _______________Gherkin_DIR_1_______________, | ||
| 38 | _______________Gherkin_DIR_2_______________, | ||
| 39 | _________________BLANK_50__________________ | ||
| 40 | ), | ||
| 41 | |||
| 42 | [gETC] = LAYOUT_ortho_5x10_wrapper( | ||
| 43 | _________________BLANK_50__________________, | ||
| 44 | _______________Gherkin_ETC_0_______________, | ||
| 45 | _______________Gherkin_ETC_1_______________, | ||
| 46 | _______________Gherkin_ETC_2_______________, | ||
| 47 | _______, KC_CAPS, _______, _______, _______, LALT(LCTL(KC_DEL)), _______, _______, _______, _______ | ||
| 48 | ), | ||
| 49 | |||
| 26 | #if defined(BLUEFRUIT) | 50 | #if defined(BLUEFRUIT) |
| 27 | [PAD] = LAYOUT_ortho_5x5_wrapper( | 51 | [PAD] = LAYOUT_ortho_5x5_wrapper( |
| 28 | _______, _______, _______, OUT_BT, OUT_USB, | 52 | _______, _______, _______, OUT_BT, OUT_USB, |
| @@ -210,27 +234,4 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 210 | _______, _______, _______, _______, _______, _______, KC_BTN1, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R | 234 | _______, _______, _______, _______, _______, _______, KC_BTN1, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R |
| 211 | ), | 235 | ), |
| 212 | 236 | ||
| 213 | [gNUM] = LAYOUT_ortho_5x10_wrapper( | ||
| 214 | _________________BLANK_50__________________, | ||
| 215 | _______________Gherkin_NUM_0_______________, | ||
| 216 | _______________Gherkin_NUM_1_______________, | ||
| 217 | _______________Gherkin_NUM_2_______________, | ||
| 218 | _______, _______, _______, _______, _______, KC_ENT, KC_RSFT, KC_RGUI, _______, _______ | ||
| 219 | ), | ||
| 220 | |||
| 221 | [gDIR] = LAYOUT_ortho_5x10_wrapper( | ||
| 222 | _________________BLANK_50__________________, | ||
| 223 | _______________Gherkin_DIR_0_______________, | ||
| 224 | _______________Gherkin_DIR_1_______________, | ||
| 225 | _______________Gherkin_DIR_2_______________, | ||
| 226 | _________________BLANK_50__________________ | ||
| 227 | ), | ||
| 228 | |||
| 229 | [gETC] = LAYOUT_ortho_5x10_wrapper( | ||
| 230 | _________________BLANK_50__________________, | ||
| 231 | _______________Gherkin_ETC_0_______________, | ||
| 232 | _______________Gherkin_ETC_1_______________, | ||
| 233 | _______________Gherkin_ETC_2_______________, | ||
| 234 | _______, KC_CAPS, _______, _______, _______, LALT(LCTL(KC_DEL)), _______, _______, _______, _______ | ||
| 235 | ), | ||
| 236 | }; | 237 | }; |
diff --git a/layouts/community/ortho_5x15/wanleg/rules.mk b/layouts/community/ortho_5x15/wanleg/rules.mk index bfc4c69d9..96bbaa458 100644 --- a/layouts/community/ortho_5x15/wanleg/rules.mk +++ b/layouts/community/ortho_5x15/wanleg/rules.mk | |||
| @@ -1,8 +1,11 @@ | |||
| 1 | ifeq (,$(findstring yes,$(BLUEFRUIT))) | 1 | #ifeq ($(strip $(KEYBOARD)), xd75) |
| 2 | BLUETOOTH = AdafruitBLE | 2 | #or |
| 3 | BLUETOOTH_ENABLE = yes | 3 | #ifeq (,$(findstring xd75,$(KEYBOARD))) |
| 4 | F_CPU = 8000000 | 4 | #something |
| 5 | CONSOLE_ENABLE = no # Console for debug(+400) | 5 | #endif |
| 6 | COMMAND_ENABLE = no # Commands for debug and configuration | 6 | |
| 7 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | 7 | #ifeq ($(strip $(KEYBOARD)), 40percentclub/5x5) |
| 8 | endif \ No newline at end of file | 8 | #or |
| 9 | #ifeq (,$(findstring 40percentclub/5x5,$(KEYBOARD))) | ||
| 10 | #something | ||
| 11 | #endif \ No newline at end of file | ||
diff --git a/users/wanleg/config.h b/users/wanleg/config.h index f2e785659..0c8b048af 100644 --- a/users/wanleg/config.h +++ b/users/wanleg/config.h | |||
| @@ -1,10 +1,12 @@ | |||
| 1 | #ifndef USERSPACE_CONFIG_H | 1 | #pragma once |
| 2 | #define USERSPACE_CONFIG_H | ||
| 3 | 2 | ||
| 4 | //TAPPING_TERM | 3 | //TAPPING_TERM |
| 5 | //tapping term short (<100): on multi-purpose keys, slow taps may not register, but "holds" register easier. multi-tap keys may be difficult to activate. | 4 | //tapping term short (<100): on multi-purpose keys, slow taps may not register, but "holds" register easier. multi-tap keys may be difficult to activate. |
| 6 | //tapping term long (>200): holds don't register as easily - noticeable when typing quickly (e.g. shift doesn't want to engage.) | 5 | //tapping term long (>200): holds don't register as easily - noticeable when typing quickly (e.g. shift doesn't want to engage.) |
| 7 | #if defined(TAP_DANCE_ENABLE) && defined(KEYBOARD_lets_split_rev2) | 6 | |
| 7 | |||
| 8 | //MIGHT HAVE TO SPLIT THIS INTO TWO CONDITIONS | ||
| 9 | #if defined(TAP_DANCE_ENABLE) && defined(KEYBOARD_lets_split_rev2) || defined(KEYBOARD_iris_rev2) | ||
| 8 | //Kailh Coppers activate quickly and don't need a long tapping term | 10 | //Kailh Coppers activate quickly and don't need a long tapping term |
| 9 | #define TAPPING_TERM 100 | 11 | #define TAPPING_TERM 100 |
| 10 | 12 | ||
| @@ -39,6 +41,4 @@ | |||
| 39 | // Disable mod tap interrrupt | 41 | // Disable mod tap interrrupt |
| 40 | #ifndef IGNORE_MOD_TAP_INTERRUPT | 42 | #ifndef IGNORE_MOD_TAP_INTERRUPT |
| 41 | #define IGNORE_MOD_TAP_INTERRUPT | 43 | #define IGNORE_MOD_TAP_INTERRUPT |
| 42 | #endif // !mod tap interrrupt | 44 | #endif // !mod tap interrrupt \ No newline at end of file |
| 43 | |||
| 44 | #endif // !USERSPACE_CONFIG_H | ||
diff --git a/users/wanleg/rules.mk b/users/wanleg/rules.mk index e3e802b4a..c6569594b 100644 --- a/users/wanleg/rules.mk +++ b/users/wanleg/rules.mk | |||
| @@ -18,5 +18,13 @@ endif | |||
| 18 | #use alternate settings for boards using "Adafruit Feather 32u4 Bluefruit LE" instead of Micro | 18 | #use alternate settings for boards using "Adafruit Feather 32u4 Bluefruit LE" instead of Micro |
| 19 | #example usage: make 5x5:wanleg BT=yes | 19 | #example usage: make 5x5:wanleg BT=yes |
| 20 | ifeq ($(strip $(BT)), yes) | 20 | ifeq ($(strip $(BT)), yes) |
| 21 | OPT_DEFS += -DBLUEFRUIT | 21 | #opt_defs for alternate pin usage |
| 22 | OPT_DEFS += -DBLUEFRUIT | ||
| 23 | #Adafruit Bluefruit controller settings | ||
| 24 | BLUETOOTH = AdafruitBLE | ||
| 25 | BLUETOOTH_ENABLE = yes | ||
| 26 | F_CPU = 8000000 | ||
| 27 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 28 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 29 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 22 | endif \ No newline at end of file | 30 | endif \ No newline at end of file |
diff --git a/users/wanleg/tapdances.c b/users/wanleg/tapdances.c index 3878e6d31..e5051f9ee 100644 --- a/users/wanleg/tapdances.c +++ b/users/wanleg/tapdances.c | |||
| @@ -73,9 +73,9 @@ void CAD_finished (qk_tap_dance_state_t *state, void *user_data) { | |||
| 73 | //register_code(KC_NO); | 73 | //register_code(KC_NO); |
| 74 | //take a screenshot of a single window, open Paint and paste | 74 | //take a screenshot of a single window, open Paint and paste |
| 75 | SEND_STRING(SS_LALT(SS_TAP(X_PSCREEN)) SS_LGUI("r")); | 75 | SEND_STRING(SS_LALT(SS_TAP(X_PSCREEN)) SS_LGUI("r")); |
| 76 | _delay_ms(500); | 76 | wait_ms(500); |
| 77 | SEND_STRING("mspaint" SS_TAP(X_ENTER)); | 77 | SEND_STRING("mspaint" SS_TAP(X_ENTER)); |
| 78 | _delay_ms(700); | 78 | wait_ms(700); |
| 79 | SEND_STRING(SS_LCTRL("v")); | 79 | SEND_STRING(SS_LCTRL("v")); |
| 80 | break; //register this keycode when button is held | 80 | break; //register this keycode when button is held |
| 81 | case DOUBLE_TAP: | 81 | case DOUBLE_TAP: |
diff --git a/users/wanleg/wanleg.h b/users/wanleg/wanleg.h index 9e0cf3ee5..c2644cd6c 100644 --- a/users/wanleg/wanleg.h +++ b/users/wanleg/wanleg.h | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #ifndef USERSPACE | 1 | #pragma once |
| 2 | #define USERSPACE | ||
| 3 | 2 | ||
| 4 | #include "quantum.h" | 3 | #include "quantum.h" |
| 5 | 4 | ||
| @@ -32,7 +31,6 @@ enum userspace_layers { | |||
| 32 | #elif KEYBOARD_xd75 | 31 | #elif KEYBOARD_xd75 |
| 33 | enum userspace_layers { | 32 | enum userspace_layers { |
| 34 | GK75 = 0, | 33 | GK75 = 0, |
| 35 | PAD, | ||
| 36 | QW75, | 34 | QW75, |
| 37 | SUB75, | 35 | SUB75, |
| 38 | SUP75, | 36 | SUP75, |
| @@ -43,6 +41,7 @@ enum userspace_layers { | |||
| 43 | gGK, | 41 | gGK, |
| 44 | _GK, | 42 | _GK, |
| 45 | _QW, | 43 | _QW, |
| 44 | PAD, | ||
| 46 | ONE, | 45 | ONE, |
| 47 | SUB, | 46 | SUB, |
| 48 | SUP, | 47 | SUP, |
| @@ -54,7 +53,7 @@ enum userspace_layers { | |||
| 54 | gETC, | 53 | gETC, |
| 55 | GK50, | 54 | GK50, |
| 56 | }; | 55 | }; |
| 57 | #elif KEYBOARD_5x5 | 56 | #elif KEYBOARD_40percentclub_5x5 |
| 58 | enum userspace_layers { | 57 | enum userspace_layers { |
| 59 | GK50 = 0, | 58 | GK50 = 0, |
| 60 | gNUM, | 59 | gNUM, |
| @@ -82,8 +81,8 @@ enum userspace_layers { | |||
| 82 | #else | 81 | #else |
| 83 | enum userspace_layers { | 82 | enum userspace_layers { |
| 84 | _GK = 0, | 83 | _GK = 0, |
| 85 | PAD, | ||
| 86 | _QW, | 84 | _QW, |
| 85 | PAD, | ||
| 87 | ONE, | 86 | ONE, |
| 88 | SUB, | 87 | SUB, |
| 89 | SUP, | 88 | SUP, |
| @@ -156,11 +155,11 @@ enum { | |||
| 156 | #define KEYMAP_wrapper(...) LAYOUT(__VA_ARGS__) | 155 | #define KEYMAP_wrapper(...) LAYOUT(__VA_ARGS__) |
| 157 | #define LAYOUT_wrapper(...) LAYOUT(__VA_ARGS__) | 156 | #define LAYOUT_wrapper(...) LAYOUT(__VA_ARGS__) |
| 158 | #define LAYOUT_ortho_3x10_wrapper(...) LAYOUT_ortho_3x10(__VA_ARGS__) | 157 | #define LAYOUT_ortho_3x10_wrapper(...) LAYOUT_ortho_3x10(__VA_ARGS__) |
| 159 | #define LAYOUT_ortho_5x10_wrapper(...) LAYOUT_ortho_5x10(__VA_ARGS__) | ||
| 160 | #define LAYOUT_ortho_4x12_wrapper(...) LAYOUT_ortho_4x12(__VA_ARGS__) | ||
| 161 | #define LAYOUT_ortho_5x15_wrapper(...) LAYOUT_ortho_5x15(__VA_ARGS__) | ||
| 162 | #define LAYOUT_ortho_4x4_wrapper(...) LAYOUT_ortho_4x4(__VA_ARGS__) | 158 | #define LAYOUT_ortho_4x4_wrapper(...) LAYOUT_ortho_4x4(__VA_ARGS__) |
| 159 | #define LAYOUT_ortho_4x12_wrapper(...) LAYOUT_ortho_4x12(__VA_ARGS__) | ||
| 163 | #define LAYOUT_ortho_5x5_wrapper(...) LAYOUT_ortho_5x5(__VA_ARGS__) | 160 | #define LAYOUT_ortho_5x5_wrapper(...) LAYOUT_ortho_5x5(__VA_ARGS__) |
| 161 | #define LAYOUT_ortho_5x10_wrapper(...) LAYOUT_ortho_5x10(__VA_ARGS__) | ||
| 162 | #define LAYOUT_ortho_5x15_wrapper(...) LAYOUT_ortho_5x15(__VA_ARGS__) | ||
| 164 | 163 | ||
| 165 | // Blocks for each of the major keyboard layouts | 164 | // Blocks for each of the major keyboard layouts |
| 166 | // Organized so we can quickly adapt and modify all of them | 165 | // Organized so we can quickly adapt and modify all of them |
| @@ -229,7 +228,7 @@ enum { | |||
| 229 | 228 | ||
| 230 | /* Gherkin-Like | 229 | /* Gherkin-Like |
| 231 | * .-----------------------------------------------------------------------------------------------------------. | 230 | * .-----------------------------------------------------------------------------------------------------------. |
| 232 | * | ESC | Q//ESC | W | E | R | T | Y | U | I | O | P | BSPC | | 231 | * | ESC | Q//ESC | W | E | R | T | Y | U | I | O | P | BSPC | |
| 233 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| | 232 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| |
| 234 | * | TAB | A | S | D | F | G | H | J | K | L | SPACE | ' | | 233 | * | TAB | A | S | D | F | G | H | J | K | L | SPACE | ' | |
| 235 | * | | | | | | | | | | |SFThold | | | 234 | * | | | | | | | | | | |SFThold | | |
| @@ -361,4 +360,3 @@ enum { | |||
| 361 | #define _______________NUMPAD_Row__1_______________ KC_KP_4, KC_KP_5, KC_KP_6, KC_SPC | 360 | #define _______________NUMPAD_Row__1_______________ KC_KP_4, KC_KP_5, KC_KP_6, KC_SPC |
| 362 | #define _______________NUMPAD_Row__2_______________ KC_KP_1, KC_KP_2, KC_KP_3, KC_PENT | 361 | #define _______________NUMPAD_Row__2_______________ KC_KP_1, KC_KP_2, KC_KP_3, KC_PENT |
| 363 | #define _______________NUMPAD_Row__3_______________ KC_KP_0, TD(LYR_TAP_DANCE), KC_KP_DOT, KC_PMNS | 362 | #define _______________NUMPAD_Row__3_______________ KC_KP_0, TD(LYR_TAP_DANCE), KC_KP_DOT, KC_PMNS |
| 364 | #endif // !USERSPACE | ||
