Compare commits
10 commits
7415e85aa9
...
09d13d4084
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
09d13d4084 | ||
|
|
73bbcb6da2 | ||
|
|
8b76b76e2f | ||
| fe27b9172a | |||
| 619ad86770 | |||
| d2f86d241e | |||
| 5c76bb5a69 | |||
| 112b23618e | |||
| 826138bb0d | |||
|
|
2ebcb3ebf4 |
6 changed files with 118 additions and 20 deletions
95
Readme.md
Normal file
95
Readme.md
Normal file
|
|
@ -0,0 +1,95 @@
|
||||||
|
# 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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<img alt="ninepad-assembled" src="https://github.com/WaylonWalker/zmk-config-ninepad/assets/22648375/1b9f3e36-a67f-4df2-be81-cfdf64c11aa5" width="400">
|
||||||
|
|
||||||
|
<img alt="ninepad-plate-switched" src="https://github.com/WaylonWalker/zmk-config-ninepad/assets/22648375/067a16ae-0a70-47f3-8edc-3711ca4944b4" width="400">
|
||||||
|
|
||||||
|
> (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
|
||||||
|
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 layer with 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
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## layer 8: numbers
|
||||||
|
|
||||||
|
numbers 1-9
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## layer 9: empty
|
||||||
|
|
||||||
|
This layer is left unused.
|
||||||
|
|
@ -17,10 +17,10 @@
|
||||||
# artifact-name: corne_left_with_logging
|
# artifact-name: corne_left_with_logging
|
||||||
#
|
#
|
||||||
include:
|
include:
|
||||||
- board: adafruit_kb2040
|
# - board: adafruit_kb2040
|
||||||
shield: ninepad
|
# shield: ninepad
|
||||||
- board: sparkfun_pro_micro_rp2040
|
# - board: sparkfun_pro_micro_rp2040
|
||||||
shield: ninepad
|
# shield: ninepad
|
||||||
- board: nice_nano
|
- board: nice_nano
|
||||||
shield: ninepad
|
shield: ninepad
|
||||||
- board: nice_nano_v2
|
- board: nice_nano_v2
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
config SHIELD_NINEPAD
|
config SHIELD_NINEPAD
|
||||||
def_bool $(shields_list_contains, ninepad)
|
def_bool $(shields_list_contains,ninepad)
|
||||||
|
|
|
||||||
|
|
@ -14,15 +14,15 @@
|
||||||
diode-direction = "col2row";
|
diode-direction = "col2row";
|
||||||
|
|
||||||
col-gpios
|
col-gpios
|
||||||
= <&gpio0 0 GPIO_ACTIVE_HIGH>
|
= <&gpio0 31 GPIO_ACTIVE_HIGH>
|
||||||
, <&gpio0 1 GPIO_ACTIVE_HIGH>
|
, <&gpio0 29 GPIO_ACTIVE_HIGH>
|
||||||
, <&gpio0 2 GPIO_ACTIVE_HIGH>
|
, <&gpio0 2 GPIO_ACTIVE_HIGH>
|
||||||
;
|
;
|
||||||
|
|
||||||
row-gpios
|
row-gpios
|
||||||
= <&gpio0 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
= <&gpio1 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
, <&gpio0 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
, <&gpio1 13 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
, <&gpio0 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
, <&gpio1 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
1
config/ninepad.config
Normal file
1
config/ninepad.config
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_ZMK_MOUSE=y
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
#include <behaviors.dtsi>
|
#include <behaviors.dtsi>
|
||||||
|
#include <dt-bindings/zmk/backlight.h>
|
||||||
#include <dt-bindings/zmk/bt.h>
|
#include <dt-bindings/zmk/bt.h>
|
||||||
#include <dt-bindings/zmk/keys.h>
|
#include <dt-bindings/zmk/keys.h>
|
||||||
#include <dt-bindings/zmk/mouse.h>
|
#include <dt-bindings/zmk/outputs.h>
|
||||||
|
#include <dt-bindings/zmk/rgb.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
behaviors {
|
behaviors {
|
||||||
|
|
@ -102,8 +104,8 @@
|
||||||
bt_layer {
|
bt_layer {
|
||||||
label = "bt";
|
label = "bt";
|
||||||
bindings = <
|
bindings = <
|
||||||
< 7 A &none &bootloader
|
< 7 A &bl BL_TOG &rgb_ug RGB_TOG
|
||||||
&none &kp A &bt BT_CLR
|
&bt BT_SEL 3 &bt BT_SEL 4 &bt BT_CLR
|
||||||
&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2
|
&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
@ -112,7 +114,7 @@
|
||||||
bindings = <
|
bindings = <
|
||||||
< 7 Q &kp W &kp E
|
< 7 Q &kp W &kp E
|
||||||
&kp A &kp S &kp D
|
&kp A &kp S &kp D
|
||||||
&kp LSHFT &kp LCTRL &kp SPACE
|
&kp LSHFT &kp LCTRL < 4 SPACE
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -134,17 +136,17 @@
|
||||||
|
|
||||||
mouse {
|
mouse {
|
||||||
bindings = <
|
bindings = <
|
||||||
< 7 A &trans &trans
|
< 7 A &trans &trans
|
||||||
&trans &trans &trans
|
&trans &trans &trans
|
||||||
&trans &trans &trans
|
&trans &trans &trans
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
reset {
|
reset {
|
||||||
bindings = <
|
bindings = <
|
||||||
&trans &trans &to 0
|
&trans &trans &to 0
|
||||||
&trans &trans &trans
|
&trans &trans &trans
|
||||||
&to 1 &to 2 &bootloader
|
&out OUT_USB &out OUT_USB &bootloader
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue