[Keyboard] Create RGBKB Folder (#5858)
* Move Sol, Zen, & Zygomorph keyboards to RGBKB folder * Updated default keymaps * Fixing more areas due too folder moves * Fixing Zen layer numbers * Fixing zygomorph layer comments * Fixing Colmak comments * Fixing Sol Colmak readme * Macro alignment * Zen rev2 configuration json * Fixing sol ifdef * Fixing Sol info.json
This commit is contained in:
committed by
Drashna Jaelre
parent
e8b27a965d
commit
4cdb86c730
@@ -0,0 +1,97 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "kageurufu.h"
|
||||
#ifdef PROTOCOL_LUFA
|
||||
#include "lufa.h"
|
||||
#include "split_util.h"
|
||||
#endif
|
||||
|
||||
extern keymap_config_t keymap_config;
|
||||
extern uint8_t is_master;
|
||||
|
||||
/* Base Layout
|
||||
* ,------------------------------------------------. ,------------------------------------------------.
|
||||
* | ` | | | | | | | | | | | | | | BkSp |
|
||||
* |------+------+------+------+------+------|------| |------|------+------+------+------+------+------|
|
||||
* | Tab | | | | | | | | | | | | | | \ |
|
||||
* |------+------+------+------+------+------|------| |------|------+------+------+------+------+------|
|
||||
* | Esc | | | | | | | | | | | | | | ' |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | Sft( | | | | | | | | | | | | | | Sft) |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | Ctrl | Win | Win | Alt | FN | Space| RGB | | FN | FN | - | = | Down | PgUp | PgDn |
|
||||
* |------+------+------+------+------+------+------| |------+------+------+------+------+------+------|
|
||||
* | Space| Bksp | | Enter| Space|
|
||||
* `-------------' `--------=----'
|
||||
*/
|
||||
#define EXPAND_LAYOUT(...) LAYOUT(__VA_ARGS__)
|
||||
#define _BASE_LAYOUT( \
|
||||
_00, _01, _02, _03, _04, _05, _06, _07, _08, _09, \
|
||||
_10, _11, _12, _13, _14, _15, _16, _17, _18, _19, \
|
||||
_20, _21, _22, _23, _24, _25, _26, _27, _28, _29 \
|
||||
) \
|
||||
EXPAND_LAYOUT( \
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, RGB_MOD, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
|
||||
KC_TAB, _00, _01, _02, _03, _04, KC_LBRC, KC_RBRC, _05, _06, _07, _08, _09, KC_BSLS, \
|
||||
FN_ESC, _10, _11, _12, _13, _14, RGB_SAI, RGB_VAI, _15, _16, _17, _18, _19, KC_QUOT, \
|
||||
KC_LSPO, _20, _21, _22, _23, _24, RGB_SAD, RGB_VAD, _25, _26, _27, _28, _29, KC_RSPC, \
|
||||
KC_LCTL, KC_LGUI, KC_LGUI, KC_LALT, FN, KC_SPC, FN, FN, KC_SPC, KC_MINS, KC_EQL, KC_DOWN, KC_PGUP, KC_PGDN, \
|
||||
KC_SPC, KC_BSPC, KC_ENT, KC_SPC \
|
||||
)
|
||||
#define BASE_LAYOUT(...) _BASE_LAYOUT(__VA_ARGS__)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[_QWERTY] = BASE_LAYOUT( \
|
||||
_________________QWERTY_L1_________________, _________________QWERTY_R1_________________, \
|
||||
_________________QWERTY_L2_________________, _________________QWERTY_R2_________________, \
|
||||
_________________QWERTY_L3_________________, _________________QWERTY_R3_________________ \
|
||||
),
|
||||
|
||||
[_COLEMAK] = BASE_LAYOUT( \
|
||||
_________________COLEMAK_L1________________, _________________COLEMAK_R1________________, \
|
||||
_________________COLEMAK_L2________________, _________________COLEMAK_R2________________, \
|
||||
_________________COLEMAK_L3________________, _________________COLEMAK_R3________________ \
|
||||
),
|
||||
|
||||
[_COLEMAK_DH] = BASE_LAYOUT( \
|
||||
______________COLEMAK_MOD_DH_L1____________, ______________COLEMAK_MOD_DH_R1____________, \
|
||||
______________COLEMAK_MOD_DH_L2____________, ______________COLEMAK_MOD_DH_R2____________, \
|
||||
______________COLEMAK_MOD_DH_L3____________, ______________COLEMAK_MOD_DH_R3____________ \
|
||||
),
|
||||
|
||||
[_FN] = EXPAND_LAYOUT( \
|
||||
________________FUNCTION_L1________________, _______, KC_PSCR, ________________FUNCTION_R1________________, \
|
||||
________________FUNCTION_L2________________, _______, _______, ________________FUNCTION_R2________________, \
|
||||
________________FUNCTION_L3________________, _______, _______, ________________FUNCTION_R3________________, \
|
||||
________________FUNCTION_L4________________, _______, _______, ________________FUNCTION_R4________________, \
|
||||
________________FUNCTION_L5________________, ADJ, ADJ, ________________FUNCTION_R5________________, \
|
||||
_______, KC_DEL, _______, _______ \
|
||||
),
|
||||
|
||||
[_ADJ] = EXPAND_LAYOUT( \
|
||||
_________________ADJUST_L1_________________, _______, _______, _________________ADJUST_R1_________________, \
|
||||
_________________ADJUST_L2_________________, _______, _______, _________________ADJUST_R2_________________, \
|
||||
_________________ADJUST_L3_________________, _______, _______, _________________ADJUST_R3_________________, \
|
||||
_________________ADJUST_L4_________________, _______, _______, _________________ADJUST_R4_________________, \
|
||||
_________________ADJUST_L5_________________, _______, _______, _________________ADJUST_R5_________________, \
|
||||
_______, _______, _______, _______ \
|
||||
)
|
||||
};
|
||||
|
||||
#ifdef ENCODER_ENABLE
|
||||
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||
if (index == 0) { /* First encoder */
|
||||
if (clockwise) {
|
||||
tap_code(KC_VOLU);
|
||||
} else {
|
||||
tap_code(KC_VOLD);
|
||||
}
|
||||
} else if (index == 1) { /* Second encoder*/
|
||||
if (clockwise) {
|
||||
tap_code(KC_VOLU);
|
||||
} else {
|
||||
tap_code(KC_VOLD);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,38 @@
|
||||
# Build Options
|
||||
# change to "no" to disable the options, or define them in the Makefile in
|
||||
# the appropriate keymap folder that will get included automatically
|
||||
#
|
||||
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||
CONSOLE_ENABLE = yes # Console for debug(+400)
|
||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||
NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
RGBLIGHT_ENABLE = no # Enable global lighting effects. Do not enable with RGB Matrix
|
||||
RGBLIGHT_ANIMATIONS = no # LED animations
|
||||
LED_MIRRORED = no # Mirror LEDs across halves (enable DIP 1 on slave, and DIP 2 and 3 on master)
|
||||
RGB_MATRIX_ENABLE = WS2812 # Enable per-key coordinate based RGB effects. Do not enable with RGBlight (+8500)
|
||||
RGB_MATRIX_KEYPRESSES = no # Enable reactive per-key effects. Can be very laggy (+1500)
|
||||
RGBLIGHT_FULL_POWER = no # Allow maximum RGB brightness. Otherwise, limited to a safe level for a normal USB-A port
|
||||
UNICODE_ENABLE = no # Unicode
|
||||
SWAP_HANDS_ENABLE = no # Enable one-hand typing
|
||||
|
||||
OLED_DRIVER_ENABLE = no # Enable the OLED Driver (+5000)
|
||||
IOS_DEVICE_ENABLE = no # Limit max brightness to connect to IOS device (iPad,iPhone)
|
||||
|
||||
# Do not edit past here
|
||||
|
||||
ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
|
||||
OPT_DEFS += -DIOS_DEVICE_ENABLE
|
||||
else ifeq ($(strip $(RGBLIGHT_FULL_POWER)), yes)
|
||||
OPT_DEFS += -DRGBLIGHT_FULL_POWER
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(RGB_MATRIX_KEYPRESSES)), yes)
|
||||
OPT_DEFS += -DRGB_MATRIX_KEYPRESSES
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(LED_MIRRORED)), yes)
|
||||
OPT_DEFS += -DLED_MIRRORED
|
||||
endif
|
||||
Reference in New Issue
Block a user