aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/bdn9/config.h2
-rw-r--r--keyboards/bdn9/keymaps/default/keymap.c17
2 files changed, 12 insertions, 7 deletions
diff --git a/keyboards/bdn9/config.h b/keyboards/bdn9/config.h
index 3fc92a062..1d0062375 100644
--- a/keyboards/bdn9/config.h
+++ b/keyboards/bdn9/config.h
@@ -50,7 +50,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
50 50
51#define RGB_DI_PIN D3 51#define RGB_DI_PIN D3
52#ifdef RGB_DI_PIN 52#ifdef RGB_DI_PIN
53 #define RGBLED_NUM 3 53 #define RGBLED_NUM 4
54 #define RGBLIGHT_HUE_STEP 8 54 #define RGBLIGHT_HUE_STEP 8
55 #define RGBLIGHT_SAT_STEP 8 55 #define RGBLIGHT_SAT_STEP 8
56 #define RGBLIGHT_VAL_STEP 8 56 #define RGBLIGHT_VAL_STEP 8
diff --git a/keyboards/bdn9/keymaps/default/keymap.c b/keyboards/bdn9/keymaps/default/keymap.c
index 66b9a3eb6..3bab86ae5 100644
--- a/keyboards/bdn9/keymaps/default/keymap.c
+++ b/keyboards/bdn9/keymaps/default/keymap.c
@@ -17,25 +17,30 @@
17 17
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 [0] = LAYOUT( 19 [0] = LAYOUT(
20 KC_A, KC_B, KC_C, \ 20 KC_MUTE, KC_HOME, KC_MPLY, \
21 BL_STEP, KC_UP, RGB_MOD, \ 21 MO(1), KC_UP, RGB_MOD, \
22 KC_LEFT, KC_DOWN, KC_RGHT \ 22 KC_LEFT, KC_DOWN, KC_RGHT \
23 ), 23 ),
24 [1] = LAYOUT(
25 RESET, BL_STEP, KC_STOP, \
26 _______, KC_HOME, RGB_MOD, \
27 KC_MPRV, KC_END, KC_MNXT \
28 ),
24}; 29};
25 30
26void encoder_update_user(uint8_t index, bool clockwise) { 31void encoder_update_user(uint8_t index, bool clockwise) {
27 if (index == 0) { 32 if (index == 0) {
28 if (clockwise) { 33 if (clockwise) {
29 tap_code(KC_PGDN); 34 tap_code(KC_VOLU);
30 } else { 35 } else {
31 tap_code(KC_PGUP); 36 tap_code(KC_VOLD);
32 } 37 }
33 } 38 }
34 else if (index == 1) { 39 else if (index == 1) {
35 if (clockwise) { 40 if (clockwise) {
36 tap_code(KC_DOWN); 41 tap_code(KC_PGDN);
37 } else { 42 } else {
38 tap_code(KC_UP); 43 tap_code(KC_PGUP);
39 } 44 }
40 } 45 }
41} 46}