feat(lighting): add backlight behavior

This commit is contained in:
Alessandro Bortolin
2021-10-09 18:24:37 +02:00
committed by Pete Johanson
parent 84365e6def
commit 85b2d30bd5
9 changed files with 371 additions and 2 deletions

View File

@@ -16,3 +16,4 @@
#include <behaviors/outputs.dtsi>
#include <behaviors/caps_word.dtsi>
#include <behaviors/key_repeat.dtsi>
#include <behaviors/backlight.dtsi>

View 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>;
};
};
};

View 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