Skip to content

Commit

Permalink
Merge pull request #3 from MatchstickWorks/StrataPad-patch-1
Browse files Browse the repository at this point in the history
Addition of Profile Functions to StrataPad
  • Loading branch information
MatchstickWorks authored Aug 4, 2024
2 parents cbe2a0a + b9a5c7f commit 0b14e5f
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
1 change: 1 addition & 0 deletions boards/shields/stratapad/stratapad.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y
25 changes: 24 additions & 1 deletion boards/shields/stratapad/stratapad.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,21 @@
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>

#define DEFAULT 0
#define BT_SET 1

#define NONE 0

/ {
behaviors {
td0: tap_dance_0 {
compatible = "zmk,behavior-tap-dance";
#binding-cells = <0>;
tapping-term-ms = <500>;
bindings = <&kp LCTRL>, <&kp LCTRL>, <&mo BT_SET>;
};
};

keymap {
compatible = "zmk,keymap";

Expand All @@ -12,7 +26,16 @@
&kp A
&kp S
&kp D
&kp LCTRL
&td0
>;
};
bt_cmds_layer {
bindings = <
&bt BT_CLR
&bt BT_SEL 0
&bt BT_SEL 1
&bt BT_SEL 2
&none
>;
};
};
Expand Down
25 changes: 24 additions & 1 deletion config/stratapad_arrows.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,21 @@
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>

#define DEFAULT 0
#define BT_SET 1

#define NONE 0

/ {
behaviors {
td0: tap_dance_0 {
compatible = "zmk,behavior-tap-dance";
#binding-cells = <0>;
tapping-term-ms = <500>;
bindings = <&kp LCTRL>, <&kp LCTRL>, <&mo BT_SET>;
};
};

keymap {
compatible = "zmk,keymap";

Expand All @@ -12,7 +26,16 @@
&kp LEFT
&kp DOWN
&kp RIGHT
&kp LCTRL
&td0
>;
};
bt_cmds_layer {
bindings = <
&bt BT_CLR
&bt BT_SEL 0
&bt BT_SEL 1
&bt BT_SEL 2
&none
>;
};
};
Expand Down

0 comments on commit 0b14e5f

Please sign in to comment.