Skip to content

Commit

Permalink
update overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
onnenon committed Nov 12, 2024
1 parent de62d19 commit c31459d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
18 changes: 4 additions & 14 deletions boards/shields/hotdog_pad/hotdog_pad.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,15 @@
#include <dt-bindings/zmk/keys.h>

/ {
combos {
compatible = "zmk,combos";

combo_enable_studio {
timeout-ms = <100>;
key-positions = <0 1 2 3 4>;
bindings = <&studio_unlock>;
};
};

keymap {
compatible = "zmk,keymap";

base {
bindings = <
&kp N9
&kp N8
&kp N7
&kp N6
&kp N1
&kp N2
&kp N3
&kp N4
&kp N5
>;

Expand Down
8 changes: 7 additions & 1 deletion boards/shields/hotdog_pad/hotdog_pad.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
input-gpios
= <&xiao_d 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
, <&xiao_d 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
, <&xiao_d 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
, <&xiao_d 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
, <&xiao_d 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
, <&xiao_d 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
;
Expand All @@ -29,4 +29,10 @@
status = "okay";
};

sensors: sensors {
compatible = "zmk,keymap-sensors";
sensors = <&encoder>;
triggers-per-rotation = <20>;
};

};

0 comments on commit c31459d

Please sign in to comment.