2021-06-08 08:47:23 -07:00
|
|
|
#include <dt-bindings/zmk/keys.h>
|
|
|
|
#include <behaviors.dtsi>
|
2023-09-14 23:43:47 -07:00
|
|
|
#include <dt-bindings/zmk/kscan_mock.h>
|
2021-06-08 08:47:23 -07:00
|
|
|
|
|
|
|
/ {
|
2023-04-22 21:25:56 -07:00
|
|
|
combos {
|
|
|
|
compatible = "zmk,combos";
|
|
|
|
combo_one {
|
|
|
|
timeout-ms = <80>;
|
|
|
|
key-positions = <0 1 2 3>;
|
|
|
|
bindings = <&kp Z>;
|
|
|
|
};
|
|
|
|
};
|
2021-06-08 08:47:23 -07:00
|
|
|
|
2023-04-22 21:25:56 -07:00
|
|
|
keymap {
|
|
|
|
compatible = "zmk,keymap";
|
2021-06-08 08:47:23 -07:00
|
|
|
|
2023-04-22 21:25:56 -07:00
|
|
|
default_layer {
|
|
|
|
bindings = <
|
|
|
|
&kp A &kp B
|
|
|
|
&kp C &kp D
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
2021-06-08 08:47:23 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
&kscan {
|
2023-04-22 21:25:56 -07:00
|
|
|
events = <
|
|
|
|
ZMK_MOCK_PRESS(1,1,10)
|
|
|
|
ZMK_MOCK_PRESS(0,1,10)
|
|
|
|
ZMK_MOCK_PRESS(1,0,10)
|
|
|
|
ZMK_MOCK_PRESS(0,0,10)
|
|
|
|
ZMK_MOCK_RELEASE(0,0,100)
|
|
|
|
ZMK_MOCK_RELEASE(1,0,100)
|
|
|
|
ZMK_MOCK_RELEASE(0,1,100)
|
|
|
|
ZMK_MOCK_RELEASE(1,1,100)
|
|
|
|
>;
|
2021-06-08 08:47:23 -07:00
|
|
|
};
|