summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/m40/5x5_macropad/keymaps/default/keymap.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-03-29 19:19:19 +0000
committerQMK Bot <hello@qmk.fm>2022-03-29 19:19:19 +0000
commitd76a68fb0f571132c914ac378f67268b580750fe (patch)
tree8e59c452a5956f2715b9d9dc616adaae17522c8c /keyboards/handwired/m40/5x5_macropad/keymaps/default/keymap.c
parentaadf0a103810d76388e745c4f0bc0eddaa30d4b7 (diff)
parent6cdf230a20e34302f54db018c18063395345757f (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/handwired/m40/5x5_macropad/keymaps/default/keymap.c')
-rw-r--r--keyboards/handwired/m40/5x5_macropad/keymaps/default/keymap.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/keyboards/handwired/m40/5x5_macropad/keymaps/default/keymap.c b/keyboards/handwired/m40/5x5_macropad/keymaps/default/keymap.c
new file mode 100644
index 0000000000..5b329dc571
--- /dev/null
+++ b/keyboards/handwired/m40/5x5_macropad/keymaps/default/keymap.c
@@ -0,0 +1,26 @@
+// Copyright 2022 Tomek (@m40-dev)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+// Defines names for use in layer keycodes and the keymap
+enum layer_names {
+ _BASE,
+ _FN
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /* Base */
+ [_BASE] = LAYOUT_ortho_5x5(
+ //┌────────┬────────┬────────┬────────┬────────┐
+ KC_ESC, KC_1, KC_2, KC_3, RESET,
+ //├────────┼────────┼────────┼────────┬────────┤
+ KC_1, KC_2, KC_3, KC_4, KC_5,
+ //├────────┼────────┼────────┼────────┼────────┤
+ KC_1, KC_2, KC_3, KC_4, KC_5,
+ //├────────┼────────┼────────┼────────┼────────┤
+ KC_1, KC_2, KC_3, KC_4, KC_5,
+ //├────────┼────────┼────────┼────────┼────────┤
+ KC_1, KC_2, KC_3, KC_4, KC_5 )
+ //└────────┴────────┴────────┴─────────────────┘
+};