summaryrefslogtreecommitdiff
path: root/app/boards/shields/kyria
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-08-18 19:21:43 -0400
committerGitHub <noreply@github.com>2020-08-18 19:21:43 -0400
commit0d3cfa859636a43e77ebad66f048452320d65d8b (patch)
tree53104ca199c0974e02e6ffa96997c176a9e8ce56 /app/boards/shields/kyria
parent1ae9e9d81786ce3ee2a1fbff4d1fd7108bc5d45c (diff)
parent4402e4fbc7bc79206589d3006fde802c4ba70ec7 (diff)
Merge pull request #99 from petejohanson/core/bluetooth-unpair-magic-combo
Add magic combo for unpairing BT devices on start.
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