Skip to content

Commit c9799fc

Browse files
committed
Adjust encoders
1 parent a21cce0 commit c9799fc

File tree

4 files changed

+18
-13
lines changed

4 files changed

+18
-13
lines changed

keyboards/nullbitsco/nibble/keymaps/custom-vial/keymap.c

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,27 @@
2020
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
2121
[0] = LAYOUT_all(
2222
QK_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME,
23-
KC_F13, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL,
24-
KC_F14, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP,
25-
KC_F15, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN,
23+
KC_MPLY, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_END,
24+
KC_F14, KC_BSPC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGUP,
25+
KC_F15, SC_LSPO, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SC_RSPC, KC_UP, KC_PGDN,
2626
KC_F16, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
2727
),
2828

2929
[1] = LAYOUT_all(
30-
QK_BOOT, 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_END,
31-
RGB_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
32-
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
30+
QK_BOOT, 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_DEL, _______,
31+
UG_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
32+
_______, KC_CAPS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
3333
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
3434
_______, _______, _______, _______, _______, _______, _______, _______, KC_MPRV, KC_MPLY, KC_MNXT
3535
)
3636

3737
};
3838

39+
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
40+
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
41+
[1] = { ENCODER_CCW_CW(UG_NEXT, UG_HUEU) },
42+
};
43+
3944
/* RGB Timeout behaves similar to OLED Timeout where it turns off underglow
4045
lighting on your QMK board after X seconds of inactivity. The logic is
4146
best described by this reddit comment - https://bit.ly/3zCYIRl

keyboards/nullbitsco/nibble/keymaps/custom-vial/rules.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ COMMAND_ENABLE = no
1414

1515
# Enable the following features
1616
QMK_SETTINGS = yes
17-
# ENCODER_MAP_ENABLE = yes
18-
VIAL_ENCODERS_ENABLE = yes # No idea if this is needed
17+
ENCODER_MAP_ENABLE = yes
18+
# VIAL_ENCODERS_ENABLE = yes # No idea if this is needed
1919
UNICODE_ENABLE = yes
2020
AVR_USE_MINIMAL_PRINTF = yes

keyboards/nullbitsco/tidbit/keymaps/custom-vial/keymap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
#ifdef ENCODER_MAP_ENABLE
4343
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
44-
[0] = { ENCODER_CCW_CW(QK_MOUSE_WHEEL_DOWN, QK_MOUSE_WHEEL_UP), },
45-
[1] = { ENCODER_CCW_CW(_______, _______), },
46-
};
44+
[0] = { ENCODER_CCW_CW(QK_MOUSE_WHEEL_DOWN, QK_MOUSE_WHEEL_UP), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), },
45+
[1] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), },
46+
};
4747
#endif

keyboards/nullbitsco/tidbit/keymaps/custom-vial/rules.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ COMMAND_ENABLE = no
1414

1515
# Enable the following features
1616
QMK_SETTINGS = yes
17-
# ENCODER_MAP_ENABLE = yes
18-
VIAL_ENCODERS_ENABLE = yes # No idea if this is needed
17+
ENCODER_MAP_ENABLE = yes
18+
# VIAL_ENCODERS_ENABLE = yes # No idea if this is needed
1919
# UNICODE_ENABLE = yes
2020
AVR_USE_MINIMAL_PRINTF = yes

0 commit comments

Comments
 (0)