Update sofle.dtsi
This commit is contained in:
parent
2b5fb6c7c8
commit
0a80c7e6a0
1 changed files with 34 additions and 1 deletions
|
@ -9,7 +9,8 @@
|
|||
/ {
|
||||
chosen {
|
||||
zephyr,display = &oled;
|
||||
zmk,kscan = &kscan0;
|
||||
//zmk,kscan = &kscan0;
|
||||
zmk,kscan = &side_band_behavior_triggers;
|
||||
zmk,matrix-transform = &default_transform;
|
||||
};
|
||||
|
||||
|
@ -42,9 +43,41 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7)
|
|||
, <&pro_micro 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&gpio0 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
;
|
||||
};
|
||||
|
||||
behaviors {
|
||||
hw_soft_off: behavior_hw_soft_off {
|
||||
compatible = "zmk,behavior-soft-off";
|
||||
#binding-cells = <0>;
|
||||
hold-time-ms = <2000>;
|
||||
};
|
||||
};
|
||||
|
||||
side_band_behavior_triggers: side_band_behavior_triggers {
|
||||
compatible = "zmk,kscan-sideband-behaviors";
|
||||
wakeup-source;
|
||||
kscan = <&kscan0>;
|
||||
soft_off {
|
||||
column = <0>;
|
||||
row = <5>;
|
||||
bindings = <&hw_soft_off>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
wakeup_key: wakeup_key {
|
||||
gpios = <&gpio0 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
left_encoder: encoder_left {
|
||||
compatible = "alps,ec11";
|
||||
a-gpios = <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||
|
|
Loading…
Add table
Reference in a new issue