Skip to content

Commit

Permalink
try macro
Browse files Browse the repository at this point in the history
  • Loading branch information
epietrowicz committed Jan 5, 2024
1 parent 2683131 commit 2c9a09f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions config/boards/shields/gigapad/gigapad.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,29 @@
#include <dt-bindings/zmk/outputs.h>

/ {
macros {
zed_em_kay: zed_em_kay {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings =
<&macro_press &kp LSHFT>,
<&macro_tap &kp Z &kp M &kp K>,
<&macro_release &kp LSHFT>;
};
};
keymap {
compatible = "zmk,keymap";

default_layer {
bindings = <
&kp A &kp B &kp C &kp D
&zed_em_kay &kp B &kp C &kp D
>;
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
};

bt_layer {
bindings = <
&bt BT_PRV &bt BT_CLR &bt BT_NXT &bootloader
&bootloader &bt BT_PRV &bt BT_CLR &bt BT_NXT
>;
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
};
Expand Down
2 changes: 1 addition & 1 deletion config/boards/shields/gigapad/gigapad.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
label = "encoder";
a-gpios = <&xiao_d 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
b-gpios = <&xiao_d 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
resolution = <2>;
resolution = <80>;
status = "okay";
};

Expand Down

0 comments on commit 2c9a09f

Please sign in to comment.