From e89f9c6dd361ad0fb784ddd051c5a1c93d243735 Mon Sep 17 00:00:00 2001 From: Dennis Kruyt Date: Tue, 2 May 2023 05:28:05 +0200 Subject: [PATCH] [Keyboard] add phantagom/baragon marcopad (#20543) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pablo Martínez <58857054+elpekenin@users.noreply.github.com> Co-authored-by: jack <0x6a73@protonmail.com> Co-authored-by: Drashna Jaelre Co-authored-by: Tom Barnes --- .../phantagom/baragon/keymaps/via/keymap.c | 25 +++++++++++++++++++ .../phantagom/baragon/keymaps/via/rules.mk | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 keyboards/handwired/phantagom/baragon/keymaps/via/keymap.c create mode 100644 keyboards/handwired/phantagom/baragon/keymaps/via/rules.mk 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 00000000..ee6b9d5e --- /dev/null +++ b/keyboards/handwired/phantagom/baragon/keymaps/via/keymap.c @@ -0,0 +1,25 @@ +// Copyright 2023 +// 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 00000000..f1adcab0 --- /dev/null +++ b/keyboards/handwired/phantagom/baragon/keymaps/via/rules.mk @@ -0,0 +1,2 @@ +VIA_ENABLE = yes +ENCODER_MAP_ENABLE = yes