diff options
Diffstat (limited to 'keyboards/2key2crawl/keymaps/vol/keymap.c')
-rw-r--r-- | keyboards/2key2crawl/keymaps/vol/keymap.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/keyboards/2key2crawl/keymaps/vol/keymap.c b/keyboards/2key2crawl/keymaps/vol/keymap.c new file mode 100644 index 000000000..a45d3f778 --- /dev/null +++ b/keyboards/2key2crawl/keymaps/vol/keymap.c | |||
@@ -0,0 +1,26 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | |||
3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
4 | |||
5 | LAYOUT( | ||
6 | KC_1, KC_2, KC_3, KC_4, KC_5, | ||
7 | KC_6, KC_7, KC_8, KC_9, KC_0, KC_ENTER), | ||
8 | |||
9 | }; | ||
10 | |||
11 | void matrix_init_user(void) { | ||
12 | debug_config.matrix = 1; | ||
13 | debug_config.keyboard = 1; | ||
14 | debug_config.enable = 1; | ||
15 | } | ||
16 | |||
17 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
18 | if (index == 0) { | ||
19 | if (clockwise) { | ||
20 | tap_code(KC_VOLU); | ||
21 | } else { | ||
22 | tap_code(KC_VOLD); | ||
23 | } | ||
24 | } | ||
25 | return true; | ||
26 | } | ||