From 9a654e5728bb80016d02d1365561bcc8badd8770 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 12 Feb 2023 15:09:43 -0500 Subject: [Keyboard] Add Blue Team Pad (#19807) Co-authored-by: Drashna Jaelre Co-authored-by: Joel Challis Co-authored-by: Ryan --- .../blue_team_pad/keymaps/default/keymap.c | 22 ++++++++++++++++++++++ .../blue_team_pad/keymaps/default/rules.mk | 1 + .../fearherbs1/blue_team_pad/keymaps/via/config.h | 6 ++++++ .../fearherbs1/blue_team_pad/keymaps/via/keymap.c | 21 +++++++++++++++++++++ .../fearherbs1/blue_team_pad/keymaps/via/rules.mk | 2 ++ 5 files changed, 52 insertions(+) create mode 100644 keyboards/fearherbs1/blue_team_pad/keymaps/default/keymap.c create mode 100644 keyboards/fearherbs1/blue_team_pad/keymaps/default/rules.mk create mode 100644 keyboards/fearherbs1/blue_team_pad/keymaps/via/config.h create mode 100644 keyboards/fearherbs1/blue_team_pad/keymaps/via/keymap.c create mode 100644 keyboards/fearherbs1/blue_team_pad/keymaps/via/rules.mk (limited to 'keyboards/fearherbs1/blue_team_pad/keymaps') diff --git a/keyboards/fearherbs1/blue_team_pad/keymaps/default/keymap.c b/keyboards/fearherbs1/blue_team_pad/keymaps/default/keymap.c new file mode 100644 index 0000000000..7dbbca0dcc --- /dev/null +++ b/keyboards/fearherbs1/blue_team_pad/keymaps/default/keymap.c @@ -0,0 +1,22 @@ +// Copyright 2022-2023 Thomas Autiello Jr (@fearherbs1) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + [0] = LAYOUT( + KC_MUTE, KC_MPLY, + 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 + ), + +}; + +#if defined(ENCODER_MAP_ENABLE) +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { + [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_MPRV, KC_MNXT) }, +}; +#endif diff --git a/keyboards/fearherbs1/blue_team_pad/keymaps/default/rules.mk b/keyboards/fearherbs1/blue_team_pad/keymaps/default/rules.mk new file mode 100644 index 0000000000..ee32568148 --- /dev/null +++ b/keyboards/fearherbs1/blue_team_pad/keymaps/default/rules.mk @@ -0,0 +1 @@ +ENCODER_MAP_ENABLE = yes diff --git a/keyboards/fearherbs1/blue_team_pad/keymaps/via/config.h b/keyboards/fearherbs1/blue_team_pad/keymaps/via/config.h new file mode 100644 index 0000000000..c2144254be --- /dev/null +++ b/keyboards/fearherbs1/blue_team_pad/keymaps/via/config.h @@ -0,0 +1,6 @@ +// Copyright 2022-2023 Thomas Autiello Jr (@fearherbs1) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#define DYNAMIC_KEYMAP_LAYER_COUNT 6 diff --git a/keyboards/fearherbs1/blue_team_pad/keymaps/via/keymap.c b/keyboards/fearherbs1/blue_team_pad/keymaps/via/keymap.c new file mode 100644 index 0000000000..439b3d8493 --- /dev/null +++ b/keyboards/fearherbs1/blue_team_pad/keymaps/via/keymap.c @@ -0,0 +1,21 @@ +// Copyright 2022-2023 Thomas Autiello Jr (@fearherbs1) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + [0] = LAYOUT( + KC_MUTE, KC_MPLY, + XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, + XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, + XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, + XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX + ), +}; + +#if defined(ENCODER_MAP_ENABLE) +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { + [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_MPRV, KC_MNXT) }, +}; +#endif diff --git a/keyboards/fearherbs1/blue_team_pad/keymaps/via/rules.mk b/keyboards/fearherbs1/blue_team_pad/keymaps/via/rules.mk new file mode 100644 index 0000000000..f1adcab005 --- /dev/null +++ b/keyboards/fearherbs1/blue_team_pad/keymaps/via/rules.mk @@ -0,0 +1,2 @@ +VIA_ENABLE = yes +ENCODER_MAP_ENABLE = yes -- cgit v1.2.3