2020-12-30 22:38:33 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <behaviors.dtsi>
|
|
|
|
#include <dt-bindings/zmk/keys.h>
|
|
|
|
#include <dt-bindings/zmk/bt.h>
|
|
|
|
|
|
|
|
/ {
|
2020-12-31 02:03:22 +00:00
|
|
|
behaviors {
|
2020-12-31 03:47:37 +00:00
|
|
|
rst: boot_reset {
|
2020-12-31 02:03:22 +00:00
|
|
|
compatible = "zmk,behavior-hold-tap";
|
2020-12-31 03:47:37 +00:00
|
|
|
label = "Hold Tap Bootloader-Reset";
|
2020-12-31 02:03:22 +00:00
|
|
|
#binding-cells = <2>;
|
|
|
|
tapping_term_ms = <150>;
|
2020-12-31 03:47:37 +00:00
|
|
|
flavor = "balanced";
|
2020-12-31 02:03:22 +00:00
|
|
|
bindings = <&bootloader>, <&reset>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-12-30 22:38:33 +00:00
|
|
|
keymap {
|
|
|
|
compatible = "zmk,keymap";
|
|
|
|
|
|
|
|
default_layer {
|
|
|
|
bindings = <
|
2020-12-31 03:47:37 +00:00
|
|
|
&rst B R
|
2020-12-30 22:38:33 +00:00
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|