aboutsummaryrefslogtreecommitdiff
path: root/keyboards/2key2crawl/keymaps/default/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/2key2crawl/keymaps/default/keymap.c')
-rw-r--r--keyboards/2key2crawl/keymaps/default/keymap.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/keyboards/2key2crawl/keymaps/default/keymap.c b/keyboards/2key2crawl/keymaps/default/keymap.c
new file mode 100644
index 000000000..3e36b6070
--- /dev/null
+++ b/keyboards/2key2crawl/keymaps/default/keymap.c
@@ -0,0 +1,28 @@
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
17
18
19bool encoder_update_user(uint8_t index, bool clockwise) {
20 if (index == 0) {
21 if (clockwise) {
22 tap_code(KC_PGUP);
23 } else {
24 tap_code(KC_PGDN);
25 }
26 }
27 return true;
28}