forked from zmkfirmware/zmk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: new physical layouts convention
- Loading branch information
1 parent
ac141e0
commit b29d507
Showing
27 changed files
with
453 additions
and
467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
#include <physical_layouts.dtsi> | ||
|
||
/ { | ||
physical_layout0: physical_layout_0 { | ||
compatible = "zmk,physical-layout"; | ||
display-name = "Default"; | ||
|
||
keys // w h x y rot rx ry | ||
= <&key_physical_attrs 125 100 0 25 0 0 0> | ||
, <&key_physical_attrs 100 100 125 25 0 0 0> | ||
, <&key_physical_attrs 100 100 225 0 0 0 0> | ||
, <&key_physical_attrs 100 100 325 0 0 0 0> | ||
, <&key_physical_attrs 100 100 425 0 0 0 0> | ||
, <&key_physical_attrs 100 100 525 0 0 0 0> | ||
, <&key_physical_attrs 100 100 625 0 0 0 0> | ||
, <&key_physical_attrs 100 100 1075 0 0 0 0> | ||
, <&key_physical_attrs 100 100 1175 0 0 0 0> | ||
, <&key_physical_attrs 100 100 1275 0 0 0 0> | ||
, <&key_physical_attrs 100 100 1375 0 0 0 0> | ||
, <&key_physical_attrs 100 100 1475 0 0 0 0> | ||
, <&key_physical_attrs 100 100 1575 25 0 0 0> | ||
, <&key_physical_attrs 125 100 1675 25 0 0 0> | ||
, <&key_physical_attrs 125 100 0 125 0 0 0> | ||
, <&key_physical_attrs 100 100 125 125 0 0 0> | ||
, <&key_physical_attrs 100 100 225 100 0 0 0> | ||
, <&key_physical_attrs 100 100 325 100 0 0 0> | ||
, <&key_physical_attrs 100 100 425 100 0 0 0> | ||
, <&key_physical_attrs 100 100 525 100 0 0 0> | ||
, <&key_physical_attrs 100 100 625 100 0 0 0> | ||
, <&key_physical_attrs 100 100 1075 100 0 0 0> | ||
, <&key_physical_attrs 100 100 1175 100 0 0 0> | ||
, <&key_physical_attrs 100 100 1275 100 0 0 0> | ||
, <&key_physical_attrs 100 100 1375 100 0 0 0> | ||
, <&key_physical_attrs 100 100 1475 100 0 0 0> | ||
, <&key_physical_attrs 100 100 1575 125 0 0 0> | ||
, <&key_physical_attrs 125 100 1675 125 0 0 0> | ||
, <&key_physical_attrs 125 100 0 225 0 0 0> | ||
, <&key_physical_attrs 100 100 125 225 0 0 0> | ||
, <&key_physical_attrs 100 100 225 200 0 0 0> | ||
, <&key_physical_attrs 100 100 325 200 0 0 0> | ||
, <&key_physical_attrs 100 100 425 200 0 0 0> | ||
, <&key_physical_attrs 100 100 525 200 0 0 0> | ||
, <&key_physical_attrs 100 100 625 200 0 0 0> | ||
, <&key_physical_attrs 100 100 675 400 1500 525 400> | ||
, <&key_physical_attrs 100 100 775 400 1500 525 400> | ||
, <&key_physical_attrs 100 100 925 400 (-1500) 1275 400> | ||
, <&key_physical_attrs 100 100 1025 400 (-1500) 1275 400> | ||
, <&key_physical_attrs 100 100 1075 200 0 0 0> | ||
, <&key_physical_attrs 100 100 1175 200 0 0 0> | ||
, <&key_physical_attrs 100 100 1275 200 0 0 0> | ||
, <&key_physical_attrs 100 100 1375 200 0 0 0> | ||
, <&key_physical_attrs 100 100 1475 200 0 0 0> | ||
, <&key_physical_attrs 100 100 1575 225 0 0 0> | ||
, <&key_physical_attrs 125 100 1675 225 0 0 0> | ||
, <&key_physical_attrs 125 100 0 325 0 0 0> | ||
, <&key_physical_attrs 100 100 125 325 0 0 0> | ||
, <&key_physical_attrs 100 100 225 300 0 0 0> | ||
, <&key_physical_attrs 100 100 325 300 0 0 0> | ||
, <&key_physical_attrs 100 100 425 300 0 0 0> | ||
, <&key_physical_attrs 100 100 525 300 0 0 0> | ||
, <&key_physical_attrs 100 100 775 500 1500 525 400> | ||
, <&key_physical_attrs 100 100 925 500 (-1500) 1275 400> | ||
, <&key_physical_attrs 100 100 1175 300 0 0 0> | ||
, <&key_physical_attrs 100 100 1275 300 0 0 0> | ||
, <&key_physical_attrs 100 100 1375 300 0 0 0> | ||
, <&key_physical_attrs 100 100 1475 300 0 0 0> | ||
, <&key_physical_attrs 100 100 1575 325 0 0 0> | ||
, <&key_physical_attrs 125 100 1675 325 0 0 0> | ||
, <&key_physical_attrs 125 100 0 425 0 0 0> | ||
, <&key_physical_attrs 100 100 125 425 0 0 0> | ||
, <&key_physical_attrs 100 100 225 400 0 0 0> | ||
, <&key_physical_attrs 100 100 325 400 0 0 0> | ||
, <&key_physical_attrs 100 100 425 400 0 0 0> | ||
, <&key_physical_attrs 100 200 575 500 1500 525 400> | ||
, <&key_physical_attrs 100 200 675 500 1500 525 400> | ||
, <&key_physical_attrs 100 100 775 600 1500 525 400> | ||
, <&key_physical_attrs 100 100 925 600 (-1500) 1275 400> | ||
, <&key_physical_attrs 100 200 1025 500 (-1500) 1275 400> | ||
, <&key_physical_attrs 100 200 1125 500 (-1500) 1275 400> | ||
, <&key_physical_attrs 100 100 1275 400 0 0 0> | ||
, <&key_physical_attrs 100 100 1375 400 0 0 0> | ||
, <&key_physical_attrs 100 100 1475 400 0 0 0> | ||
, <&key_physical_attrs 100 100 1575 425 0 0 0> | ||
, <&key_physical_attrs 125 100 1675 425 0 0 0> | ||
; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,6 @@ | |
}; | ||
}; | ||
|
||
&default_transform { | ||
&matrix_transform0 { | ||
col-offset = <10>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include <physical_layouts.dtsi> | ||
|
||
/ { | ||
physical_layout0: physical_layout_0 { | ||
compatible = "zmk,physical-layout"; | ||
display-name = "BDN9"; | ||
|
||
keys // w h x y rot rx ry | ||
= <&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 0 100 0 0 0> | ||
, <&key_physical_attrs 100 100 100 100 0 0 0> | ||
, <&key_physical_attrs 100 100 200 100 0 0 0> | ||
, <&key_physical_attrs 100 100 0 200 0 0 0> | ||
, <&key_physical_attrs 100 100 100 200 0 0 0> | ||
, <&key_physical_attrs 100 100 200 200 0 0 0> | ||
; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.