From 98f09b5cd10a1e152f545896ad3aaf5df5dc3986 Mon Sep 17 00:00:00 2001 From: Can Baytok Date: Tue, 19 Nov 2024 12:11:41 +0100 Subject: [PATCH 1/4] added cans12erv2 via definition --- .../handwired/cans12erv2/keymaps/via/keymap.c | 24 +++++++++++++++++++ .../handwired/cans12erv2/keymaps/via/rules.mk | 3 +++ 2 files changed, 27 insertions(+) create mode 100644 keyboards/handwired/cans12erv2/keymaps/via/keymap.c create mode 100644 keyboards/handwired/cans12erv2/keymaps/via/rules.mk diff --git a/keyboards/handwired/cans12erv2/keymaps/via/keymap.c b/keyboards/handwired/cans12erv2/keymaps/via/keymap.c new file mode 100644 index 0000000000..0be28b202a --- /dev/null +++ b/keyboards/handwired/cans12erv2/keymaps/via/keymap.c @@ -0,0 +1,24 @@ +// Copyright 2024 Can Baytok (https://github.com/canbaytok) +// SPDX-License-Identifier: GPL-2.0-or-later +#include QMK_KEYBOARD_H + +// Each layer gets a name for readability, which is then used in the keymap matrix below. +// The underscores don't mean anything - you can have a layer called STUFF or any other name. +// Layer names don't all need to be of the same length, obviously, and you can also skip them +// entirely and just use numbers. + +#define _KEYPAD 0 + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_KEYPAD] = LAYOUT( + KC_A, KC_B, KC_C, KC_D, + KC_E, KC_F, KC_G, KC_H, + KC_I, KC_J, KC_K, KC_L + ) +}; + +#if defined(ENCODER_MAP_ENABLE) +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { + [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) } +}; +#endif \ No newline at end of file diff --git a/keyboards/handwired/cans12erv2/keymaps/via/rules.mk b/keyboards/handwired/cans12erv2/keymaps/via/rules.mk new file mode 100644 index 0000000000..0782d16fb0 --- /dev/null +++ b/keyboards/handwired/cans12erv2/keymaps/via/rules.mk @@ -0,0 +1,3 @@ +ENCODER_ENABLE = yes +ENCODER_MAP_ENABLE = yes +VIA_ENABLE = yes \ No newline at end of file From 1431d99257bc35d9f27614213cd02feed6541125 Mon Sep 17 00:00:00 2001 From: Can Baytok Date: Thu, 21 Nov 2024 15:19:51 +0100 Subject: [PATCH 2/4] implemented changes from QMK PR --- keyboards/handwired/cans12erv2/keymaps/via/keymap.c | 9 +-------- keyboards/handwired/cans12erv2/keymaps/via/rules.mk | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/keyboards/handwired/cans12erv2/keymaps/via/keymap.c b/keyboards/handwired/cans12erv2/keymaps/via/keymap.c index 0be28b202a..a5ca6a2c09 100644 --- a/keyboards/handwired/cans12erv2/keymaps/via/keymap.c +++ b/keyboards/handwired/cans12erv2/keymaps/via/keymap.c @@ -2,15 +2,8 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include QMK_KEYBOARD_H -// Each layer gets a name for readability, which is then used in the keymap matrix below. -// The underscores don't mean anything - you can have a layer called STUFF or any other name. -// Layer names don't all need to be of the same length, obviously, and you can also skip them -// entirely and just use numbers. - -#define _KEYPAD 0 - const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_KEYPAD] = LAYOUT( + [0] = LAYOUT( KC_A, KC_B, KC_C, KC_D, KC_E, KC_F, KC_G, KC_H, KC_I, KC_J, KC_K, KC_L diff --git a/keyboards/handwired/cans12erv2/keymaps/via/rules.mk b/keyboards/handwired/cans12erv2/keymaps/via/rules.mk index 0782d16fb0..6ccd6d9194 100644 --- a/keyboards/handwired/cans12erv2/keymaps/via/rules.mk +++ b/keyboards/handwired/cans12erv2/keymaps/via/rules.mk @@ -1,3 +1,2 @@ -ENCODER_ENABLE = yes ENCODER_MAP_ENABLE = yes VIA_ENABLE = yes \ No newline at end of file From e9bdc253487dd2c65349dc4a3726e09bff8d2f89 Mon Sep 17 00:00:00 2001 From: Can Baytok Date: Fri, 22 Nov 2024 13:29:29 +0100 Subject: [PATCH 3/4] added keymap_german header --- keyboards/handwired/cans12erv2/keymaps/via/keymap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/keyboards/handwired/cans12erv2/keymaps/via/keymap.c b/keyboards/handwired/cans12erv2/keymaps/via/keymap.c index a5ca6a2c09..39f5682f59 100644 --- a/keyboards/handwired/cans12erv2/keymaps/via/keymap.c +++ b/keyboards/handwired/cans12erv2/keymaps/via/keymap.c @@ -1,6 +1,7 @@ // Copyright 2024 Can Baytok (https://github.com/canbaytok) // 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] = { [0] = LAYOUT( From 9c64a727a647015a0e54e4aa50bdf90b76b889d8 Mon Sep 17 00:00:00 2001 From: Cipulot <40441626+Cipulot@users.noreply.github.com> Date: Fri, 6 Dec 2024 17:31:38 +0100 Subject: [PATCH 4/4] Update keyboards/handwired/cans12erv2/keymaps/via/keymap.c --- keyboards/handwired/cans12erv2/keymaps/via/keymap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/keyboards/handwired/cans12erv2/keymaps/via/keymap.c b/keyboards/handwired/cans12erv2/keymaps/via/keymap.c index 39f5682f59..a5ca6a2c09 100644 --- a/keyboards/handwired/cans12erv2/keymaps/via/keymap.c +++ b/keyboards/handwired/cans12erv2/keymaps/via/keymap.c @@ -1,7 +1,6 @@ // Copyright 2024 Can Baytok (https://github.com/canbaytok) // 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] = { [0] = LAYOUT(