[Keyboard] Update default keymap, change RGB LEDs to 4 for Rev. 1.1 (#5086)
This commit is contained in:
parent
aea45c5483
commit
f4f75acbd6
2 changed files with 15 additions and 10 deletions
|
@ -17,25 +17,30 @@
|
|||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
KC_A, KC_B, KC_C, \
|
||||
BL_STEP, KC_UP, RGB_MOD, \
|
||||
KC_MUTE, KC_HOME, KC_MPLY, \
|
||||
MO(1), KC_UP, RGB_MOD, \
|
||||
KC_LEFT, KC_DOWN, KC_RGHT \
|
||||
),
|
||||
[1] = LAYOUT(
|
||||
RESET, BL_STEP, KC_STOP, \
|
||||
_______, KC_HOME, RGB_MOD, \
|
||||
KC_MPRV, KC_END, KC_MNXT \
|
||||
),
|
||||
};
|
||||
|
||||
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||
if (index == 0) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_VOLU);
|
||||
} else {
|
||||
tap_code(KC_VOLD);
|
||||
}
|
||||
}
|
||||
else if (index == 1) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_PGDN);
|
||||
} else {
|
||||
tap_code(KC_PGUP);
|
||||
}
|
||||
}
|
||||
else if (index == 1) {
|
||||
if (clockwise) {
|
||||
tap_code(KC_DOWN);
|
||||
} else {
|
||||
tap_code(KC_UP);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue