Skip to content

Commit

Permalink
Move to new soft-off branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Sep 25, 2023
1 parent bfa4c34 commit b5ff5bc
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions config/boards/arm/lpgalaxy_blank_slate/lpgalaxy_blank_slate.dts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
led0 = &blue_led;
};

behaviors {
hw_soft_off: behavior_hw_soft_off {
compatible = "zmk,behavior-soft-off";
#binding-cells = <0>;
label = "HW_SO";
hold-time-ms = <3000>;
};
};

leds {
compatible = "gpio-leds";
blue_led: led_0 {
Expand All @@ -34,11 +43,40 @@
};
};

keys {
compatible = "gpio-keys";
wakeup_key: wakeup_key {
gpios = <&gpio0 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
};
};

vbatt: vbatt {
compatible = "zmk,battery-nrf-vddh";
label = "BATTERY";
};

wakeup_source: wakeup_source {
compatible = "zmk,wakeup-trigger-key";

trigger = <&wakeup_key>;
wakeup-source;
extra-gpios
= <&gpio0 12 GPIO_ACTIVE_HIGH>
;
};

soft_off_behavior_key {
compatible = "zmk,behavior-key-scanned";
status = "okay";
bindings = <&hw_soft_off>;
key = <&wakeup_key>;
};

soft_off_wakers {
compatible = "zmk,soft-off-wakeup-sources";
wakeup-sources = <&wakeup_source>;
};

soft_on_off {
compatible = "zmk,soft-on-off-gpio";

Expand Down
2 changes: 1 addition & 1 deletion config/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ manifest:
projects:
- name: zmk
remote: petejohanson
revision: features/soft-off
revision: features/soft-off-take-2
import: app/west.yml
self:
path: config

0 comments on commit b5ff5bc

Please sign in to comment.