forked from kofal.net/zmk
feat(lighting): add backlight behavior
This commit is contained in:
committed by
Pete Johanson
parent
84365e6def
commit
85b2d30bd5
@@ -16,3 +16,4 @@
|
||||
#include <behaviors/outputs.dtsi>
|
||||
#include <behaviors/caps_word.dtsi>
|
||||
#include <behaviors/key_repeat.dtsi>
|
||||
#include <behaviors/backlight.dtsi>
|
||||
|
||||
15
app/dts/behaviors/backlight.dtsi
Normal file
15
app/dts/behaviors/backlight.dtsi
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright (c) 2021 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ bl: behavior_backlight {
|
||||
compatible = "zmk,behavior-backlight";
|
||||
label = "BACKLIGHT";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
8
app/dts/bindings/behaviors/zmk,behavior-backlight.yaml
Normal file
8
app/dts/bindings/behaviors/zmk,behavior-backlight.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2021 The ZMK Contributors
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
description: Backlight behavior
|
||||
|
||||
compatible: "zmk,behavior-backlight"
|
||||
|
||||
include: one_param.yaml
|
||||
Reference in New Issue
Block a user