forked from kofal.net/zmk
New behavior for ext power control
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user