forked from kofal.net/zmk
refactor: new physical layouts convention
This commit is contained in:
committed by
Pete Johanson
parent
a173be9d71
commit
99b8506437
@@ -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>
|
||||
;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user