Revert "feat(shields): Add soft-off to the nrf52840dk ZMK Uno"
This reverts commit 0caeb460d1
.
This commit is contained in:
parent
bf3cc27c9e
commit
653b8ba374
2 changed files with 1 additions and 47 deletions
|
@ -12,15 +12,6 @@
|
|||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
|
||||
qdec_sleep: qdec_sleep {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(QDEC_A, 1, 11)>,
|
||||
<NRF_PSEL(QDEC_B, 1, 10)>;
|
||||
bias-pull-up;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
// Set up the QDEC hardware based driver and give it the same label as the deleted node.
|
||||
|
@ -29,39 +20,5 @@ encoder: &qdec0 {
|
|||
led-pre = <0>;
|
||||
steps = <80>;
|
||||
pinctrl-0 = <&qdec_default>;
|
||||
pinctrl-1 = <&qdec_sleep>;
|
||||
pinctrl-names = "default", "sleep";
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
soft_off: behavior_soft_off {
|
||||
compatible = "zmk,behavior-soft-off";
|
||||
#binding-cells = <0>;
|
||||
label = "SOFT_OFF";
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
wakeup_source: wakeup_source {
|
||||
compatible = "zmk,wakeup-trigger-key";
|
||||
status = "okay";
|
||||
|
||||
trigger = <&button0>;
|
||||
wakeup-source;
|
||||
};
|
||||
|
||||
soft_off_wakers {
|
||||
compatible = "zmk,soft-off-wakeup-sources";
|
||||
status = "okay";
|
||||
|
||||
wakeup-sources = <&wakeup_source>;
|
||||
};
|
||||
|
||||
soft_off_behavior_key {
|
||||
compatible = "zmk,behavior-key";
|
||||
status = "okay";
|
||||
bindings = <&soft_off>;
|
||||
key = <&button0>;
|
||||
};
|
||||
};
|
|
@ -124,7 +124,6 @@
|
|||
|
||||
kscan_matrix: kscan_matrix {
|
||||
compatible = "zmk,kscan-gpio-matrix";
|
||||
wakeup-source;
|
||||
|
||||
diode-direction = "col2row";
|
||||
|
||||
|
@ -142,7 +141,6 @@
|
|||
|
||||
kscan_direct: kscan_direct {
|
||||
compatible = "zmk,kscan-gpio-direct";
|
||||
wakeup-source;
|
||||
status = "disabled";
|
||||
|
||||
input-gpios
|
||||
|
@ -157,7 +155,6 @@
|
|||
kscan_sp3t_toggle: kscan_sp3t_toggle {
|
||||
compatible = "zmk,kscan-gpio-direct";
|
||||
toggle-mode;
|
||||
wakeup-source;
|
||||
|
||||
input-gpios
|
||||
= <&arduino_header 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>
|
||||
|
|
Loading…
Add table
Reference in a new issue