diff --git a/keyboards/bdn9/config.h b/keyboards/bdn9/config.h index 3fc92a062e9..1d006237522 100644 --- a/keyboards/bdn9/config.h +++ b/keyboards/bdn9/config.h @@ -50,7 +50,7 @@ along with this program. If not, see . #define RGB_DI_PIN D3 #ifdef RGB_DI_PIN - #define RGBLED_NUM 3 + #define RGBLED_NUM 4 #define RGBLIGHT_HUE_STEP 8 #define RGBLIGHT_SAT_STEP 8 #define RGBLIGHT_VAL_STEP 8 diff --git a/keyboards/bdn9/keymaps/default/keymap.c b/keyboards/bdn9/keymaps/default/keymap.c index 66b9a3eb674..3bab86ae546 100644 --- a/keyboards/bdn9/keymaps/default/keymap.c +++ b/keyboards/bdn9/keymaps/default/keymap.c @@ -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); - } - } }