Skip to content

Commit 1ad4bc7

Browse files
committed
Add mdbt50q rx button listener
1 parent 91237a6 commit 1ad4bc7

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

boards/shields/roBa/roBa.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,9 @@
144144
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
145145
};
146146
};
147+
148+
/ {
149+
mdbt50q_rx_buttons: buttons {
150+
status = "disabled";
151+
};
152+
};

boards/shields/roBa/roBa_dongle.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_PROXY=y
1818
CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_FETCHING=y
1919

2020
CONFIG_INPUT=y
21+
CONFIG_INPUT_GPIO_KEYS=y
22+
CONFIG_INPUT_THREAD_STACK_SIZE=2048
2123

2224
CONFIG_ZMK_STUDIO=y
2325
CONFIG_ZMK_STUDIO_LOCKING=n

boards/shields/roBa/roBa_dongle.overlay

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@
2424
&trackball_listener {
2525
status = "okay";
2626
};
27+
28+
&mdbt50q_rx_buttons {
29+
status = "okay";
30+
};

config/roBa.keymap

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,26 @@
5353

5454
&sl { release-after-ms = <1000>; };
5555

56+
/ {
57+
input_processors {
58+
zip_button_to_key: zip_button_to_key {
59+
compatible = "zmk,input-processor-behaviors";
60+
#input-processor-cells = <0>;
61+
type = <INPUT_EV_KEY>;
62+
codes = <INPUT_KEY_0>;
63+
bindings = <&reset_bootloader 0 0>;
64+
};
65+
};
66+
67+
mdbt50q_rx_buttons_listener: mdbt50q_rx_buttons_listener {
68+
compatible = "zmk,input-listener";
69+
status = "okay";
70+
device = <&mdbt50q_rx_buttons>;
71+
72+
input-processors = <&zip_button_to_key>;
73+
};
74+
};
75+
5676
&mouse_gesture_kp {
5777
tapping-term-ms = <200>;
5878
quick-tap-ms = <250>;

0 commit comments

Comments
 (0)