New behavior for ext power control
This commit is contained in:
parent
d0c6310434
commit
b5e1c8a7ad
7 changed files with 98 additions and 6 deletions
|
|
@ -8,4 +8,5 @@
|
|||
#include <behaviors/reset.dtsi>
|
||||
#include <behaviors/sensor_rotate_key_press.dtsi>
|
||||
#include <behaviors/rgb_underglow.dtsi>
|
||||
#include <behaviors/bluetooth.dtsi>
|
||||
#include <behaviors/bluetooth.dtsi>
|
||||
#include <behaviors/ext_power.dtsi>
|
||||
|
|
|
|||
9
app/dts/behaviors/ext_power.dtsi
Normal file
9
app/dts/behaviors/ext_power.dtsi
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/ {
|
||||
behaviors {
|
||||
ext_power: behavior_ext_power {
|
||||
compatible = "zmk,behavior-ext-power";
|
||||
label = "EXT_POWER_BEHAVIOR";
|
||||
#binding-cells = <2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
10
app/dts/bindings/behaviors/zmk,behavior-ext-power.yaml
Normal file
10
app/dts/bindings/behaviors/zmk,behavior-ext-power.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#
|
||||
# Copyright (c) 2020, The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
description: External power control Behavior
|
||||
|
||||
compatible: "zmk,behavior-ext-power"
|
||||
|
||||
include: two_param.yaml
|
||||
Loading…
Add table
Add a link
Reference in a new issue