]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
[Keyboard] Update default keymap, change RGB LEDs to 4 for Rev. 1.1 (#5086)
authorDanny <nooges@users.noreply.github.com>
Fri, 8 Feb 2019 23:35:49 +0000 (18:35 -0500)
committerDrashna Jaelre <drashna@live.com>
Fri, 8 Feb 2019 23:35:49 +0000 (15:35 -0800)
keyboards/bdn9/config.h
keyboards/bdn9/keymaps/default/keymap.c

index 3fc92a062e9076c9a2bd8a9f4534bbfa89cfdbd6..1d0062375227cb4e65c50010d334e8d931ae71a0 100644 (file)
@@ -50,7 +50,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #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
index 66b9a3eb674c926008f937d40d65cba9e816173c..3bab86ae5468c574ad17ebe0e0e2e893aa8b5773 100644 (file)
 
 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_PGDN);
+            tap_code(KC_VOLU);
         } else {
-            tap_code(KC_PGUP);
+            tap_code(KC_VOLD);
         }
     }
     else if (index == 1) {
         if (clockwise) {
-            tap_code(KC_DOWN);
+            tap_code(KC_PGDN);
         } else {
-            tap_code(KC_UP);
+            tap_code(KC_PGUP);
         }
     }
 }