forked from mirrors/qmk_userspace
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
This commit is contained in:
parent
2b707f3470
commit
2fcfd5cff7
14 changed files with 132 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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)
|
||||
# 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
|
||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue