* Use defines to keep either all behaviors with omits, or selective behaviors with explicit kept behavior, before including `behavior.dtsi` in keymaps. * Default ZMK_BEHAVIORS_KEEP_ALL when building with the studio RPC endpoint snippet.
21 lines
458 B
Text
21 lines
458 B
Text
/*
|
|
* Copyright (c) 2021 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include <dt-bindings/zmk/behaviors.h>
|
|
|
|
/ {
|
|
behaviors {
|
|
#if ZMK_BEHAVIOR_OMIT(BL)
|
|
/omit-if-no-ref/
|
|
#endif
|
|
// Behavior can be invoked on peripherals, so name must be <= 8 characters.
|
|
bl: bcklight {
|
|
compatible = "zmk,behavior-backlight";
|
|
#binding-cells = <2>;
|
|
display-name = "Backlight";
|
|
};
|
|
};
|
|
};
|