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 b6672e1 commit a39e1ff
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
17 changes: 9 additions & 8 deletions boards/shields/hotdog_pad/hotdog_pad-layouts.dtsi
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#include <physical_layouts.dtsi>

/ {
physical_layout0:
physical_layout_0 {
physical_layout0: physical_layout_0 {
compatible = "zmk,physical-layout";
display - name = "Hotdog Pad";
display-name = "Default";

keys = <&key_physical_attrs 100 100 0 0 0 0 0>,
<&key_physical_attrs 100 100 100 0 0 0 0>,
<&key_physical_attrs 100 100 200 0 0 0 0>,
<&key_physical_attrs 100 100 300 0 0 0 0>,
<&key_physical_attrs 100 100 400 0 0 0 0>;
keys
= <&key_physical_attrs 100 100 0 0 0 0 0>
, <&key_physical_attrs 100 100 100 0 0 0 0>
, <&key_physical_attrs 100 100 200 0 0 0 0>
, <&key_physical_attrs 100 100 300 0 0 0 0>
, <&key_physical_attrs 100 100 400 0 0 0 0>
;
};
};
9 changes: 9 additions & 0 deletions boards/shields/hotdog_pad/hotdog_pad.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
compatible = "zmk,keymap";

base {
display-name = "Base";
bindings = <
&kp N1
&kp N2
Expand All @@ -16,5 +17,13 @@

sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
};

extra1 {
status = "reserved";
};

extra2 {
status = "reserved";
};
};
};
1 change: 1 addition & 0 deletions boards/shields/hotdog_pad/hotdog_pad.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,physical-layout = &physical_layout0;
};

kscan0: kscan_0 {
Expand Down

0 comments on commit a39e1ff

Please sign in to comment.