refactor: new physical layouts convention
This commit is contained in:
parent
a173be9d71
commit
99b8506437
31 changed files with 443 additions and 475 deletions
|
|
@ -4,10 +4,9 @@
|
|||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include "zmk_uno.dtsi"
|
||||
#include "zmk_uno.dtsi"
|
||||
|
||||
#include <behaviors.dtsi>
|
||||
#include <physical_layouts.dtsi>
|
||||
#include <dt-bindings/zmk/bt.h>
|
||||
#include <dt-bindings/zmk/outputs.h>
|
||||
|
||||
|
|
@ -59,36 +58,4 @@
|
|||
bindings = <&ble_one>;
|
||||
};
|
||||
};
|
||||
|
||||
matrix_physical_layout: matrix_physical_layout {
|
||||
compatible = "zmk,physical-layout";
|
||||
display-name = "Matrix Layout";
|
||||
|
||||
kscan = <&kscan_matrix>;
|
||||
transform = <&matrix_transform>;
|
||||
|
||||
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 0 100 0 0 0>
|
||||
, <&key_physical_attrs 100 100 100 100 0 0 0>
|
||||
;
|
||||
};
|
||||
|
||||
direct_physical_layout: direct_physical_layout {
|
||||
compatible = "zmk,physical-layout";
|
||||
|
||||
display-name = "Direct Wire Layout";
|
||||
|
||||
kscan = <&kscan_direct>;
|
||||
transform = <&direct_matrix_transform>;
|
||||
|
||||
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 0 100 0 0 0>
|
||||
, <&key_physical_attrs 100 100 100 100 0 0 0>
|
||||
;
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue