Skip to content

Commit

Permalink
Modify default encoder mappings, change PID, enable mousekeys (qmk#20329
Browse files Browse the repository at this point in the history
)
  • Loading branch information
nooges authored Apr 3, 2023
1 parent d06ce01 commit a5272a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
12 changes: 3 additions & 9 deletions keyboards/keebio/kbo5000/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
#include QMK_KEYBOARD_H

enum encoder_names {
LEFT_HALF_ENC,
RIGHT_HALF_ENC1,
RIGHT_HALF_ENC2,
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_all(
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_PSCR, KC_SCRL, KC_PAUS,
Expand Down Expand Up @@ -37,8 +31,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[0] = { ENCODER_CCW_CW(KC_PGUP, KC_PGDN), ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_UP, KC_DOWN) },
[1] = { ENCODER_CCW_CW(KC_PGUP, KC_PGDN), ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_UP, KC_DOWN) },
[2] = { ENCODER_CCW_CW(KC_PGUP, KC_PGDN), ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_UP, KC_DOWN) }
[0] = { ENCODER_CCW_CW(KC_PGDN, KC_PGUP), ENCODER_CCW_CW(KC_DOWN, KC_UP), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[1] = { ENCODER_CCW_CW(RGB_RMOD, RGB_MOD), ENCODER_CCW_CW(KC_MPRV, KC_MNXT), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[2] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI), ENCODER_CCW_CW(RGB_SAD, RGB_SAI), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
};
#endif
3 changes: 2 additions & 1 deletion keyboards/keebio/kbo5000/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
VIA_ENABLE = yes
LTO_ENABLE = yes
ENCODER_MAP_ENABLE = yes
ENCODER_MAP_ENABLE = yes
MOUSEKEY_ENABLE = yes
2 changes: 1 addition & 1 deletion keyboards/keebio/kbo5000/rev1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"maintainer": "nooges",
"usb": {
"vid": "0xCB10",
"pid": "0x126A",
"pid": "0x136A",
"device_version": "1.0.0"
},
"encoder": {
Expand Down

0 comments on commit a5272a1

Please sign in to comment.