summaryrefslogtreecommitdiff
path: root/app/boards/shields/kyria
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-08-18 11:20:15 -0400
committerPete Johanson <peter@peterjohanson.com>2020-08-18 13:17:10 -0400
commit4402e4fbc7bc79206589d3006fde802c4ba70ec7 (patch)
treebdbff3b1edb4b62d8d1dc32c0d640bb6b8fa1ef0 /app/boards/shields/kyria
parentd7dee20e8d9b0b566859304063df2176aef8c057 (diff)
feeature(bt): Add "unpair combo" on startup.
* Especially for splits, we need the ability to unpair all paired devices as sledgehammer if we need to "reset things", and doing so via keymaps isn't suitable. * Allows shields to define a collection of key positions that if all held 2 seconds after startup, will unpair all existing pairs for the device.
Diffstat (limited to 'app/boards/shields/kyria')
-rw-r--r--app/boards/shields/kyria/kyria.dtsi4
-rw-r--r--app/boards/shields/kyria/kyria_left.conf3
-rw-r--r--app/boards/shields/kyria/kyria_left.overlay4
-rw-r--r--app/boards/shields/kyria/kyria_right.conf3
-rw-r--r--app/boards/shields/kyria/kyria_right.overlay4
5 files changed, 16 insertions, 2 deletions
diff --git a/app/boards/shields/kyria/kyria.dtsi b/app/boards/shields/kyria/kyria.dtsi
index bbead84..a13f7f0 100644
--- a/app/boards/shields/kyria/kyria.dtsi
+++ b/app/boards/shields/kyria/kyria.dtsi
@@ -81,6 +81,10 @@ RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9)
sensors = <&left_encoder &right_encoder>;
};
+ bt_unpair_combo: bt_unpair_combo {
+ compatible = "zmk,bt-unpair-combo";
+ };
+
// TODO: RGB node(s)
};
diff --git a/app/boards/shields/kyria/kyria_left.conf b/app/boards/shields/kyria/kyria_left.conf
index e51dee4..338fa59 100644
--- a/app/boards/shields/kyria/kyria_left.conf
+++ b/app/boards/shields/kyria/kyria_left.conf
@@ -1,2 +1,3 @@
CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y \ No newline at end of file
+CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y
+CONFIG_ZMK_BLE_UNPAIR_COMBO=y \ No newline at end of file
diff --git a/app/boards/shields/kyria/kyria_left.overlay b/app/boards/shields/kyria/kyria_left.overlay
index c8b5be2..441c1a6 100644
--- a/app/boards/shields/kyria/kyria_left.overlay
+++ b/app/boards/shields/kyria/kyria_left.overlay
@@ -22,3 +22,7 @@
&left_encoder {
status = "okay";
};
+
+&bt_unpair_combo {
+ key-positions = <0 44>;
+}; \ No newline at end of file
diff --git a/app/boards/shields/kyria/kyria_right.conf b/app/boards/shields/kyria/kyria_right.conf
index a835adc..be344c4 100644
--- a/app/boards/shields/kyria/kyria_right.conf
+++ b/app/boards/shields/kyria/kyria_right.conf
@@ -1,2 +1,3 @@
CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y \ No newline at end of file
+CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y
+CONFIG_ZMK_BLE_UNPAIR_COMBO=y \ No newline at end of file
diff --git a/app/boards/shields/kyria/kyria_right.overlay b/app/boards/shields/kyria/kyria_right.overlay
index 8163c95..8ee0fcb 100644
--- a/app/boards/shields/kyria/kyria_right.overlay
+++ b/app/boards/shields/kyria/kyria_right.overlay
@@ -27,3 +27,7 @@
&right_encoder {
status = "okay";
};
+
+&bt_unpair_combo {
+ key-positions = <11 45>;
+}; \ No newline at end of file