Keymap: Wanleg userspace (#3670)
* configure wanleg userspace * additional layout support * additional layout support * userspace edits * fix swap hands between 30 and 40 percent * add additional keymaps * userspace edits * userspace configuration * userspace configuration * Update readme.md * userspace work * swap hands userspace fix * made requested edits * Update readme.md * use relative paths instead of copying file * Update wanleg.h * fixing layer order
This commit is contained in:
parent
8007d9f3a7
commit
9175eebc87
22 changed files with 985 additions and 257 deletions
15
layouts/community/ortho_4x12/wanleg/config.h
Normal file
15
layouts/community/ortho_4x12/wanleg/config.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#ifndef CONFIG_USER_H
|
||||
#define CONFIG_USER_H
|
||||
|
||||
//QMK DFU settings (ProMicro boards)
|
||||
// set top left key as bootloader mode escape key on Lets Split rev2
|
||||
#if defined(KEYBOARD_lets_split_rev2)
|
||||
#define QMK_LED B0
|
||||
#define QMK_ESC_OUTPUT F6 // usually COL
|
||||
#define QMK_ESC_INPUT D7 // usually ROW
|
||||
#define USE_SERIAL
|
||||
#undef USE_I2C
|
||||
#define EE_HANDS
|
||||
#endif
|
||||
|
||||
#endif
|
67
layouts/community/ortho_4x12/wanleg/keymap.c
Normal file
67
layouts/community/ortho_4x12/wanleg/keymap.c
Normal file
|
@ -0,0 +1,67 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
#include "wanleg.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
#if defined(KEYBOARD_lets_split_rev2)
|
||||
[_GK] = LAYOUT_ortho_4x12_wrapper(
|
||||
_______________GherkinLike_0_______________,
|
||||
_______________GherkinLike_1_______________,
|
||||
_______________GherkinLike_2_______________,
|
||||
_______________GherkinLike_3_OneHand_______
|
||||
),
|
||||
[ONE] = LAYOUT_ortho_4x12_wrapper(
|
||||
_______________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_RGUI, KC_RCTL
|
||||
),
|
||||
#else
|
||||
[_GK] = LAYOUT_ortho_4x12_wrapper(
|
||||
_______________GherkinLike_0_______________,
|
||||
_______________GherkinLike_1_______________,
|
||||
_______________GherkinLike_2_______________,
|
||||
_______________GherkinLike_3_______________
|
||||
),
|
||||
#endif
|
||||
[_QW] = LAYOUT_ortho_4x12_wrapper(
|
||||
_______________Qwerty_Row__0_______________,
|
||||
_______________Qwerty_Row__1_______________,
|
||||
_______________Qwerty_Row__2_______________,
|
||||
_______________Qwerty_Row__3_______________
|
||||
),
|
||||
|
||||
[SUP] = LAYOUT_ortho_4x12_wrapper(
|
||||
________________SUPRA_Row_0________________,
|
||||
________________SUPRA_Row_1________________,
|
||||
________________SUPRA_Row_2________________,
|
||||
________________SUPRA_Row_3________________
|
||||
),
|
||||
|
||||
[SUB] = LAYOUT_ortho_4x12_wrapper(
|
||||
_______________SUBTER_Row__0_______________,
|
||||
_______________SUBTER_Row__1_______________,
|
||||
_______________SUBTER_Row__2_______________,
|
||||
_______________SUBTER_Row__3_______________
|
||||
),
|
||||
|
||||
[NUM] = LAYOUT_ortho_4x12_wrapper(
|
||||
_______________NUMBERS_Row_0_______________,
|
||||
_______________NUMBERS_Row_1_______________,
|
||||
_______________NUMBERS_Row_2_______________,
|
||||
_______________NUMBERS_Row_3_______________
|
||||
),
|
||||
|
||||
[DIR] = LAYOUT_ortho_4x12_wrapper(
|
||||
_____________DIRECTIONS_Row__0_____________,
|
||||
_____________DIRECTIONS_Row__1_____________,
|
||||
_____________DIRECTIONS_Row__2_____________,
|
||||
_____________DIRECTIONS_Row__3_____________
|
||||
),
|
||||
|
||||
[ETC] = LAYOUT_ortho_4x12_wrapper(
|
||||
______________ETCETERA_Row__0______________,
|
||||
______________ETCETERA_Row__1______________,
|
||||
______________ETCETERA_Row__2______________,
|
||||
______________ETCETERA_Row__3______________
|
||||
),
|
||||
};
|
24
layouts/community/ortho_4x12/wanleg/readme.md
Normal file
24
layouts/community/ortho_4x12/wanleg/readme.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Let's Split Flashing
|
||||
(More information at `qmk_firmware/layouts/community/ortho_3x10/wanleg/readme.md`)
|
||||
## Make the QMK DFU .hex
|
||||
`make lets_split/rev2:wanleg:production dfu=qmk`
|
||||
|
||||
## Burning EEPROM settings and Firmware
|
||||
Navigate to the directory with your .hex file and the `eeprom-lefthand.eep` and `eeprom-righthand.eep` files in it.
|
||||
**Burn Left Side With QMK DFU and Firmware**
|
||||
`avrdude -b 19200 -c avrisp -p m32u4 -v -e -U lock:w:0x3F:m -U efuse:w:0xC3:m -U hfuse:w:0xD9:m -U lfuse:w:0x5E:m -U eeprom:w:eeprom-lefthand.eep -P comPORT -U flash:w:YOUR_production.hex:a`
|
||||
|
||||
**Burn Right Side With QMK DFU and Firmware**
|
||||
`avrdude -b 19200 -c avrisp -p m32u4 -v -e -U lock:w:0x3F:m -U efuse:w:0xC3:m -U hfuse:w:0xD9:m -U lfuse:w:0x5E:m -U eeprom:w:eeprom-righthand.eep -P comPORT -U flash:w:YOUR_production.hex:a`
|
||||
|
||||
Change `comPORT` to whatever port is used by the Arduino (e.g. `com11` in Windows or `/dev/ttyACM0` in Linux). Use Device Manager in Windows to find the port being used. Use `ls /dev/tty*` in Linux. Change `YOUR_production.hex` to whatever you've created in the previous step.
|
||||
|
||||
## 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`
|
||||
|
||||
---
|
||||
# JJ40
|
||||
## To Do
|
||||
- [ ] Mousekeys not working with Userspace for some reason (jj40 only)
|
6
layouts/community/ortho_4x12/wanleg/rules.mk
Normal file
6
layouts/community/ortho_4x12/wanleg/rules.mk
Normal file
|
@ -0,0 +1,6 @@
|
|||
AUDIO_ENABLE = no
|
||||
SWAP_HANDS_ENABLE = yes
|
||||
|
||||
ifeq ($(strip $(KEYBOARD)), jj40)
|
||||
SWAP_HANDS_ENABLE = no
|
||||
endif
|
Loading…
Add table
Add a link
Reference in a new issue