From 2ebcb3ebf4b0ba2a661ad00bfc7f2926d0890eb4 Mon Sep 17 00:00:00 2001 From: "keymap-editor[bot]" <91849743+keymap-editor[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 01:22:45 +0000 Subject: [PATCH 01/10] tweak some keys --- config/ninepad.keymap | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/config/ninepad.keymap b/config/ninepad.keymap index cd69245..be4fb23 100644 --- a/config/ninepad.keymap +++ b/config/ninepad.keymap @@ -1,7 +1,8 @@ #include +#include #include #include -#include +#include / { behaviors { @@ -102,8 +103,8 @@ bt_layer { label = "bt"; bindings = < -< 7 A &none &bootloader -&none &kp A &bt BT_CLR +< 7 A &bl BL_TOG &rgb_ug RGB_TOG +&bt BT_SEL 3 &bt BT_SEL 4 &bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 >; }; @@ -112,7 +113,7 @@ bindings = < < 7 Q &kp W &kp E &kp A &kp S &kp D -&kp LSHFT &kp LCTRL &kp SPACE +&kp LSHFT &kp LCTRL < 4 SPACE >; }; @@ -134,9 +135,9 @@ mouse { bindings = < -< 7 A &trans &trans -&trans &trans &trans -&trans &trans &trans +< 7 A &trans &trans +&trans &trans &trans +&trans &trans &trans >; }; From 826138bb0d27f296139f82ca6b5110ecd7cc68a9 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Mon, 8 Jul 2024 20:23:21 -0500 Subject: [PATCH 02/10] add readme --- Readme.md | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Readme.md diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..1a75c2e --- /dev/null +++ b/Readme.md @@ -0,0 +1,64 @@ +# Ninepad + +This is my zmk config for my handwired ninepad macropad + +* layer 0: default - window switcher - layer picker +* layer 1: media +* layer 2: bluetooth +* layer 3: minecraft_1 +* layer 4: minecraft_2 +* layer 5: arrows +* layer 6: empty +* layer 7: reset +* layer 8: numbers +* layer 9: empty + +## Getting back to default + +No matter what layer you are in, holding 7 (top left) will bring you to the 7th +layer (reset). Now tap 9 (to right) and you will go back to the default layer. + +## layer 0: default - window switcher - layer picker + +Once plugged in you will be brought to the default layer. Tapping on any key +in this layer will press Left Gui (Super) plus the corresponding number. I +have my window manager set up so that this will take you to workspace 1-9. + +Double tapping any key on this layer will take you to the corresponding number +layer 1-9. + +## layer 1: media + +This layer has media keys, play/pause, next track, previous track, and volume. + +## layer 2: bluetooth + +This layer has bluetooth select profile for 1-4, bluetooth clear, backlight +toggle, and rgb toggle. + +## layer 3: minecraft_1 + +This layer is for minecraft. It has wasd, q, e, shift, control, and space. +Holding space will take you to minecraft_2. + +## layer 4: minecraft_2 + +This layer has less critical minecraft keys, b, f5, f3, esc, f, and grave. + +## layer 5: arrows + +This layer is for navigation, it has arrows, page up, page down, home, end, and escape. + +## layer 6: empty + +This layer is left unused. + +## layer 7: reset + +## layer 8: numbers + +numbers 1-9 + +## layer 9: empty + +This layer is left unused. From 112b23618e9ea6fc8d9393a9a0059ca83a9f5f9b Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Mon, 8 Jul 2024 20:36:17 -0500 Subject: [PATCH 03/10] Update Readme.md --- Readme.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 1a75c2e..dda6b02 100644 --- a/Readme.md +++ b/Readme.md @@ -13,6 +13,16 @@ This is my zmk config for my handwired ninepad macropad * layer 8: numbers * layer 9: empty + + +ninepad-assembled + +ninepad-plate-switched + +> (Left) fully assembled ninepad +> (Right) plate with switches inserted ready for wiring + + ## Getting back to default No matter what layer you are in, holding 7 (top left) will bring you to the 7th @@ -24,41 +34,62 @@ Once plugged in you will be brought to the default layer. Tapping on any key in this layer will press Left Gui (Super) plus the corresponding number. I have my window manager set up so that this will take you to workspace 1-9. -Double tapping any key on this layer will take you to the corresponding number +Double tapping any key on this layer will take you to the layer with the corresponding number layer 1-9. +![image](https://github.com/WaylonWalker/zmk-config-ninepad/assets/22648375/b2686296-a0b8-46b0-a3e7-09c734bd95a6) + + ## layer 1: media This layer has media keys, play/pause, next track, previous track, and volume. +![image](https://github.com/WaylonWalker/zmk-config-ninepad/assets/22648375/4f2d1d47-e979-4140-bf64-5bc599b0864e) + ## layer 2: bluetooth This layer has bluetooth select profile for 1-4, bluetooth clear, backlight toggle, and rgb toggle. +![image](https://github.com/WaylonWalker/zmk-config-ninepad/assets/22648375/6323286a-a4c9-4f46-9c50-444228f91d61) + ## layer 3: minecraft_1 This layer is for minecraft. It has wasd, q, e, shift, control, and space. Holding space will take you to minecraft_2. +![image](https://github.com/WaylonWalker/zmk-config-ninepad/assets/22648375/0bf4a8c9-2561-40b4-9ea0-72ae92746b93) + + ## layer 4: minecraft_2 This layer has less critical minecraft keys, b, f5, f3, esc, f, and grave. +![image](https://github.com/WaylonWalker/zmk-config-ninepad/assets/22648375/1b27eceb-a088-496d-8cfe-3cc5c52e322d) + ## layer 5: arrows This layer is for navigation, it has arrows, page up, page down, home, end, and escape. +![image](https://github.com/WaylonWalker/zmk-config-ninepad/assets/22648375/512128d0-d6c0-45ee-92bd-66c069c8fd7f) + + ## layer 6: empty This layer is left unused. ## layer 7: reset +This is a critical layer that allows me to hold 7 and tap nine from any layer to get back to layer zero. Notice the &to 0, this is what does that. + +![image](https://github.com/WaylonWalker/zmk-config-ninepad/assets/22648375/435d2295-54e5-458e-bbcb-32c9f889cf4f) + ## layer 8: numbers numbers 1-9 +![image](https://github.com/WaylonWalker/zmk-config-ninepad/assets/22648375/b6a17ea7-1f71-43db-9e12-86328c7092fb) + ## layer 9: empty This layer is left unused. From 5c76bb5a69a6f2855aafa827badb48cbdf4b9470 Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Mon, 8 Jul 2024 20:40:56 -0500 Subject: [PATCH 04/10] 450 images --- Readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index dda6b02..703654c 100644 --- a/Readme.md +++ b/Readme.md @@ -15,9 +15,9 @@ This is my zmk config for my handwired ninepad macropad -ninepad-assembled +ninepad-assembled -ninepad-plate-switched +ninepad-plate-switched > (Left) fully assembled ninepad > (Right) plate with switches inserted ready for wiring From d2f86d241ea3315da4b89ea2e2716cd30192ef15 Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Mon, 8 Jul 2024 20:41:28 -0500 Subject: [PATCH 05/10] 400 images --- Readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 703654c..1cdc54e 100644 --- a/Readme.md +++ b/Readme.md @@ -15,9 +15,9 @@ This is my zmk config for my handwired ninepad macropad -ninepad-assembled +ninepad-assembled -ninepad-plate-switched +ninepad-plate-switched > (Left) fully assembled ninepad > (Right) plate with switches inserted ready for wiring From 619ad867705b6cdc28dcbe9685d66a11e621a117 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Tue, 9 Jul 2024 17:56:19 -0500 Subject: [PATCH 06/10] set pins for nice!nano --- config/boards/shields/ninepad/ninepad.overlay | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/boards/shields/ninepad/ninepad.overlay b/config/boards/shields/ninepad/ninepad.overlay index 89df3dc..c1a59e2 100644 --- a/config/boards/shields/ninepad/ninepad.overlay +++ b/config/boards/shields/ninepad/ninepad.overlay @@ -14,15 +14,15 @@ diode-direction = "col2row"; col-gpios - = <&gpio0 0 GPIO_ACTIVE_HIGH> - , <&gpio0 1 GPIO_ACTIVE_HIGH> + = <&gpio0 31 GPIO_ACTIVE_HIGH> + , <&gpio0 29 GPIO_ACTIVE_HIGH> , <&gpio0 2 GPIO_ACTIVE_HIGH> ; row-gpios - = <&gpio0 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> - , <&gpio0 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> - , <&gpio0 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> + = <&gpio1 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> + , <&gpio1 13 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> + , <&gpio1 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> ; }; From fe27b9172ad5634141b62d982157eca5f4db4a31 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Tue, 9 Jul 2024 18:02:50 -0500 Subject: [PATCH 07/10] only build for nice_nano --- build.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.yaml b/build.yaml index bc090db..9af7fdd 100644 --- a/build.yaml +++ b/build.yaml @@ -17,10 +17,10 @@ # artifact-name: corne_left_with_logging # include: - - board: adafruit_kb2040 - shield: ninepad - - board: sparkfun_pro_micro_rp2040 - shield: ninepad + # - board: adafruit_kb2040 + # shield: ninepad + # - board: sparkfun_pro_micro_rp2040 + # shield: ninepad - board: nice_nano shield: ninepad - board: nice_nano_v2 From 8b76b76e2f094453aaf7ffe51bb405ce3a25a611 Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Fri, 12 Jul 2024 17:25:04 -0500 Subject: [PATCH 08/10] Update Kconfig.shield rec by bravekarma --- config/boards/shields/ninepad/Kconfig.shield | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/boards/shields/ninepad/Kconfig.shield b/config/boards/shields/ninepad/Kconfig.shield index 41cd6fc..f2b1b91 100644 --- a/config/boards/shields/ninepad/Kconfig.shield +++ b/config/boards/shields/ninepad/Kconfig.shield @@ -1,2 +1,2 @@ config SHIELD_NINEPAD - def_bool $(shields_list_contains, ninepad) + def_bool $(shields_list_contains,ninepad) From 73bbcb6da27272a8832024777c1b9114b6f5a286 Mon Sep 17 00:00:00 2001 From: "keymap-editor[bot]" <91849743+keymap-editor[bot]@users.noreply.github.com> Date: Sat, 13 Jul 2024 03:27:56 +0000 Subject: [PATCH 09/10] add output selections --- config/ninepad.keymap | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config/ninepad.keymap b/config/ninepad.keymap index be4fb23..4792b9f 100644 --- a/config/ninepad.keymap +++ b/config/ninepad.keymap @@ -2,6 +2,7 @@ #include #include #include +#include #include / { @@ -143,9 +144,9 @@ reset { bindings = < -&trans &trans &to 0 -&trans &trans &trans -&to 1 &to 2 &bootloader +&trans &trans &to 0 +&trans &trans &trans +&out OUT_USB &out OUT_USB &bootloader >; }; From 09d13d4084ab24c003653406f255b142b6705725 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Mon, 5 Aug 2024 17:29:29 -0500 Subject: [PATCH 10/10] enable mouse --- config/ninepad.config | 1 + 1 file changed, 1 insertion(+) create mode 100644 config/ninepad.config diff --git a/config/ninepad.config b/config/ninepad.config new file mode 100644 index 0000000..8e98773 --- /dev/null +++ b/config/ninepad.config @@ -0,0 +1 @@ +CONFIG_ZMK_MOUSE=y