From 7b30c462f0ea8146325eb59df39e4a3a9dae81c5 Mon Sep 17 00:00:00 2001 From: Smooted Date: Wed, 15 Feb 2023 22:40:16 -0600 Subject: [PATCH 1/7] I made a lil keymap yay! Idk I added volume to F6, F7, F8 --- .../bm80v2/keymaps/smooted/config.h | 3 ++ .../bm80v2/keymaps/smooted/keymap.c | 43 +++++++++++++++++++ .../bm80v2/keymaps/smooted/rules.mk | 4 ++ 3 files changed, 50 insertions(+) create mode 100644 keyboards/kprepublic/bm80v2/keymaps/smooted/config.h create mode 100644 keyboards/kprepublic/bm80v2/keymaps/smooted/keymap.c create mode 100644 keyboards/kprepublic/bm80v2/keymaps/smooted/rules.mk diff --git a/keyboards/kprepublic/bm80v2/keymaps/smooted/config.h b/keyboards/kprepublic/bm80v2/keymaps/smooted/config.h new file mode 100644 index 000000000000..4861751998ac --- /dev/null +++ b/keyboards/kprepublic/bm80v2/keymaps/smooted/config.h @@ -0,0 +1,3 @@ +#pragma once +#define FORCE_NKRO +#define USB_POLLING_INTERVAL_MS 1 \ No newline at end of file diff --git a/keyboards/kprepublic/bm80v2/keymaps/smooted/keymap.c b/keyboards/kprepublic/bm80v2/keymaps/smooted/keymap.c new file mode 100644 index 000000000000..3c051ea0c934 --- /dev/null +++ b/keyboards/kprepublic/bm80v2/keymaps/smooted/keymap.c @@ -0,0 +1,43 @@ +// Copyright 2021 Yizhen Liu (@edwardslau) +// SPDX-License-Identifier: GPL-2.0 +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + [0] = LAYOUT_tkl_ansi( + KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCRL, KC_PAUS, + KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, + KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, + KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT + ), + + [1] = LAYOUT_tkl_ansi( + QK_BOOT, _______, _______, _______, _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ + ), + + [2] = LAYOUT_tkl_ansi( + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ + ), + + [3] = LAYOUT_tkl_ansi( + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ + ) + +}; diff --git a/keyboards/kprepublic/bm80v2/keymaps/smooted/rules.mk b/keyboards/kprepublic/bm80v2/keymaps/smooted/rules.mk new file mode 100644 index 000000000000..45e294e58527 --- /dev/null +++ b/keyboards/kprepublic/bm80v2/keymaps/smooted/rules.mk @@ -0,0 +1,4 @@ +VIA_ENABLE = yes +LTO_ENABLE = yes +NKRO_ENABLE = yes + From b6efcbbb279a4c54f55be07b4e3f2b2e427e9303 Mon Sep 17 00:00:00 2001 From: Smooted <125531297+Smooted@users.noreply.github.com> Date: Fri, 17 Feb 2023 11:31:58 -0600 Subject: [PATCH 2/7] Update config.h Deleted "#define USB_POLLING_INTERVAL_MS 1", not needed --- keyboards/kprepublic/bm80v2/keymaps/smooted/config.h | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboards/kprepublic/bm80v2/keymaps/smooted/config.h b/keyboards/kprepublic/bm80v2/keymaps/smooted/config.h index 4861751998ac..2ec247df7b07 100644 --- a/keyboards/kprepublic/bm80v2/keymaps/smooted/config.h +++ b/keyboards/kprepublic/bm80v2/keymaps/smooted/config.h @@ -1,3 +1,2 @@ #pragma once #define FORCE_NKRO -#define USB_POLLING_INTERVAL_MS 1 \ No newline at end of file From d297eb0b237ce260518f4c7f164da3fda50a8ac2 Mon Sep 17 00:00:00 2001 From: Smooted <125531297+Smooted@users.noreply.github.com> Date: Fri, 17 Feb 2023 11:34:03 -0600 Subject: [PATCH 3/7] Update config.h Added License --- .../kprepublic/bm80v2/keymaps/smooted/config.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/keyboards/kprepublic/bm80v2/keymaps/smooted/config.h b/keyboards/kprepublic/bm80v2/keymaps/smooted/config.h index 2ec247df7b07..1d79208c9894 100644 --- a/keyboards/kprepublic/bm80v2/keymaps/smooted/config.h +++ b/keyboards/kprepublic/bm80v2/keymaps/smooted/config.h @@ -1,2 +1,15 @@ +/* +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + #pragma once #define FORCE_NKRO From f0a7b264c2a9f2636260133732518276b08f7f14 Mon Sep 17 00:00:00 2001 From: Smooted <125531297+Smooted@users.noreply.github.com> Date: Fri, 17 Feb 2023 11:35:35 -0600 Subject: [PATCH 4/7] Update config.h Fixed License --- .../bm80v2/keymaps/smooted/config.h | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/keyboards/kprepublic/bm80v2/keymaps/smooted/config.h b/keyboards/kprepublic/bm80v2/keymaps/smooted/config.h index 1d79208c9894..88fa41d11098 100644 --- a/keyboards/kprepublic/bm80v2/keymaps/smooted/config.h +++ b/keyboards/kprepublic/bm80v2/keymaps/smooted/config.h @@ -1,15 +1,17 @@ -/* -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ +/* Copyright 2022 bdtc123 * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ #pragma once #define FORCE_NKRO From 11b8d58a8efb0eab1ad2abc499145e3932583482 Mon Sep 17 00:00:00 2001 From: Smooted <125531297+Smooted@users.noreply.github.com> Date: Fri, 17 Feb 2023 12:01:39 -0600 Subject: [PATCH 5/7] Update keymap.c Deleted unused layers --- .../bm80v2/keymaps/smooted/keymap.c | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/keyboards/kprepublic/bm80v2/keymaps/smooted/keymap.c b/keyboards/kprepublic/bm80v2/keymaps/smooted/keymap.c index 3c051ea0c934..be7d27ce6bbe 100644 --- a/keyboards/kprepublic/bm80v2/keymaps/smooted/keymap.c +++ b/keyboards/kprepublic/bm80v2/keymaps/smooted/keymap.c @@ -20,24 +20,4 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - - [2] = LAYOUT_tkl_ansi( - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - - [3] = LAYOUT_tkl_ansi( - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ ) - -}; From 309be1da4cf9fb3e22e3038785f091bd2504e81e Mon Sep 17 00:00:00 2001 From: Smooted <125531297+Smooted@users.noreply.github.com> Date: Fri, 17 Feb 2023 12:02:15 -0600 Subject: [PATCH 6/7] Update rules.mk Deleted unnecessary rules --- keyboards/kprepublic/bm80v2/keymaps/smooted/rules.mk | 3 --- 1 file changed, 3 deletions(-) diff --git a/keyboards/kprepublic/bm80v2/keymaps/smooted/rules.mk b/keyboards/kprepublic/bm80v2/keymaps/smooted/rules.mk index 45e294e58527..1e5b99807cb7 100644 --- a/keyboards/kprepublic/bm80v2/keymaps/smooted/rules.mk +++ b/keyboards/kprepublic/bm80v2/keymaps/smooted/rules.mk @@ -1,4 +1 @@ VIA_ENABLE = yes -LTO_ENABLE = yes -NKRO_ENABLE = yes - From cdde7393df13efb2ee446b45709d9ce458e05c26 Mon Sep 17 00:00:00 2001 From: Olivia <125531297+Smooted@users.noreply.github.com> Date: Fri, 17 Feb 2023 13:38:11 -0600 Subject: [PATCH 7/7] Update keymap.c --- keyboards/kprepublic/bm80v2/keymaps/smooted/keymap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keyboards/kprepublic/bm80v2/keymaps/smooted/keymap.c b/keyboards/kprepublic/bm80v2/keymaps/smooted/keymap.c index be7d27ce6bbe..ba91157d927b 100644 --- a/keyboards/kprepublic/bm80v2/keymaps/smooted/keymap.c +++ b/keyboards/kprepublic/bm80v2/keymaps/smooted/keymap.c @@ -21,3 +21,5 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ ) + +};