summary refs log tree commit diff
path: root/keyboards/hackpad/keymaps
diff options
context:
space:
mode:
authorThePurox <28731015+ThePurox@users.noreply.github.com>2023-07-04 19:21:10 +0200
committerGitHub <noreply@github.com>2023-07-04 11:21:10 -0600
commit01920b234adb1e805d6b8d8fe88175338fe0a1cd (patch)
treed3636c8c474dc8542d642d0f483dc2addcbca628 /keyboards/hackpad/keymaps
parente8acc8e63fea2bbe4d8872920772a5548c6a6350 (diff)
[Keyboard] Add hackpad (#20402)
Co-authored-by: Sergey Vlasov <sigprof@gmail.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Nico Stuhlmueller <n+git@ncxst.de>
Co-authored-by: jack <0x6a73@protonmail.com>
Diffstat (limited to 'keyboards/hackpad/keymaps')
-rw-r--r--keyboards/hackpad/keymaps/default/keymap.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/keyboards/hackpad/keymaps/default/keymap.c b/keyboards/hackpad/keymaps/default/keymap.c
new file mode 100644
index 0000000000..43489484ae
--- /dev/null
+++ b/keyboards/hackpad/keymaps/default/keymap.c
@@ -0,0 +1,30 @@
+// Copyright 2023 Nico Stuhlmueller (@ThePurox)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+#include "keymap_german.h"
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+    /*             ┌───┐
+     *             │MUT│
+     * ┌───┬───┬───┼───┤
+     * │ 7 │ 8 │ 9 │ + │
+     * ├───┼───┼───┼───┤
+     * │ 4 │ 5 │ 6 │ - │
+     * ├───┼───┼───┼───┤
+     * │ 1 │ 2 │ 3 │ * │
+     * ├───┼───┼───┼───┤
+     * │ 0 │ . │Ent│ / │
+     * └───┴───┴───┴───┘
+     */
+    [0] = LAYOUT(                                 LT(1, KC_MUTE),
+                            KC_7, KC_8,   KC_9,   DE_PLUS,
+                            KC_4, KC_5,   KC_6,   DE_MINS,
+                            KC_1, KC_2,   KC_3,   DE_ASTR,
+                            KC_0, KC_DOT, KC_ENT, DE_SLSH),
+
+    [1] = LAYOUT(                                         _______,
+                            RGB_M_P,  RGB_M_B,  RGB_M_R,  RGB_HUI,
+                            RGB_M_SW, RGB_M_SN, RGB_M_K,  RGB_HUD,
+                            RGB_M_X,  RGB_M_G,  RGB_M_TW, RGB_VAI,
+                            RGB_TOG,  RGB_SAI,  RGB_SAD,  RGB_VAD)};