aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwanleg <32079073+wanleg@users.noreply.github.com>2018-08-30 09:34:14 -0700
committerDrashna Jaelre <drashna@live.com>2018-08-30 09:34:14 -0700
commit2fcfd5cff7089338385c40a630315939a7a9ebbc (patch)
tree11e549f05d6141bc40ede234b319ec6edb54be4b
parent2b707f3470afd10f2db9db17d096dda836535444 (diff)
downloadqmk_firmware-2fcfd5cff7089338385c40a630315939a7a9ebbc.tar.gz
qmk_firmware-2fcfd5cff7089338385c40a630315939a7a9ebbc.zip
Keymap: Wanleg updates (#3794)
* various edits and minor additions * updates * updates * updates * lets_split LEDs off instructions * lets_split LEDs off instructions * turn off lets_split LEDs in userspace * one-hand setup for right side
-rw-r--r--keyboards/4x4/rules.mk2
-rw-r--r--keyboards/5x5/info.json0
-rw-r--r--keyboards/5x5/rules.mk2
-rw-r--r--layouts/community/ortho_4x12/wanleg/config.h7
-rw-r--r--layouts/community/ortho_4x12/wanleg/keymap.c2
-rw-r--r--layouts/community/ortho_4x12/wanleg/readme.md40
-rw-r--r--layouts/community/ortho_4x12/wanleg/rules.mk4
-rw-r--r--layouts/community/ortho_5x10/layout.json5
-rw-r--r--layouts/community/ortho_5x10/readme.md3
-rw-r--r--layouts/community/ortho_5x10/wanleg/config.h9
-rw-r--r--layouts/community/ortho_5x10/wanleg/keymap.c38
-rw-r--r--layouts/community/ortho_5x10/wanleg/rules.mk3
-rw-r--r--users/wanleg/wanleg.c21
-rw-r--r--users/wanleg/wanleg.h7
14 files changed, 132 insertions, 11 deletions
diff --git a/keyboards/4x4/rules.mk b/keyboards/4x4/rules.mk
index 3ea4476db..b8b4bccc4 100644
--- a/keyboards/4x4/rules.mk
+++ b/keyboards/4x4/rules.mk
@@ -71,4 +71,4 @@ AUDIO_ENABLE = no # Audio output on port C6
71FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches 71FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
72HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) 72HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
73 73
74LAYOUT = ortho_4x4 ortho_4x8 ortho_4x12 ortho_4x16 74LAYOUTS = ortho_4x4 ortho_4x8 ortho_4x12 ortho_4x16
diff --git a/keyboards/5x5/info.json b/keyboards/5x5/info.json
deleted file mode 100644
index e69de29bb..000000000
--- a/keyboards/5x5/info.json
+++ /dev/null
diff --git a/keyboards/5x5/rules.mk b/keyboards/5x5/rules.mk
index b04e4a527..24e0e020f 100644
--- a/keyboards/5x5/rules.mk
+++ b/keyboards/5x5/rules.mk
@@ -71,4 +71,4 @@ AUDIO_ENABLE = no # Audio output on port C6
71FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches 71FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
72HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) 72HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
73 73
74LAYOUT = ortho_5x5 ortho_5x10 ortho_5x15 74LAYOUTS = ortho_5x5 ortho_5x10 ortho_5x15
diff --git a/layouts/community/ortho_4x12/wanleg/config.h b/layouts/community/ortho_4x12/wanleg/config.h
index 2c6fcc75f..0d2cc591e 100644
--- a/layouts/community/ortho_4x12/wanleg/config.h
+++ b/layouts/community/ortho_4x12/wanleg/config.h
@@ -12,4 +12,11 @@
12#define EE_HANDS 12#define EE_HANDS
13#endif 13#endif
14 14
15// set top left key as bootloader mode escape key on 4x4 48key layout
16#if defined(KEYBOARD_4x4)
17#define QMK_LED B0
18#define QMK_ESC_OUTPUT C6 // usually COL
19#define QMK_ESC_INPUT B2 // usually ROW
20#endif
21
15#endif 22#endif
diff --git a/layouts/community/ortho_4x12/wanleg/keymap.c b/layouts/community/ortho_4x12/wanleg/keymap.c
index 8773001d0..f6030469c 100644
--- a/layouts/community/ortho_4x12/wanleg/keymap.c
+++ b/layouts/community/ortho_4x12/wanleg/keymap.c
@@ -13,7 +13,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
13 _______________Qwerty_Row__0_______________, 13 _______________Qwerty_Row__0_______________,
14 _______________Qwerty_Row__1_______________, 14 _______________Qwerty_Row__1_______________,
15 _______________Qwerty_Row__2_______________, 15 _______________Qwerty_Row__2_______________,
16 KC_LCTL, KC_LGUI, KC_LALT, GHERKIN, SUBTER, SH_T(KC_SPC), KC_SPC, SUPRA, KC_RGUI, KC_RALT, KC_DEL, 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#else 18#else
19[_GK] = LAYOUT_ortho_4x12_wrapper( 19[_GK] = LAYOUT_ortho_4x12_wrapper(
diff --git a/layouts/community/ortho_4x12/wanleg/readme.md b/layouts/community/ortho_4x12/wanleg/readme.md
index 2f89d1de6..1cd41d116 100644
--- a/layouts/community/ortho_4x12/wanleg/readme.md
+++ b/layouts/community/ortho_4x12/wanleg/readme.md
@@ -16,9 +16,39 @@ Change `comPORT` to whatever port is used by the Arduino (e.g. `com11` in Window
16## Using QMK DFU 16## Using QMK DFU
17Once QMK DFU is burned to your ProMicro, you can then flash subsequent hex files with 17Once QMK DFU is burned to your ProMicro, you can then flash subsequent hex files with
18`make lets_split/rev2:<keymap>:dfu dfu=qmk` 18`make lets_split/rev2:<keymap>:dfu dfu=qmk`
19The `dfu=qmk` conditional will set `BOOTLOADER = qmk-dfu` instead of `BOOTLOADER = caterina` 19The `dfu=qmk` conditional will set `BOOTLOADER = qmk-dfu` instead of `BOOTLOADER = caterina`
20 20
21--- 21# Let's Split LEDs
22# JJ40 22In `qmk_firmware/keyboards/lets_split/rev2/rev2.c`, replace contents with
23## To Do 23```
24- [ ] Mousekeys not working with Userspace for some reason (jj40 only) \ No newline at end of file 24#include "lets_split.h"
25
26
27#ifdef SSD1306OLED
28void led_set_kb(uint8_t usb_led) {
29 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
30 led_set_user(usb_led);
31}
32#endif
33
34void matrix_init_kb(void) {
35
36 // // green led on
37 // DDRD |= (1<<5);
38 // PORTD &= ~(1<<5);
39
40 // // orange led on
41 // DDRB |= (1<<0);
42 // PORTB &= ~(1<<0);
43
44 //turn off LEDs on ProMicro
45 DDRD &= ~(1<<5);
46 PORTD &= ~(1<<5);
47
48 DDRB &= ~(1<<0);
49 PORTB &= ~(1<<0);
50
51 matrix_init_user();
52};
53```
54to turn off LEDs
diff --git a/layouts/community/ortho_4x12/wanleg/rules.mk b/layouts/community/ortho_4x12/wanleg/rules.mk
index 79929689c..69f377a01 100644
--- a/layouts/community/ortho_4x12/wanleg/rules.mk
+++ b/layouts/community/ortho_4x12/wanleg/rules.mk
@@ -3,4 +3,8 @@ SWAP_HANDS_ENABLE = yes
3 3
4ifeq ($(strip $(KEYBOARD)), jj40) 4ifeq ($(strip $(KEYBOARD)), jj40)
5 SWAP_HANDS_ENABLE = no 5 SWAP_HANDS_ENABLE = no
6endif
7
8ifeq ($(strip $(KEYBOARD)), 4x4)
9 SWAP_HANDS_ENABLE = no
6endif \ No newline at end of file 10endif \ No newline at end of file
diff --git a/layouts/community/ortho_5x10/layout.json b/layouts/community/ortho_5x10/layout.json
new file mode 100644
index 000000000..00d847952
--- /dev/null
+++ b/layouts/community/ortho_5x10/layout.json
@@ -0,0 +1,5 @@
1["","","","","","","","","",""],
2["","","","","","","","","",""],
3["","","","","","","","","",""],
4["","","","","","","","","",""],
5["","","","","","","","","",""]
diff --git a/layouts/community/ortho_5x10/readme.md b/layouts/community/ortho_5x10/readme.md
new file mode 100644
index 000000000..5c94f8eca
--- /dev/null
+++ b/layouts/community/ortho_5x10/readme.md
@@ -0,0 +1,3 @@
1# ortho_5x10
2
3 LAYOUT_ortho_5x10
diff --git a/layouts/community/ortho_5x10/wanleg/config.h b/layouts/community/ortho_5x10/wanleg/config.h
new file mode 100644
index 000000000..2d24f2771
--- /dev/null
+++ b/layouts/community/ortho_5x10/wanleg/config.h
@@ -0,0 +1,9 @@
1#pragma once
2
3//QMK DFU settings (ProMicro boards)
4// set top left key as bootloader mode escape key on Gherkin
5#if defined(KEYBOARD_5x5)
6#define QMK_LED B0
7#define QMK_ESC_OUTPUT D7 // usually COL
8#define QMK_ESC_INPUT B2 // usually ROW
9#endif
diff --git a/layouts/community/ortho_5x10/wanleg/keymap.c b/layouts/community/ortho_5x10/wanleg/keymap.c
new file mode 100644
index 000000000..5d06e53ae
--- /dev/null
+++ b/layouts/community/ortho_5x10/wanleg/keymap.c
@@ -0,0 +1,38 @@
1#include QMK_KEYBOARD_H
2#include "wanleg.h"
3
4const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
5[gGK] = LAYOUT_ortho_5x10_wrapper(
6 _______________Gherkin_NUM_0_______________,
7 _______________Gherkin_Row_0_______________,
8 _______________Gherkin_Row_1_______________,
9 _______________Gherkin_Row_2_______________,
10 _______, _______, _______, gNUMBER, gETCETERA, KC_SPC,gDIRECTION, KC_RGUI, _______, _______
11),
12
13
14[gNUM] = LAYOUT_ortho_5x10_wrapper(
15 _______________Gherkin_NUM_0_______________,
16 _______________Gherkin_NUM_0_______________,
17 _______________Gherkin_NUM_1_______________,
18 _______________Gherkin_NUM_2_______________,
19 _______, _______, _______, _______, _______, KC_ENT, KC_RSFT, KC_RGUI, _______, _______
20),
21
22[gDIR] = LAYOUT_ortho_5x10_wrapper(
23 _______________Gherkin_NUM_0_______________,
24 _______________Gherkin_DIR_0_______________,
25 _______________Gherkin_DIR_1_______________,
26 _______________Gherkin_DIR_2_______________,
27 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
28),
29
30[gETC] = LAYOUT_ortho_5x10_wrapper(
31 _______________Gherkin_NUM_0_______________,
32 _______________Gherkin_ETC_0_______________,
33 _______________Gherkin_ETC_1_______________,
34 _______________Gherkin_ETC_2_______________,
35 _______, _______, _______, _______, _______, LALT(LCTL(KC_DEL)), _______, _______, _______, _______
36),
37
38};
diff --git a/layouts/community/ortho_5x10/wanleg/rules.mk b/layouts/community/ortho_5x10/wanleg/rules.mk
new file mode 100644
index 000000000..90841d2ab
--- /dev/null
+++ b/layouts/community/ortho_5x10/wanleg/rules.mk
@@ -0,0 +1,3 @@
1SWAP_HANDS_ENABLE = no
2
3BOOTLOADER = qmk-dfu \ No newline at end of file
diff --git a/users/wanleg/wanleg.c b/users/wanleg/wanleg.c
index 0175ae201..931546c15 100644
--- a/users/wanleg/wanleg.c
+++ b/users/wanleg/wanleg.c
@@ -156,3 +156,24 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
156 } 156 }
157 return true; 157 return true;
158} 158}
159
160/// Turn off LEDs on ProMicros of Let's Split ///
161// LEDs only on by default on Let's Split
162// Add reconfigurable functions here, for keymap customization
163// This allows for a global, userspace functions, and continued
164// customization of the keymap. Use _keymap instead of _user
165// functions in the keymaps
166__attribute__ ((weak))
167void matrix_init_keymap(void) {}
168
169// Call user matrix init, then call the keymap's init function
170void matrix_init_user(void) {
171#if defined(KEYBOARD_lets_split_rev2)
172 DDRD &= ~(1<<5);
173 PORTD &= ~(1<<5);
174
175 DDRB &= ~(1<<0);
176 PORTB &= ~(1<<0);
177#endif
178 matrix_init_keymap();
179} \ No newline at end of file
diff --git a/users/wanleg/wanleg.h b/users/wanleg/wanleg.h
index da14dcdf5..5cec82e60 100644
--- a/users/wanleg/wanleg.h
+++ b/users/wanleg/wanleg.h
@@ -119,6 +119,7 @@ enum {
119#define KEYMAP_wrapper(...) LAYOUT(__VA_ARGS__) 119#define KEYMAP_wrapper(...) LAYOUT(__VA_ARGS__)
120#define LAYOUT_wrapper(...) LAYOUT(__VA_ARGS__) 120#define LAYOUT_wrapper(...) LAYOUT(__VA_ARGS__)
121#define LAYOUT_ortho_3x10_wrapper(...) LAYOUT_ortho_3x10(__VA_ARGS__) 121#define LAYOUT_ortho_3x10_wrapper(...) LAYOUT_ortho_3x10(__VA_ARGS__)
122#define LAYOUT_ortho_5x10_wrapper(...) LAYOUT_ortho_5x10(__VA_ARGS__)
122#define LAYOUT_ortho_4x12_wrapper(...) LAYOUT_ortho_4x12(__VA_ARGS__) 123#define LAYOUT_ortho_4x12_wrapper(...) LAYOUT_ortho_4x12(__VA_ARGS__)
123#define LAYOUT_ortho_5x15_wrapper(...) LAYOUT_ortho_5x15(__VA_ARGS__) 124#define LAYOUT_ortho_5x15_wrapper(...) LAYOUT_ortho_5x15(__VA_ARGS__)
124 125
@@ -204,7 +205,7 @@ enum {
204#define _______________GherkinLike_1_______________ KC_TAB, _______________Gherkin_Row_1_______________, KC_QUOT 205#define _______________GherkinLike_1_______________ KC_TAB, _______________Gherkin_Row_1_______________, KC_QUOT
205#define _______________GherkinLike_2_______________ TD(TD_SFT_CAPS), SFT_T(KC_Z), KC_X, KC_C, LT(NUM, KC_V),LT(ETC, KC_B),KC_N, LT(DIR, KC_M), GUI_T(KC_COMM), ALT_T(KC_DOT), CTL_T(KC_BSPC), SFT_T(KC_ENT) 206#define _______________GherkinLike_2_______________ TD(TD_SFT_CAPS), SFT_T(KC_Z), KC_X, KC_C, LT(NUM, KC_V),LT(ETC, KC_B),KC_N, LT(DIR, KC_M), GUI_T(KC_COMM), ALT_T(KC_DOT), CTL_T(KC_BSPC), SFT_T(KC_ENT)
206#define _______________GherkinLike_3_______________ KC_LCTL, KC_LGUI, KC_LALT, KC_LALT, NUMBER, ETCETERA, KC_SPC,DIRECTION, KC_RGUI, KC_RALT, KC_DEL, KC_RCTL 207#define _______________GherkinLike_3_______________ KC_LCTL, KC_LGUI, KC_LALT, KC_LALT, NUMBER, ETCETERA, KC_SPC,DIRECTION, KC_RGUI, KC_RALT, KC_DEL, KC_RCTL
207#define _______________GherkinLike_3_OneHand_______ KC_LCTL, KC_LGUI, KC_LALT, ONEHAND, NUMBER, ETCETERA, KC_SPC,DIRECTION, KC_RGUI, KC_RALT, KC_DEL, KC_RCTL 208#define _______________GherkinLike_3_OneHand_______ KC_LCTL, KC_LGUI, KC_LALT, ONEHAND, NUMBER, ETCETERA, KC_SPC,DIRECTION, KC_RGUI, KC_RALT, ONEHAND, KC_RCTL
208 209
209/* Qwerty 210/* Qwerty
210 * .-------------------------------------------------------------------------------------. 211 * .-------------------------------------------------------------------------------------.
@@ -257,7 +258,7 @@ enum {
257 258
258/* Gherkin Numbers 259/* Gherkin Numbers
259 * .-----------------------------------------------------------------------------------------------------------. 260 * .-----------------------------------------------------------------------------------------------------------.
260 * | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | DEL | 261 * | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | BACKSP |
261 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| 262 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
262 * | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | | 263 * | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | |
263 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| 264 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
@@ -267,7 +268,7 @@ enum {
267 * | | | | | | | ENTER | SHIFT | RGUI | | | | 268 * | | | | | | | ENTER | SHIFT | RGUI | | | |
268 * '-----------------------------------------------------------------------------------------------------------' 269 * '-----------------------------------------------------------------------------------------------------------'
269 */ 270 */
270#define _______________NUMBERS_Row_0_______________ _______, _______________Gherkin_NUM_0_______________, KC_DEL 271#define _______________NUMBERS_Row_0_______________ _______, _______________Gherkin_NUM_0_______________, KC_BSPC
271#define _______________NUMBERS_Row_1_______________ _______, _______________Gherkin_NUM_1_______________, _______ 272#define _______________NUMBERS_Row_1_______________ _______, _______________Gherkin_NUM_1_______________, _______
272#define _______________NUMBERS_Row_2_______________ _______, _______________Gherkin_NUM_2_______________, _______ 273#define _______________NUMBERS_Row_2_______________ _______, _______________Gherkin_NUM_2_______________, _______
273#define _______________NUMBERS_Row_3_______________ _______, _______, _______, _______, _______, _______, KC_ENT, KC_RSFT, KC_RGUI, _______, _______, _______ 274#define _______________NUMBERS_Row_3_______________ _______, _______, _______, _______, _______, _______, KC_ENT, KC_RSFT, KC_RGUI, _______, _______, _______