aboutsummaryrefslogtreecommitdiff
path: root/keyboards/2key2crawl/keymaps/vol/keymap.c
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-04-10 12:13:40 +0100
committerAkshay <[email protected]>2022-04-10 12:13:40 +0100
commitdc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch)
tree4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/2key2crawl/keymaps/vol/keymap.c
Diffstat (limited to 'keyboards/2key2crawl/keymaps/vol/keymap.c')
-rw-r--r--keyboards/2key2crawl/keymaps/vol/keymap.c26
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
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
5LAYOUT(
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
11void matrix_init_user(void) {
12 debug_config.matrix = 1;
13 debug_config.keyboard = 1;
14 debug_config.enable = 1;
15}
16
17bool 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}