From 600bba25f049b1fa161b2372b2a47762164c7fcd Mon Sep 17 00:00:00 2001 From: Joel Spadin Date: Sat, 24 Oct 2020 16:28:58 -0500 Subject: feat(endpoints): add preferred endpoint setting Added a new setting to remember the user's preferred endpoint. When both USB and BLE are connected, the preferred endpoint will be used. Added a new behavior to control this setting. It supports commands: &end END_USB - Prefer USB output &end END_BLE - Prefer BLE output &end END_TOG - Toggle between USB and BLE --- app/dts/bindings/behaviors/zmk,behavior-endpoints.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app/dts/bindings/behaviors/zmk,behavior-endpoints.yaml (limited to 'app/dts/bindings') diff --git a/app/dts/bindings/behaviors/zmk,behavior-endpoints.yaml b/app/dts/bindings/behaviors/zmk,behavior-endpoints.yaml new file mode 100644 index 0000000..fdd76bb --- /dev/null +++ b/app/dts/bindings/behaviors/zmk,behavior-endpoints.yaml @@ -0,0 +1,10 @@ +# +# Copyright (c) 2020, The ZMK Contributors +# SPDX-License-Identifier: MIT +# + +description: Endpoints Behavior + +compatible: "zmk,behavior-endpoints" + +include: one_param.yaml -- cgit v1.2.3 From 2fe1fbb526d9190e478999f36adbcfcf4a8847b2 Mon Sep 17 00:00:00 2001 From: Joel Spadin Date: Tue, 27 Oct 2020 13:49:28 -0500 Subject: feat(endpoints): rename behavior to outputs "Outputs" is probably easier for most people to understand than "endpoints". --- app/dts/bindings/behaviors/zmk,behavior-endpoints.yaml | 10 ---------- app/dts/bindings/behaviors/zmk,behavior-outputs.yaml | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 app/dts/bindings/behaviors/zmk,behavior-endpoints.yaml create mode 100644 app/dts/bindings/behaviors/zmk,behavior-outputs.yaml (limited to 'app/dts/bindings') diff --git a/app/dts/bindings/behaviors/zmk,behavior-endpoints.yaml b/app/dts/bindings/behaviors/zmk,behavior-endpoints.yaml deleted file mode 100644 index fdd76bb..0000000 --- a/app/dts/bindings/behaviors/zmk,behavior-endpoints.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# -# Copyright (c) 2020, The ZMK Contributors -# SPDX-License-Identifier: MIT -# - -description: Endpoints Behavior - -compatible: "zmk,behavior-endpoints" - -include: one_param.yaml diff --git a/app/dts/bindings/behaviors/zmk,behavior-outputs.yaml b/app/dts/bindings/behaviors/zmk,behavior-outputs.yaml new file mode 100644 index 0000000..8bcefd9 --- /dev/null +++ b/app/dts/bindings/behaviors/zmk,behavior-outputs.yaml @@ -0,0 +1,10 @@ +# +# Copyright (c) 2020, The ZMK Contributors +# SPDX-License-Identifier: MIT +# + +description: Output Selection Behavior + +compatible: "zmk,behavior-outputs" + +include: one_param.yaml -- cgit v1.2.3