aboutsummaryrefslogtreecommitdiffstats
path: root/layouts
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 /layouts
parent2b707f3470afd10f2db9db17d096dda836535444 (diff)
downloadfirmware-2fcfd5cff7089338385c40a630315939a7a9ebbc.tar.gz
firmware-2fcfd5cff7089338385c40a630315939a7a9ebbc.tar.bz2
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
Diffstat (limited to 'layouts')
-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
9 files changed, 105 insertions, 6 deletions
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 @@
#define EE_HANDS
#endif
+// set top left key as bootloader mode escape key on 4x4 48key layout
+#if defined(KEYBOARD_4x4)
+#define QMK_LED B0
+#define QMK_ESC_OUTPUT C6 // usually COL
+#define QMK_ESC_INPUT B2 // usually ROW
+#endif
+
#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] = {
_______________Qwerty_Row__0_______________,
_______________Qwerty_Row__1_______________,
_______________Qwerty_Row__2_______________,
- KC_LCTL, KC_LGUI, KC_LALT, GHERKIN, SUBTER, SH_T(KC_SPC), KC_SPC, SUPRA, KC_RGUI, KC_RALT, KC_DEL, KC_RCTL
+ KC_LCTL, KC_LGUI, KC_LALT, GHERKIN, SUBTER, SH_T(KC_SPC), SH_T(KC_SPC), SUPRA, KC_RGUI, KC_RALT, GHERKIN, KC_RCTL
),
#else
[_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
## Using QMK DFU
Once QMK DFU is burned to your ProMicro, you can then flash subsequent hex files with
`make lets_split/rev2:<keymap>:dfu dfu=qmk`
-The `dfu=qmk` conditional will set `BOOTLOADER = qmk-dfu` instead of `BOOTLOADER = caterina`
+The `dfu=qmk` conditional will set `BOOTLOADER = qmk-dfu` instead of `BOOTLOADER = caterina`
----
-# JJ40
-## To Do
-- [ ] Mousekeys not working with Userspace for some reason (jj40 only) \ No newline at end of file
+# Let's Split LEDs
+In `qmk_firmware/keyboards/lets_split/rev2/rev2.c`, replace contents with
+```
+#include "lets_split.h"
+
+
+#ifdef SSD1306OLED
+void led_set_kb(uint8_t usb_led) {
+ // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
+ led_set_user(usb_led);
+}
+#endif
+
+void matrix_init_kb(void) {
+
+ // // green led on
+ // DDRD |= (1<<5);
+ // PORTD &= ~(1<<5);
+
+ // // orange led on
+ // DDRB |= (1<<0);
+ // PORTB &= ~(1<<0);
+
+ //turn off LEDs on ProMicro
+ DDRD &= ~(1<<5);
+ PORTD &= ~(1<<5);
+
+ DDRB &= ~(1<<0);
+ PORTB &= ~(1<<0);
+
+ matrix_init_user();
+};
+```
+to 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
ifeq ($(strip $(KEYBOARD)), jj40)
SWAP_HANDS_ENABLE = no
+endif
+
+ifeq ($(strip $(KEYBOARD)), 4x4)
+ SWAP_HANDS_ENABLE = no
endif \ 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 @@
+["","","","","","","","","",""],
+["","","","","","","","","",""],
+["","","","","","","","","",""],
+["","","","","","","","","",""],
+["","","","","","","","","",""]
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 @@
+# ortho_5x10
+
+ 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 @@
+#pragma once
+
+//QMK DFU settings (ProMicro boards)
+// set top left key as bootloader mode escape key on Gherkin
+#if defined(KEYBOARD_5x5)
+#define QMK_LED B0
+#define QMK_ESC_OUTPUT D7 // usually COL
+#define QMK_ESC_INPUT B2 // usually ROW
+#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 @@
+#include QMK_KEYBOARD_H
+#include "wanleg.h"
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+[gGK] = LAYOUT_ortho_5x10_wrapper(
+ _______________Gherkin_NUM_0_______________,
+ _______________Gherkin_Row_0_______________,
+ _______________Gherkin_Row_1_______________,
+ _______________Gherkin_Row_2_______________,
+ _______, _______, _______, gNUMBER, gETCETERA, KC_SPC,gDIRECTION, KC_RGUI, _______, _______
+),
+
+
+[gNUM] = LAYOUT_ortho_5x10_wrapper(
+ _______________Gherkin_NUM_0_______________,
+ _______________Gherkin_NUM_0_______________,
+ _______________Gherkin_NUM_1_______________,
+ _______________Gherkin_NUM_2_______________,
+ _______, _______, _______, _______, _______, KC_ENT, KC_RSFT, KC_RGUI, _______, _______
+),
+
+[gDIR] = LAYOUT_ortho_5x10_wrapper(
+ _______________Gherkin_NUM_0_______________,
+ _______________Gherkin_DIR_0_______________,
+ _______________Gherkin_DIR_1_______________,
+ _______________Gherkin_DIR_2_______________,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
+),
+
+[gETC] = LAYOUT_ortho_5x10_wrapper(
+ _______________Gherkin_NUM_0_______________,
+ _______________Gherkin_ETC_0_______________,
+ _______________Gherkin_ETC_1_______________,
+ _______________Gherkin_ETC_2_______________,
+ _______, _______, _______, _______, _______, LALT(LCTL(KC_DEL)), _______, _______, _______, _______
+),
+
+};
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 @@
+SWAP_HANDS_ENABLE = no
+
+BOOTLOADER = qmk-dfu \ No newline at end of file