-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(shields): QAZ: added three physical layouts
* added three physical layouts --------- Co-authored-by: Zack Forbing <[email protected]> Co-authored-by: Cem Aksoylar <[email protected]>
- Loading branch information
1 parent
8756a06
commit 200d98f
Showing
2 changed files
with
214 additions
and
4 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,186 @@ | ||
/* | ||
* Copyright (c) 2024 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
#include <physical_layouts.dtsi> | ||
|
||
/ { | ||
split_big_bar_layout: split_big_bar_layout { | ||
compatible = "zmk,physical-layout"; | ||
display-name = "Split Big Bar"; | ||
transform = <&split_big_bar_transform>; | ||
kscan = <&kscan0>; | ||
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 300 0 0 0 0> | ||
, <&key_physical_attrs 100 100 400 0 0 0 0> | ||
, <&key_physical_attrs 100 100 500 0 0 0 0> | ||
, <&key_physical_attrs 100 100 600 0 0 0 0> | ||
, <&key_physical_attrs 100 100 700 0 0 0 0> | ||
, <&key_physical_attrs 100 100 800 0 0 0 0> | ||
, <&key_physical_attrs 125 100 900 0 0 0 0> | ||
|
||
, <&key_physical_attrs 125 100 0 100 0 0 0> | ||
, <&key_physical_attrs 100 100 125 100 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 725 100 0 0 0> | ||
, <&key_physical_attrs 100 100 825 100 0 0 0> | ||
, <&key_physical_attrs 100 100 925 100 0 0 0> | ||
|
||
, <&key_physical_attrs 175 100 0 200 0 0 0> | ||
, <&key_physical_attrs 100 100 175 200 0 0 0> | ||
, <&key_physical_attrs 100 100 275 200 0 0 0> | ||
, <&key_physical_attrs 100 100 375 200 0 0 0> | ||
, <&key_physical_attrs 100 100 475 200 0 0 0> | ||
, <&key_physical_attrs 100 100 575 200 0 0 0> | ||
, <&key_physical_attrs 100 100 675 200 0 0 0> | ||
, <&key_physical_attrs 100 100 775 200 0 0 0> | ||
, <&key_physical_attrs 150 100 875 200 0 0 0> | ||
, <&key_physical_attrs 100 100 0 300 0 0 0> | ||
, <&key_physical_attrs 100 100 100 300 0 0 0> | ||
, <&key_physical_attrs 325 100 200 300 0 0 0> | ||
, <&key_physical_attrs 300 100 525 300 0 0 0> | ||
, <&key_physical_attrs 100 100 825 300 0 0 0> | ||
, <&key_physical_attrs 100 100 925 300 0 0 0> | ||
; | ||
}; | ||
|
||
split_bar_layout: split_bar_layout { | ||
compatible = "zmk,physical-layout"; | ||
display-name = "Split Bar"; | ||
transform = <&split_bar_transform>; | ||
kscan = <&kscan0>; | ||
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 300 0 0 0 0> | ||
, <&key_physical_attrs 100 100 400 0 0 0 0> | ||
, <&key_physical_attrs 100 100 500 0 0 0 0> | ||
, <&key_physical_attrs 100 100 600 0 0 0 0> | ||
, <&key_physical_attrs 100 100 700 0 0 0 0> | ||
, <&key_physical_attrs 100 100 800 0 0 0 0> | ||
, <&key_physical_attrs 125 100 900 0 0 0 0> | ||
|
||
, <&key_physical_attrs 125 100 0 100 0 0 0> | ||
, <&key_physical_attrs 100 100 125 100 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 725 100 0 0 0> | ||
, <&key_physical_attrs 100 100 825 100 0 0 0> | ||
, <&key_physical_attrs 100 100 925 100 0 0 0> | ||
|
||
, <&key_physical_attrs 175 100 0 200 0 0 0> | ||
, <&key_physical_attrs 100 100 175 200 0 0 0> | ||
, <&key_physical_attrs 100 100 275 200 0 0 0> | ||
, <&key_physical_attrs 100 100 375 200 0 0 0> | ||
, <&key_physical_attrs 100 100 475 200 0 0 0> | ||
, <&key_physical_attrs 100 100 575 200 0 0 0> | ||
, <&key_physical_attrs 100 100 675 200 0 0 0> | ||
, <&key_physical_attrs 100 100 775 200 0 0 0> | ||
, <&key_physical_attrs 150 100 875 200 0 0 0> | ||
|
||
, <&key_physical_attrs 100 100 0 300 0 0 0> | ||
, <&key_physical_attrs 100 100 100 300 0 0 0> | ||
, <&key_physical_attrs 100 100 200 300 0 0 0> | ||
, <&key_physical_attrs 225 100 300 300 0 0 0> | ||
, <&key_physical_attrs 200 100 525 300 0 0 0> | ||
, <&key_physical_attrs 100 100 725 300 0 0 0> | ||
, <&key_physical_attrs 100 100 825 300 0 0 0> | ||
, <&key_physical_attrs 100 100 925 300 0 0 0> | ||
; | ||
}; | ||
|
||
big_bar_layout: big_bar_layout { | ||
compatible = "zmk,physical-layout"; | ||
display-name = "Big Bar"; | ||
transform = <&big_bar_transform>; | ||
kscan = <&kscan0>; | ||
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 300 0 0 0 0> | ||
, <&key_physical_attrs 100 100 400 0 0 0 0> | ||
, <&key_physical_attrs 100 100 500 0 0 0 0> | ||
, <&key_physical_attrs 100 100 600 0 0 0 0> | ||
, <&key_physical_attrs 100 100 700 0 0 0 0> | ||
, <&key_physical_attrs 100 100 800 0 0 0 0> | ||
, <&key_physical_attrs 125 100 900 0 0 0 0> | ||
|
||
, <&key_physical_attrs 125 100 0 100 0 0 0> | ||
, <&key_physical_attrs 100 100 125 100 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 725 100 0 0 0> | ||
, <&key_physical_attrs 100 100 825 100 0 0 0> | ||
, <&key_physical_attrs 100 100 925 100 0 0 0> | ||
|
||
, <&key_physical_attrs 175 100 0 200 0 0 0> | ||
, <&key_physical_attrs 100 100 175 200 0 0 0> | ||
, <&key_physical_attrs 100 100 275 200 0 0 0> | ||
, <&key_physical_attrs 100 100 375 200 0 0 0> | ||
, <&key_physical_attrs 100 100 475 200 0 0 0> | ||
, <&key_physical_attrs 100 100 575 200 0 0 0> | ||
, <&key_physical_attrs 100 100 675 200 0 0 0> | ||
, <&key_physical_attrs 100 100 775 200 0 0 0> | ||
, <&key_physical_attrs 150 100 875 200 0 0 0> | ||
|
||
, <&key_physical_attrs 100 100 0 300 0 0 0> | ||
, <&key_physical_attrs 100 100 100 300 0 0 0> | ||
, <&key_physical_attrs 625 100 200 300 0 0 0> | ||
, <&key_physical_attrs 100 100 825 300 0 0 0> | ||
, <&key_physical_attrs 100 100 925 300 0 0 0> | ||
; | ||
}; | ||
|
||
position_map { | ||
compatible = "zmk,physical-layout-position-map"; | ||
|
||
complete; | ||
|
||
split_big_bar_posmap { | ||
physical-layout = <&split_big_bar_layout>; | ||
positions | ||
= < 0 1 2 3 4 5 6 7 8 9> | ||
, <10 11 12 13 14 15 16 17 18 19> | ||
, <20 21 22 23 24 25 26 27 28> | ||
, <29 30 35 31 36 33 34 32> | ||
; | ||
}; | ||
|
||
split_bar_posmap { | ||
physical-layout = <&split_bar_layout>; | ||
positions | ||
= < 0 1 2 3 4 5 6 7 8 9> | ||
, <10 11 12 13 14 15 16 17 18 19> | ||
, <20 21 22 23 24 25 26 27 28> | ||
, <29 30 31 32 34 35 36 33> | ||
; | ||
}; | ||
|
||
big_bar_posmap { | ||
physical-layout = <&big_bar_layout>; | ||
positions | ||
= < 0 1 2 3 4 5 6 7 8 9> | ||
, <10 11 12 13 14 15 16 17 18 19> | ||
, <20 21 22 23 24 25 26 27 28> | ||
, <29 30 35 34 36 32 33 31> | ||
; | ||
}; | ||
}; | ||
}; |
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