-
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.
Added physical layout from Friction's firmware
- Loading branch information
1 parent
1f1357f
commit 9d6cfbb
Showing
6 changed files
with
150 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Our keyboard is only 6 layout but keeping this anyways from Friction | ||
// https://github.com/friction07/zmk-config-corne-xiao/ | ||
#include <layouts/corne_xiao/position_map.dtsi> | ||
#include <physical_layouts.dtsi> | ||
|
||
/ { | ||
corne_xiao_5col_layout: corne_xiao_5col_layout { | ||
compatible = "zmk,physical-layout"; | ||
display-name = "5 Column"; | ||
|
||
keys // w h x y rot rx ry | ||
= <&key_physical_attrs 100 100 0 37 0 0 0> | ||
, <&key_physical_attrs 100 100 100 12 0 0 0> | ||
, <&key_physical_attrs 100 100 200 0 0 0 0> | ||
, <&key_physical_attrs 100 100 300 12 0 0 0> | ||
, <&key_physical_attrs 100 100 400 24 0 0 0> | ||
, <&key_physical_attrs 100 100 800 24 0 0 0> | ||
, <&key_physical_attrs 100 100 900 12 0 0 0> | ||
, <&key_physical_attrs 100 100 1000 0 0 0 0> | ||
, <&key_physical_attrs 100 100 1100 12 0 0 0> | ||
, <&key_physical_attrs 100 100 1200 37 0 0 0> | ||
, <&key_physical_attrs 100 100 0 137 0 0 0> | ||
, <&key_physical_attrs 100 100 100 112 0 0 0> | ||
, <&key_physical_attrs 100 100 200 100 0 0 0> | ||
, <&key_physical_attrs 100 100 300 112 0 0 0> | ||
, <&key_physical_attrs 100 100 400 124 0 0 0> | ||
, <&key_physical_attrs 100 100 800 124 0 0 0> | ||
, <&key_physical_attrs 100 100 900 112 0 0 0> | ||
, <&key_physical_attrs 100 100 1000 100 0 0 0> | ||
, <&key_physical_attrs 100 100 1100 112 0 0 0> | ||
, <&key_physical_attrs 100 100 1200 137 0 0 0> | ||
, <&key_physical_attrs 100 100 0 237 0 0 0> | ||
, <&key_physical_attrs 100 100 100 212 0 0 0> | ||
, <&key_physical_attrs 100 100 200 200 0 0 0> | ||
, <&key_physical_attrs 100 100 300 212 0 0 0> | ||
, <&key_physical_attrs 100 100 400 224 0 0 0> | ||
, <&key_physical_attrs 100 100 500 174 0 0 0> | ||
, <&key_physical_attrs 100 100 700 174 0 0 0> | ||
, <&key_physical_attrs 100 100 800 224 0 0 0> | ||
, <&key_physical_attrs 100 100 900 212 0 0 0> | ||
, <&key_physical_attrs 100 100 1000 200 0 0 0> | ||
, <&key_physical_attrs 100 100 1100 212 0 0 0> | ||
, <&key_physical_attrs 100 100 1200 237 0 0 0> | ||
, <&key_physical_attrs 100 100 250 312 0 0 0> | ||
, <&key_physical_attrs 100 100 350 312 1200 350 412> | ||
, <&key_physical_attrs 100 150 448 283 2400 448 433> | ||
, <&key_physical_attrs 100 150 752 283 (-2400) 852 433> | ||
, <&key_physical_attrs 100 100 850 312 (-1200) 950 412> | ||
, <&key_physical_attrs 100 100 950 312 0 0 0> | ||
; | ||
}; | ||
}; | ||
|
||
&layouts_corne_xiao_position_map { | ||
corne_xiao_5col_posmap: five { | ||
physical-layout = <&corne_xiao_5col_layout>; | ||
positions | ||
= <38 0 1 2 3 4 5 6 7 8 9 39> | ||
, <40 10 11 12 13 14 15 16 17 18 19 41> | ||
, <42 20 21 22 23 24 25 26 27 28 29 30 31 43> | ||
, < 32 33 34 35 36 37 >; | ||
}; | ||
}; |
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,67 @@ | ||
#include <layouts/corne_xiao/position_map.dtsi> | ||
#include <physical_layouts.dtsi> | ||
|
||
/ { | ||
corne_xiao_6col_layout: corne_xiao_6col_layout { | ||
compatible = "zmk,physical-layout"; | ||
display-name = "6 Column"; | ||
|
||
keys // w h x y rot rx ry | ||
= <&key_physical_attrs 100 100 0 37 0 0 0> | ||
, <&key_physical_attrs 100 100 100 37 0 0 0> | ||
, <&key_physical_attrs 100 100 200 12 0 0 0> | ||
, <&key_physical_attrs 100 100 300 0 0 0 0> | ||
, <&key_physical_attrs 100 100 400 12 0 0 0> | ||
, <&key_physical_attrs 100 100 500 24 0 0 0> | ||
, <&key_physical_attrs 100 100 900 24 0 0 0> | ||
, <&key_physical_attrs 100 100 1000 12 0 0 0> | ||
, <&key_physical_attrs 100 100 1100 0 0 0 0> | ||
, <&key_physical_attrs 100 100 1200 12 0 0 0> | ||
, <&key_physical_attrs 100 100 1300 37 0 0 0> | ||
, <&key_physical_attrs 100 100 1400 37 0 0 0> | ||
, <&key_physical_attrs 100 100 0 137 0 0 0> | ||
, <&key_physical_attrs 100 100 100 137 0 0 0> | ||
, <&key_physical_attrs 100 100 200 112 0 0 0> | ||
, <&key_physical_attrs 100 100 300 100 0 0 0> | ||
, <&key_physical_attrs 100 100 400 112 0 0 0> | ||
, <&key_physical_attrs 100 100 500 124 0 0 0> | ||
, <&key_physical_attrs 100 100 900 124 0 0 0> | ||
, <&key_physical_attrs 100 100 1000 112 0 0 0> | ||
, <&key_physical_attrs 100 100 1100 100 0 0 0> | ||
, <&key_physical_attrs 100 100 1200 112 0 0 0> | ||
, <&key_physical_attrs 100 100 1300 137 0 0 0> | ||
, <&key_physical_attrs 100 100 1400 137 0 0 0> | ||
, <&key_physical_attrs 100 100 0 237 0 0 0> | ||
, <&key_physical_attrs 100 100 100 237 0 0 0> | ||
, <&key_physical_attrs 100 100 200 212 0 0 0> | ||
, <&key_physical_attrs 100 100 300 200 0 0 0> | ||
, <&key_physical_attrs 100 100 400 212 0 0 0> | ||
, <&key_physical_attrs 100 100 500 224 0 0 0> | ||
, <&key_physical_attrs 100 100 600 174 0 0 0> | ||
, <&key_physical_attrs 100 100 800 174 0 0 0> | ||
, <&key_physical_attrs 100 100 900 224 0 0 0> | ||
, <&key_physical_attrs 100 100 1000 212 0 0 0> | ||
, <&key_physical_attrs 100 100 1100 200 0 0 0> | ||
, <&key_physical_attrs 100 100 1200 212 0 0 0> | ||
, <&key_physical_attrs 100 100 1300 237 0 0 0> | ||
, <&key_physical_attrs 100 100 1400 237 0 0 0> | ||
, <&key_physical_attrs 100 100 350 312 0 0 0> | ||
, <&key_physical_attrs 100 100 450 312 1200 450 412> | ||
, <&key_physical_attrs 100 150 548 283 2400 548 433> | ||
, <&key_physical_attrs 100 150 852 283 (-2400) 952 433> | ||
, <&key_physical_attrs 100 100 950 312 (-1200) 1050 412> | ||
, <&key_physical_attrs 100 100 1050 312 0 0 0> | ||
; | ||
}; | ||
}; | ||
|
||
&layouts_corne_xiao_position_map { | ||
corne_xiao_6col_posmap: six { | ||
physical-layout = <&corne_xiao_6col_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 33 34 35 36 37> | ||
, < 38 39 40 41 42 43 >; | ||
}; | ||
}; |
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,7 @@ | ||
/ { | ||
layouts_corne_xiao_position_map: layouts_corne_xiao_position_map { | ||
compatible = "zmk,physical-layout-position-map"; | ||
|
||
complete; | ||
}; | ||
}; |
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,4 @@ | ||
build: | ||
settings: | ||
board_root: . | ||
dts_root: . |