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 changepull/4555/head
parent
20130e010b
commit
0677e64655
@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2017 Danny Nguyen <danny@keeb.io>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
/* Use I2C or Serial, not both */
|
||||||
|
|
||||||
|
#define USE_SERIAL
|
||||||
|
#undef USE_I2C
|
||||||
|
|
||||||
|
/* Select hand configuration */
|
||||||
|
|
||||||
|
// #define MASTER_LEFT
|
||||||
|
// #define MASTER_RIGHT
|
||||||
|
#define EE_HANDS
|
||||||
|
|
||||||
|
#define QMK_ESC_OUTPUT F6 // usually COL
|
||||||
|
#define QMK_ESC_INPUT D7 // usually ROW
|
||||||
|
#define QMK_LED B0
|
@ -0,0 +1,76 @@
|
|||||||
|
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
#include "wanleg.h"
|
||||||
|
|
||||||
|
|
||||||
|
#define LAYOUT_iris_base( \
|
||||||
|
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, \
|
||||||
|
K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, \
|
||||||
|
K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \
|
||||||
|
K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C \
|
||||||
|
) \
|
||||||
|
LAYOUT_wrapper( \
|
||||||
|
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, \
|
||||||
|
K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, \
|
||||||
|
K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, \
|
||||||
|
K31, K32, K33, K34, K35, K36, _______, _______, K37, K38, K39, K3A, K3B, K3C, \
|
||||||
|
_______, _______, _______, _______, _______, _______ \
|
||||||
|
)
|
||||||
|
#define LAYOUT_iris_base_wrapper(...) LAYOUT_iris_base(__VA_ARGS__)
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[_GK] = LAYOUT_iris_base_wrapper(
|
||||||
|
_______________GherkinLike_0_______________,
|
||||||
|
_______________GherkinLike_1_______________,
|
||||||
|
_______________GherkinLike_2_______________,
|
||||||
|
_______________GherkinLike_3_OneHand_______
|
||||||
|
),
|
||||||
|
[ONE] = LAYOUT_wrapper(
|
||||||
|
_______________Qwerty_Row__0_______________,
|
||||||
|
_______________Qwerty_Row__1_______________,
|
||||||
|
_______________Qwerty_Row__2_______________,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, GHERKIN, SUBTER, SH_T(KC_SPC), _______, _______, SH_T(KC_SPC), SUPRA, KC_RGUI, KC_RALT, GHERKIN, KC_RCTL,
|
||||||
|
_______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
[SUP] = LAYOUT_iris_base_wrapper(
|
||||||
|
________________SUPRA_Row_0________________,
|
||||||
|
________________SUPRA_Row_1________________,
|
||||||
|
________________SUPRA_Row_2________________,
|
||||||
|
________________SUPRA_Row_3________________
|
||||||
|
),
|
||||||
|
[SUB] = LAYOUT_iris_base_wrapper(
|
||||||
|
_______________SUBTER_Row__0_______________,
|
||||||
|
_______________SUBTER_Row__1_______________,
|
||||||
|
_______________SUBTER_Row__2_______________,
|
||||||
|
_______________SUBTER_Row__3_______________
|
||||||
|
),
|
||||||
|
[NUM] = LAYOUT_iris_base_wrapper(
|
||||||
|
_______________NUMBERS_Row_0_______________,
|
||||||
|
_______________NUMBERS_Row_1_______________,
|
||||||
|
_______________NUMBERS_Row_2_______________,
|
||||||
|
_______________NUMBERS_Row_3_______________
|
||||||
|
),
|
||||||
|
[DIR] = LAYOUT_iris_base_wrapper(
|
||||||
|
_____________DIRECTIONS_Row__0_____________,
|
||||||
|
_____________DIRECTIONS_Row__1_____________,
|
||||||
|
_____________DIRECTIONS_Row__2_____________,
|
||||||
|
_______, _______, ONEHAND, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
[ETC] = LAYOUT_iris_base_wrapper(
|
||||||
|
______________ETCETERA_Row__0______________,
|
||||||
|
______________ETCETERA_Row__1______________,
|
||||||
|
______________ETCETERA_Row__2______________,
|
||||||
|
______________ETCETERA_Row__3______________
|
||||||
|
)
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
void matrix_init_keymap(void) {
|
||||||
|
DDRD &= ~(1<<5);
|
||||||
|
PORTD &= ~(1<<5);
|
||||||
|
|
||||||
|
DDRB &= ~(1<<0);
|
||||||
|
PORTB &= ~(1<<0);
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
RGBLIGHT_ENABLE = no
|
||||||
|
BACKLIGHT_ENABLE = no
|
||||||
|
|
||||||
|
SWAP_HANDS_ENABLE = yes
|
||||||
|
BOOTLOADER = qmk-dfu
|
@ -1,14 +1,10 @@
|
|||||||
AUDIO_ENABLE = no
|
AUDIO_ENABLE = no
|
||||||
SWAP_HANDS_ENABLE = yes
|
SWAP_HANDS_ENABLE = no
|
||||||
|
|
||||||
ifeq ($(strip $(KEYBOARD)), jj40)
|
ifeq ($(strip $(KEYBOARD)), lets_split/rev2)
|
||||||
SWAP_HANDS_ENABLE = no
|
SWAP_HANDS_ENABLE = yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(KEYBOARD)), 40percentclub/4x4)
|
ifeq ($(strip $(KEYBOARD)), planck/rev6)
|
||||||
SWAP_HANDS_ENABLE = no
|
AUDIO_ENABLE = yes
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(strip $(KEYBOARD)), zlant)
|
|
||||||
SWAP_HANDS_ENABLE = no
|
|
||||||
endif
|
endif
|
@ -1,8 +1,11 @@
|
|||||||
ifeq (,$(findstring yes,$(BLUEFRUIT)))
|
#ifeq ($(strip $(KEYBOARD)), xd75)
|
||||||
BLUETOOTH = AdafruitBLE
|
#or
|
||||||
BLUETOOTH_ENABLE = yes
|
#ifeq (,$(findstring xd75,$(KEYBOARD)))
|
||||||
F_CPU = 8000000
|
#something
|
||||||
CONSOLE_ENABLE = no # Console for debug(+400)
|
#endif
|
||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
|
||||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
#ifeq ($(strip $(KEYBOARD)), 40percentclub/5x5)
|
||||||
endif
|
#or
|
||||||
|
#ifeq (,$(findstring 40percentclub/5x5,$(KEYBOARD)))
|
||||||
|
#something
|
||||||
|
#endif
|
Loading…
Reference in new issue