zmk/app/dts/behaviors/backlight.dtsi
Bryan Forbes 72f8c5072e Update global behaviors to be compiled in based on their Kconfig option
Because global behaviors have to exist on both the central and split
regardless if the user references them in their keymap, we can't omit
the behavior declaration if the user doen't reference it and decide to
compile it later based on the existence of the behavior declaration. The
best option seems to be to decide whether to compile those behaviors
based on the feature Kconfig flag. This also means that the two reset
behaviors will always be compiled into both sides.
2024-03-06 11:40:49 -06:00

16 lines
361 B
Text

/*
* Copyright (c) 2021 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
/ {
behaviors {
// Behavior can be invoked on peripherals, so name must be <= 8 characters
// and cannot be /omit-if-no-ref/
bl: bcklight {
compatible = "zmk,behavior-backlight";
#binding-cells = <2>;
};
};
};