47f873b038
* GATT characteristic allowing passng data + behavior label to invoke the behavior on the peripheral side. * Behaviors have a locality setting to specify where they run. * Build reset/power/RGB on peripheral.
24 lines
442 B
Text
24 lines
442 B
Text
/*
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include <dt-bindings/zmk/reset.h>
|
|
|
|
/ {
|
|
behaviors {
|
|
/omit-if-no-ref/ reset: behavior_reset {
|
|
compatible = "zmk,behavior-reset";
|
|
label = "RESET";
|
|
#binding-cells = <0>;
|
|
};
|
|
|
|
/omit-if-no-ref/ bootloader: behavior_reset_dfu {
|
|
compatible = "zmk,behavior-reset";
|
|
label = "BOOTLOAD";
|
|
type = <RST_UF2>;
|
|
#binding-cells = <0>;
|
|
};
|
|
};
|
|
};
|