diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-09-13 22:43:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-13 22:43:45 -0400 |
commit | 160f296bfb562ca0596630f84c4121920ea3c304 (patch) | |
tree | 63218f4af1b20108af667de8e346d204076064bb /app/dts | |
parent | 304603240f7ba16f67912a0031c64fb9ae4e8279 (diff) | |
parent | 4658999e31865e54d02955c500c716385e6c69d8 (diff) |
Merge pull request #133 from petejohanson/bluetooth/ident-management
feat(bluetooth): Proper basic bond management, new `bt` behavior for resetting bond to host.
Diffstat (limited to 'app/dts')
-rw-r--r-- | app/dts/behaviors.dtsi | 3 | ||||
-rw-r--r-- | app/dts/behaviors/bluetooth.dtsi | 9 | ||||
-rw-r--r-- | app/dts/bindings/behaviors/zmk,behavior-bluetooth.yaml | 8 |
3 files changed, 19 insertions, 1 deletions
diff --git a/app/dts/behaviors.dtsi b/app/dts/behaviors.dtsi index ab70bcc..202202b 100644 --- a/app/dts/behaviors.dtsi +++ b/app/dts/behaviors.dtsi @@ -7,4 +7,5 @@ #include <behaviors/toggle_layer.dtsi> #include <behaviors/reset.dtsi> #include <behaviors/sensor_rotate_key_press.dtsi> -#include <behaviors/rgb_underglow.dtsi>
\ No newline at end of file +#include <behaviors/rgb_underglow.dtsi> +#include <behaviors/bluetooth.dtsi>
\ No newline at end of file diff --git a/app/dts/behaviors/bluetooth.dtsi b/app/dts/behaviors/bluetooth.dtsi new file mode 100644 index 0000000..ea09f4a --- /dev/null +++ b/app/dts/behaviors/bluetooth.dtsi @@ -0,0 +1,9 @@ +/ { + behaviors { + bt: behavior_bluetooth { + compatible = "zmk,behavior-bluetooth"; + label = "BLUETOOTH"; + #binding-cells = <2>; + }; + }; +}; diff --git a/app/dts/bindings/behaviors/zmk,behavior-bluetooth.yaml b/app/dts/bindings/behaviors/zmk,behavior-bluetooth.yaml new file mode 100644 index 0000000..127ebe0 --- /dev/null +++ b/app/dts/bindings/behaviors/zmk,behavior-bluetooth.yaml @@ -0,0 +1,8 @@ +# Copyright (c) 2020, Peter Johanson +# SPDX-License-Identifier: MIT + +description: Bluetooth Behavior + +compatible: "zmk,behavior-bluetooth" + +include: two_param.yaml |