summaryrefslogtreecommitdiff
path: root/keyboards/alhenkb/macropad5x4/keymaps
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2023-03-29 18:47:54 +0000
committerQMK Bot <hello@qmk.fm>2023-03-29 18:47:54 +0000
commit3042381679782e39594c2a44f0e3283d22cbfbd5 (patch)
treef688764bd9903bfc052469a29de598c179db0e0c /keyboards/alhenkb/macropad5x4/keymaps
parent66f19518b40afc1f99fc8ee3743dca2b34e92de2 (diff)
parent896f38c52cf720473df0c6687581852adf26d99f (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/alhenkb/macropad5x4/keymaps')
-rw-r--r--keyboards/alhenkb/macropad5x4/keymaps/default/keymap.c27
-rw-r--r--keyboards/alhenkb/macropad5x4/keymaps/numpad/keymap.c48
-rw-r--r--keyboards/alhenkb/macropad5x4/keymaps/via/keymap.c27
-rw-r--r--keyboards/alhenkb/macropad5x4/keymaps/via/rules.mk1
4 files changed, 103 insertions, 0 deletions
diff --git a/keyboards/alhenkb/macropad5x4/keymaps/default/keymap.c b/keyboards/alhenkb/macropad5x4/keymaps/default/keymap.c
new file mode 100644
index 0000000000..12a878346e
--- /dev/null
+++ b/keyboards/alhenkb/macropad5x4/keymaps/default/keymap.c
@@ -0,0 +1,27 @@
+// Copyright 2023 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /*
+ * ┌───┬───┬───┬───┐
+ * │ 1 │ 2 │ 3 │ 4 │
+ * ├───┼───┼───┼───┤
+ * │ 5 │ 6 │ 7 │ 8 │
+ * ├───┼───┼───┼───┤
+ * │ Q │ W │ E │ R │
+ * ├───┼───┼───┼───┤
+ * │ A │ S │ D │ F │
+ * ├───┼───┼───┼───┤
+ * │ Z │ X │ C │ V │
+ * └───────┴───┴───┘
+ */
+ [0] = LAYOUT_ortho_5x4(
+ KC_P1, KC_P2, KC_P3, KC_P4,
+ KC_P5, KC_P6, KC_P7, KC_P8,
+ KC_Q, KC_W, KC_E, KC_R,
+ KC_A, KC_S, KC_D, KC_F,
+ KC_Z, KC_X, KC_C, KC_V
+ ),
+};
diff --git a/keyboards/alhenkb/macropad5x4/keymaps/numpad/keymap.c b/keyboards/alhenkb/macropad5x4/keymaps/numpad/keymap.c
new file mode 100644
index 0000000000..7a1e287e38
--- /dev/null
+++ b/keyboards/alhenkb/macropad5x4/keymaps/numpad/keymap.c
@@ -0,0 +1,48 @@
+// Copyright 2023 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /*
+ * ┌───┬───┬───┬───┐
+ * │TG1│ / │ * │ - │
+ * ├───┼───┼───┼───┤
+ * │ 7 │ 8 │ 9 │ │
+ * ├───┼───┼───┤ + │
+ * │ 4 │ 5 │ 6 │ │
+ * ├───┼───┼───┼───┤
+ * │ 1 │ 2 │ 3 │ │
+ * ├───┴───┼───┤Ent│
+ * │ 0 │ . │ │
+ * └───────┴───┴───┘
+ */
+ [0] = LAYOUT_numpad_5x4(
+ TG(1), KC_PSLS, KC_PAST, KC_PMNS,
+ KC_P7, KC_P8, KC_P9,
+ KC_P4, KC_P5, KC_P6, KC_PPLS,
+ KC_P1, KC_P2, KC_P3,
+ KC_P0, KC_PDOT, KC_PENT
+ ),
+
+ /*
+ * ┌───┬───┬───┬───┐
+ * │TG1│ / │ * │ - │
+ * ┌───┬───┬───┐───┤
+ * │Hom│ ↑ │PgU│ │
+ * ├───┼───┼───┤ + │
+ * │ ← │ │ → │ │
+ * ├───┼───┼───┤───┤
+ * │End│ ↓ │PgD│ │
+ * ├───┴───┼───┤Ent│
+ * │Insert │Del│ │
+ * └───────┴───┘───┘
+ */
+ [1] = LAYOUT_numpad_5x4(
+ _______, _______, _______, _______,
+ KC_HOME, KC_UP, KC_PGUP,
+ KC_LEFT, XXXXXXX, KC_RGHT, _______,
+ KC_END, KC_DOWN, KC_PGDN,
+ KC_INS, KC_DEL, _______
+ )
+};
diff --git a/keyboards/alhenkb/macropad5x4/keymaps/via/keymap.c b/keyboards/alhenkb/macropad5x4/keymaps/via/keymap.c
new file mode 100644
index 0000000000..12a878346e
--- /dev/null
+++ b/keyboards/alhenkb/macropad5x4/keymaps/via/keymap.c
@@ -0,0 +1,27 @@
+// Copyright 2023 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /*
+ * ┌───┬───┬───┬───┐
+ * │ 1 │ 2 │ 3 │ 4 │
+ * ├───┼───┼───┼───┤
+ * │ 5 │ 6 │ 7 │ 8 │
+ * ├───┼───┼───┼───┤
+ * │ Q │ W │ E │ R │
+ * ├───┼───┼───┼───┤
+ * │ A │ S │ D │ F │
+ * ├───┼───┼───┼───┤
+ * │ Z │ X │ C │ V │
+ * └───────┴───┴───┘
+ */
+ [0] = LAYOUT_ortho_5x4(
+ KC_P1, KC_P2, KC_P3, KC_P4,
+ KC_P5, KC_P6, KC_P7, KC_P8,
+ KC_Q, KC_W, KC_E, KC_R,
+ KC_A, KC_S, KC_D, KC_F,
+ KC_Z, KC_X, KC_C, KC_V
+ ),
+};
diff --git a/keyboards/alhenkb/macropad5x4/keymaps/via/rules.mk b/keyboards/alhenkb/macropad5x4/keymaps/via/rules.mk
new file mode 100644
index 0000000000..036bd6d1c3
--- /dev/null
+++ b/keyboards/alhenkb/macropad5x4/keymaps/via/rules.mk
@@ -0,0 +1 @@
+VIA_ENABLE = yes \ No newline at end of file