summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/phantagom/baragon/keymaps
diff options
context:
space:
mode:
authorDennis Kruyt <dennis@kruyt.org>2023-05-02 05:28:05 +0200
committerGitHub <noreply@github.com>2023-05-01 20:28:05 -0700
commit9b41e8168d99ded7c53b09b6cce53287e8244df3 (patch)
tree9d071001433aa6d8bf596fdf372b2c08a7bf2ea2 /keyboards/handwired/phantagom/baragon/keymaps
parente206a1684e6f31a5a41883b77b5823a99141e971 (diff)
[Keyboard] add phantagom/baragon marcopad (#20543)
Co-authored-by: Pablo Martínez <58857054+elpekenin@users.noreply.github.com> Co-authored-by: jack <0x6a73@protonmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Tom Barnes <barnestom@me.com>
Diffstat (limited to 'keyboards/handwired/phantagom/baragon/keymaps')
-rw-r--r--keyboards/handwired/phantagom/baragon/keymaps/default/keymap.c25
-rw-r--r--keyboards/handwired/phantagom/baragon/keymaps/default/rules.mk1
-rw-r--r--keyboards/handwired/phantagom/baragon/keymaps/via/keymap.c25
-rw-r--r--keyboards/handwired/phantagom/baragon/keymaps/via/rules.mk2
4 files changed, 53 insertions, 0 deletions
diff --git a/keyboards/handwired/phantagom/baragon/keymaps/default/keymap.c b/keyboards/handwired/phantagom/baragon/keymaps/default/keymap.c
new file mode 100644
index 0000000000..96431bbedb
--- /dev/null
+++ b/keyboards/handwired/phantagom/baragon/keymaps/default/keymap.c
@@ -0,0 +1,25 @@
+// Copyright 2023 <dennis@kruyt.org>
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT( /* Base */
+ KC_P1, KC_P2, KC_P3, KC_P4,
+ KC_P5, KC_P6, KC_P7,
+ KC_P8, MO(1), KC_P9
+ ),
+ [1] = LAYOUT(
+ RGB_TOG , RGB_MOD , RGB_HUI, _______,
+ _______, _______, _______,
+ _______, _______, _______
+ ),
+};
+
+#if defined(ENCODER_MAP_ENABLE)
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+ [0] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) },
+ [1] = { ENCODER_CCW_CW(KC_MRWD, KC_MFFD) },
+};
+#endif \ No newline at end of file
diff --git a/keyboards/handwired/phantagom/baragon/keymaps/default/rules.mk b/keyboards/handwired/phantagom/baragon/keymaps/default/rules.mk
new file mode 100644
index 0000000000..ee32568148
--- /dev/null
+++ b/keyboards/handwired/phantagom/baragon/keymaps/default/rules.mk
@@ -0,0 +1 @@
+ENCODER_MAP_ENABLE = yes
diff --git a/keyboards/handwired/phantagom/baragon/keymaps/via/keymap.c b/keyboards/handwired/phantagom/baragon/keymaps/via/keymap.c
new file mode 100644
index 0000000000..ee6b9d5ec6
--- /dev/null
+++ b/keyboards/handwired/phantagom/baragon/keymaps/via/keymap.c
@@ -0,0 +1,25 @@
+// Copyright 2023 <dennis@kruyt.org>
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT( /* Base */
+ KC_P1, KC_P2, KC_P3, KC_P4,
+ KC_P5, KC_P6, KC_P7,
+ KC_P8, MO(1), KC_P9
+ ),
+ [1] = LAYOUT(
+ RGB_TOG , RGB_MOD , RGB_HUI, _______,
+ _______, _______, _______,
+ _______, _______, _______
+ ),
+};
+
+#if defined(ENCODER_MAP_ENABLE)
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+ [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
+ [1] = { ENCODER_CCW_CW(KC_MRWD, KC_MFFD) },
+};
+#endif \ No newline at end of file
diff --git a/keyboards/handwired/phantagom/baragon/keymaps/via/rules.mk b/keyboards/handwired/phantagom/baragon/keymaps/via/rules.mk
new file mode 100644
index 0000000000..f1adcab005
--- /dev/null
+++ b/keyboards/handwired/phantagom/baragon/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
+VIA_ENABLE = yes
+ENCODER_MAP_ENABLE = yes