zmk/app/tests/tap-dance/behavior_keymap.dtsi
kurtis-lew 8a4271e2af Rebased Core Files from PR 811
Updated docs

Update behavior_tap_dance.c

Addressed comments by @okke-formsma and testing done by @dxmh relating to initial work in PR #811

Prettier'd tap-dance.md

Improved clarity

Added annotations. Reformatted counter increment. Removed LOG_DBG to reduce clutter in Serial Monitor.

Added Tests. Re-added relevant LOG_DBG for tests.

Removed non-tap-dance files edited by formatting docs.
2021-06-11 20:33:23 -07:00

27 lines
534 B
Text

#include <dt-bindings/zmk/keys.h>
#include <behaviors.dtsi>
#include <dt-bindings/zmk/kscan_mock.h>
/ {
behaviors {
tdb: tap_dance_basic {
compatible = "zmk,behavior-tap-dance";
label = "TAP_DANCE_BASIC";
#binding-cells = <0>;
tapping_term_ms = <200>;
bindings = <&kp N1>, <&kp N2>, <&kp N3>;
};
};
keymap {
compatible = "zmk,keymap";
label ="Default keymap";
default_layer {
bindings = <
&tdb &kp N0
&kp N0 &kp N0>;
};
};
};