added an ISO split spacebar layout, keymap and readme files (#4165)
This commit is contained in:
parent
6f6d28fa8d
commit
0d1e0a0d97
4 changed files with 280 additions and 0 deletions
|
@ -196,6 +196,20 @@
|
|||
{ k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, KC_NO, k3d, KC_NO }, \
|
||||
{ k40, k41, KC_NO, k43, KC_NO, KC_NO, k46, KC_NO, KC_NO, KC_NO, k4a, k4b, KC_NO, k4d, k4e } \
|
||||
}
|
||||
// iso split
|
||||
#define LAYOUT_60_iso_split( \
|
||||
K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, \
|
||||
K100, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, \
|
||||
K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K114, K213, \
|
||||
K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, \
|
||||
K400, K401, K403, K404, K406, K408, K410, K411, K413, K414 \
|
||||
) { \
|
||||
{ K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, KC_NO, K014 }, \
|
||||
{ K100, KC_NO, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \
|
||||
{ K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, KC_NO }, \
|
||||
{ K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, KC_NO, K313, KC_NO }, \
|
||||
{ K400, K401, KC_NO, K403, K404, KC_NO, K406, KC_NO, K408, KC_NO, K410, K411, KC_NO, K413, K414 } \
|
||||
}
|
||||
|
||||
/* LAYOUT_60_iso_5x1u
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||
|
|
|
@ -28,6 +28,10 @@
|
|||
"LAYOUT_60_iso": {
|
||||
"key_count": 62,
|
||||
"layout": [{"label":"¬", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"\"", "x":2, "y":0}, {"label":"£", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"Backspace", "x":13, "y":0, "w":2}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"CapsLock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"@", "x":11.75, "y":2}, {"label":"~", "x":12.75, "y":2}, {"label":"Enter", "x":13.75, "y":1, "w":1.25, "h":2}, {"label":"Shift", "x":0, "y":3, "w":1.25}, {"label":"|", "x":1.25, "y":3}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":2.75}, {"label":"Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Win", "x":1.25, "y":4, "w":1.25}, {"label":"Alt", "x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":6.25}, {"label":"AltGr", "x":10, "y":4, "w":1.25}, {"label":"Win", "x":11.25, "y":4, "w":1.25}, {"label":"Menu", "x":12.5, "y":4, "w":1.25}, {"label":"Ctrl", "x":13.75, "y":4, "w":1.25}]
|
||||
},
|
||||
"LAYOUT_60_iso_split": {
|
||||
"key_count": 64,
|
||||
"layout": [{"label":"¬", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"\"", "x":2, "y":0}, {"label":"£", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"label":"Backspace", "x":13, "y":0, "w":2}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"CapsLock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"@", "x":11.75, "y":2}, {"label":"~", "x":12.75, "y":2}, {"label":"Enter", "x":13.75, "y":1, "w":1.25, "h":2}, {"label":"Shift", "x":0, "y":3, "w":1.25}, {"label":"|", "x":1.25, "y":3}, {"label":"Z", "x":2.25, "y":3}, {"label":"X", "x":3.25, "y":3}, {"label":"C", "x":4.25, "y":3}, {"label":"V", "x":5.25, "y":3}, {"label":"B", "x":6.25, "y":3}, {"label":"N", "x":7.25, "y":3}, {"label":"M", "x":8.25, "y":3}, {"label":"<", "x":9.25, "y":3}, {"label":">", "x":10.25, "y":3}, {"label":"?", "x":11.25, "y":3}, {"label":"Shift", "x":12.25, "y":3, "w":2.75}, {"label":"Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Win", "x":1.25, "y":4, "w":1.25}, {"label":"Alt", "x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":2.25}, {"label":"FN", "x":6.00, "y":4, "w":1.25}, {"x":7.25, "y":4, "w":2.75}, {"label":"AltGr", "x":10, "y":4, "w":1.25}, {"label":"Win", "x":11.25, "y":4, "w":1.25}, {"label":"Menu", "x":12.5, "y":4, "w":1.25}, {"label":"Ctrl", "x":13.75, "y":4, "w":1.25}]
|
||||
},
|
||||
"LAYOUT_60_hhkb": {
|
||||
"key_count": 60,
|
||||
|
|
69
keyboards/dz60/keymaps/iso_split-spacebar/README.md
Normal file
69
keyboards/dz60/keymaps/iso_split-spacebar/README.md
Normal file
|
@ -0,0 +1,69 @@
|
|||
# iso layout with a split spacebar
|
||||
|
||||
i needed to have an ISO layout
|
||||
and i wanted to have a split spacebar
|
||||
i couldn't find anything ready so i cobbled this together
|
||||
|
||||
|
||||
|
||||
---- Layer 0 - BL
|
||||
this is basically the standard iso layout with the addition of the split spacebar
|
||||
menu key (KC_APP) is used to move to the next layer
|
||||
the key in between the two spacebars is the function key
|
||||
*,-----------------------------------------------------------.
|
||||
*| ' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = |Backsp |
|
||||
*|-----------------------------------------------------------|
|
||||
*| Tab | q | w | e | r | t | y | u | i | o | p | [ | ] |enter|
|
||||
*|------------------------------------------------------ |
|
||||
*| Caps | a | s | d | f | g | h | j | k | l | ; | ' | # | |
|
||||
*|-----------------------------------------------------------|
|
||||
*|Shft| < | z | x | c | v | b | n | m | , | . | / | Shift |
|
||||
*|-----------------------------------------------------------|
|
||||
*|Ctrl|Gui |Alt | Space | FN | Space |Alt |Gui | NL |Ctrl |
|
||||
*`-----------------------------------------------------------'
|
||||
|
||||
---- Layer 1 - FL
|
||||
quite standard function layer
|
||||
arrow keys and mouse movement/buttons on the home row
|
||||
*,-----------------------------------------------------------.
|
||||
*|ESC|F1 |F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12| DEL |
|
||||
*|-----------------------------------------------------------|
|
||||
*| | | | | | | | | | |prt| | | |
|
||||
*|------------------------------------------------------ |
|
||||
*| |m l|m d|m u|m r| | | l | d | u | r | | | |
|
||||
*|-----------------------------------------------------------|
|
||||
*| | | | | |mb1|mb2| |hm |pgd|pgu|end| |
|
||||
*|-----------------------------------------------------------|
|
||||
*| | | | | | | | | | |
|
||||
*`-----------------------------------------------------------'
|
||||
|
||||
---- Layer 2 - NL
|
||||
numbers numbers numbers...
|
||||
first key (top left) to return to BL
|
||||
menu key (KC_APP) is used to move to the next layer
|
||||
*,-----------------------------------------------------------.
|
||||
*|BL | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | | | |
|
||||
*|-----------------------------------------------------------|
|
||||
*| | 4 | 5 | 6 | * | / | | 4 | 5 | 6 | * | / | ] | |
|
||||
*|------------------------------------------------------ |
|
||||
*| | 7 | 8 | 9 | + | - | | 1 | 2 | 3 | + | - | | |
|
||||
*|-----------------------------------------------------------|
|
||||
*| | | 0 | , | . | = | | | 0 | , | . | = | |
|
||||
*|-----------------------------------------------------------|
|
||||
*| | | | | | | | | RL | |
|
||||
*`-----------------------------------------------------------'
|
||||
|
||||
---- Layer 3 - BL
|
||||
all the fancy lights
|
||||
and useful reset button (top right)
|
||||
*,-----------------------------------------------------------.
|
||||
*|BL | | | | | | | | | | | | |Reset |
|
||||
*|-----------------------------------------------------------|
|
||||
*| |tog|mod|hui|hud| | |sai|sad|vai|vad| | | |
|
||||
*|------------------------------------------------------ |
|
||||
*| |sta|bre|rai|swi| | |sna|kni|gra|xms| | | |
|
||||
*|-----------------------------------------------------------|
|
||||
*| | |bd |bt |bi |bs | | | | | | | |
|
||||
*|-----------------------------------------------------------|
|
||||
*| | | | | | | | | BL | |
|
||||
*`-----------------------------------------------------------'
|
193
keyboards/dz60/keymaps/iso_split-spacebar/keymap.c
Normal file
193
keyboards/dz60/keymaps/iso_split-spacebar/keymap.c
Normal file
|
@ -0,0 +1,193 @@
|
|||
// using as reference
|
||||
// https://docs.qmk.fm/#/keymap
|
||||
|
||||
// thanks to atlacat, hailbreno, itsaferbie and weeheavy...
|
||||
|
||||
// and special thanks to AGausmann and drashna for the layer-activated RGB underglow
|
||||
// https://www.reddit.com/r/olkb/comments/6t1vdu/update_layeractivated_rgb_underglow/
|
||||
// https://github.com/AGausmann/qmk_firmware/blob/agausmann-v3.x/keyboards/nyquist/keymaps/agausmann/keymap.c
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
|
||||
// Helpful defines
|
||||
#define _______ KC_TRNS
|
||||
#define XXXXXXX KC_NO
|
||||
|
||||
/*
|
||||
* Each layer gets a name for readability.
|
||||
* The underscores don't mean anything - you can
|
||||
* have a layer called STUFF or any other name.
|
||||
* Layer names don't all need to be of the same
|
||||
* length, and you can also skip them entirely
|
||||
* and just use numbers.
|
||||
*
|
||||
*/
|
||||
#define BL 0 // Base Layer
|
||||
#define FL 1 // Function Layer
|
||||
#define NL 2 // Numpad Layer
|
||||
#define RL 3 // RGB Layer
|
||||
|
||||
/*
|
||||
* Let's give an easier name to the RGB modes
|
||||
* and assign the ones we want to the different layer
|
||||
* these will then be used by the function below
|
||||
*
|
||||
*/
|
||||
#define RGB_STA RGB_M_P //rgb static
|
||||
#define RGB_BRE RGB_M_B //rgb breathe
|
||||
#define RGB_RAI RGB_M_R //rgb rainbow
|
||||
#define RGB_SWI RGB_M_SW //rgb swirl
|
||||
#define RGB_SNA RGB_M_SN //rgb snake
|
||||
#define RGB_KNI RGB_M_K //rgb knight
|
||||
#define RGB_GRA RGB_M_G //rgb gradient
|
||||
#define RGB_XMS RGB_M_X //rgb christmas
|
||||
//
|
||||
#define RGB_BL_MODE rgblight_mode_noeeprom(3) //rgb mode for BL layer
|
||||
#define RGB_BL_LIGHT rgblight_sethsv_noeeprom_turquoise() //rgb light for BL layer
|
||||
//
|
||||
#define RGB_FL_MODE rgblight_mode_noeeprom(1) //rgb mode for FL layer
|
||||
#define RGB_FL_LIGHT rgblight_sethsv_noeeprom_orange() //rgb light for FL layer
|
||||
//
|
||||
#define RGB_NL_MODE rgblight_mode_noeeprom(12) //rgb mode for NL layer
|
||||
#define RGB_NL_LIGHT rgblight_sethsv_noeeprom_turquoise() //rgb light for NL layer
|
||||
//
|
||||
#define RGB_RL_MODE rgblight_mode_noeeprom(22) //rgb mode for RL layer
|
||||
#define RGB_RL_LIGHT rgblight_sethsv_noeeprom_red() //rgb light for RL layer
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Keymap BL: Base Layer (Default Layer)
|
||||
*
|
||||
* ,-----------------------------------------------------------.
|
||||
* | ' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = |Backsp |
|
||||
* |-----------------------------------------------------------|
|
||||
* | Tab | q | w | e | r | t | y | u | i | o | p | [ | ] |enter|
|
||||
* |------------------------------------------------------ |
|
||||
* | Caps | a | s | d | f | g | h | j | k | l | ; | ' | # | |
|
||||
* |-----------------------------------------------------------|
|
||||
* |Shft| < | z | x | c | v | b | n | m | , | . | / | Shift |
|
||||
* |-----------------------------------------------------------|
|
||||
* |Ctrl|Gui |Alt | Space | FN | Space |Alt |Gui | NL |Ctrl |
|
||||
* `-----------------------------------------------------------'
|
||||
*/
|
||||
[BL] = LAYOUT_60_iso_split(
|
||||
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC,
|
||||
KC_TAB , KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT,
|
||||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(FL), KC_SPC, KC_RALT, KC_RGUI, TO(NL), KC_RCTL),
|
||||
|
||||
/* Keymap FL: Function Layer
|
||||
*
|
||||
* ,-----------------------------------------------------------.
|
||||
* |ESC|F1 |F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12| DEL |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | | | | | |prt| | | |
|
||||
* |------------------------------------------------------ |
|
||||
* | |m l|m d|m u|m r| | | l | d | u | r | | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | |mb1|mb2| |hm |pgd|pgu|end| |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | | | | | |
|
||||
* `-----------------------------------------------------------'
|
||||
*/
|
||||
[FL] = LAYOUT_60_iso_split(
|
||||
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL,
|
||||
_______ , _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, _______, _______,
|
||||
_______, KC_MS_LEFT,KC_MS_DOWN,KC_MS_UP, KC_MS_RIGHT,_______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, KC_MS_BTN1,KC_MS_BTN2,_______, KC_HOME, KC_PGDOWN, KC_PGUP, KC_END, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
|
||||
|
||||
/* Keymap NL: Numpad Layer
|
||||
*
|
||||
* ,-----------------------------------------------------------.
|
||||
* |BL | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | 4 | 5 | 6 | * | / | | 4 | 5 | 6 | * | / | ] | |
|
||||
* |------------------------------------------------------ |
|
||||
* | | 7 | 8 | 9 | + | - | | 1 | 2 | 3 | + | - | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | 0 | , | . | = | | | 0 | , | . | = | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | | | | RL | |
|
||||
* `-----------------------------------------------------------'
|
||||
*/
|
||||
[NL] = LAYOUT_60_iso_split(
|
||||
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
||||
TG(NL), KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, _______,
|
||||
_______, KC_4, KC_5, KC_6, KC_PAST, KC_PSLS, _______, KC_4, KC_5, KC_6, KC_PAST, KC_PSLS, _______,
|
||||
_______, KC_7, KC_8, KC_9, KC_PPLS, KC_PMNS, _______, KC_1, KC_2, KC_3, KC_PPLS, KC_PMNS, _______, _______,
|
||||
_______, KC_0, KC_COMM, KC_DOT, KC_EQL, _______, _______, _______, KC_0, KC_COMM, KC_DOT, KC_EQL, _______,
|
||||
_______, _______, _______, _______, MO(FL), _______, _______, _______, TG(RL), _______),
|
||||
|
||||
/* Keymap RL: RGB Layer
|
||||
*
|
||||
* ,-----------------------------------------------------------.
|
||||
* |BL | | | | | | | | | | | | |Reset |
|
||||
* |-----------------------------------------------------------|
|
||||
* | |tog|mod|hui|hud| | |sai|sad|vai|vad| | | |
|
||||
* |------------------------------------------------------ |
|
||||
* | |sta|bre|rai|swi| | |sna|kni|gra|xms| | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | |bd |bt |bi |bs | | | | | | | |
|
||||
* |-----------------------------------------------------------|
|
||||
* | | | | | | | | | BL | |
|
||||
* `-----------------------------------------------------------'
|
||||
*/
|
||||
[RL] = LAYOUT_60_iso_split(
|
||||
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
||||
TG(RL), _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET,
|
||||
_______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, _______, _______, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______,
|
||||
_______, RGB_STA, RGB_BRE, RGB_RAI, RGB_SWI, _______, _______, RGB_SNA, RGB_KNI, RGB_GRA, RGB_XMS, _______, _______, _______,
|
||||
_______, BL_DEC, BL_TOGG, BL_INC, BL_STEP, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, MO(FL), _______, _______, _______, TO(BL), _______),
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
void persistent_default_layer_set(uint16_t default_layer) {
|
||||
eeconfig_update_default_layer(default_layer);
|
||||
default_layer_set(default_layer);
|
||||
}
|
||||
|
||||
|
||||
// layer-activated RGB underglow
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
|
||||
static uint8_t old_layer = 1;
|
||||
uint8_t new_layer = biton32(layer_state);
|
||||
|
||||
if (old_layer != new_layer) {
|
||||
switch (new_layer) {
|
||||
case BL:
|
||||
RGB_BL_MODE;
|
||||
RGB_BL_LIGHT;
|
||||
break;
|
||||
case FL:
|
||||
RGB_FL_MODE;
|
||||
RGB_FL_LIGHT;
|
||||
break;
|
||||
case NL:
|
||||
RGB_NL_MODE;
|
||||
// RGB_NL_LIGHT;
|
||||
break;
|
||||
case RL:
|
||||
RGB_RL_MODE;
|
||||
// RGB_RL_LIGHT;
|
||||
break;
|
||||
}
|
||||
|
||||
old_layer = new_layer;
|
||||
}
|
||||
|
||||
#endif //RGBLIGHT_ENABLE
|
||||
|
||||
}
|
Loading…
Reference in a new issue