Browse Source

Add BT clear bind.

Should check the positions are correct.
xmkb
CrossR 4 years ago
parent
commit
dcd36f12e0
  1. 6
      app/boards/shields/sofle/sofle.dtsi
  2. 1
      app/boards/shields/sofle/sofle_left.conf
  3. 3
      app/boards/shields/sofle/sofle_left.overlay
  4. 1
      app/boards/shields/sofle/sofle_right.conf
  5. 4
      app/boards/shields/sofle/sofle_right.overlay

6
app/boards/shields/sofle/sofle.dtsi

@ -44,8 +44,6 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7) @@ -44,8 +44,6 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7)
;
};
// TODO: Check these pins and resolution!
left_encoder: encoder_left {
compatible = "alps,ec11";
label = "LEFT_ENCODER";
@ -68,6 +66,10 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7) @@ -68,6 +66,10 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7)
compatible = "zmk,keymap-sensors";
sensors = <&left_encoder &right_encoder>;
};
bt_unpair_combo: bt_unpair_combo {
compatible = "zmk,bt-unpair-combo";
};
};
&pro_micro_i2c {

1
app/boards/shields/sofle/sofle_left.conf

@ -1,2 +1,3 @@ @@ -1,2 +1,3 @@
CONFIG_ZMK_SPLIT=y
CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y
CONFIG_ZMK_BLE_UNPAIR_COMBO=y

3
app/boards/shields/sofle/sofle_left.overlay

@ -21,3 +21,6 @@ @@ -21,3 +21,6 @@
status = "okay";
};
&bt_unpair_combo {
key-positions = <0 52>;
};

1
app/boards/shields/sofle/sofle_right.conf

@ -1,2 +1,3 @@ @@ -1,2 +1,3 @@
CONFIG_ZMK_SPLIT=y
CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y
CONFIG_ZMK_BLE_UNPAIR_COMBO=y

4
app/boards/shields/sofle/sofle_right.overlay

@ -24,3 +24,7 @@ @@ -24,3 +24,7 @@
&right_encoder {
status = "okay";
};
&bt_unpair_combo {
key-positions = <11 55>;
};

Loading…
Cancel
Save