Skip to content

Commit

Permalink
Adding RGB control and remapping how the controls work to kill a late…
Browse files Browse the repository at this point in the history
…ncy issue with the activation button (Skull Icon)
  • Loading branch information
MatchstickWorks committed Jan 3, 2025
1 parent ab3ab51 commit 1261cd8
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 19 deletions.
45 changes: 32 additions & 13 deletions boards/shields/stratapad/stratapad.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <dt-bindings/zmk/bt.h>

#define DEFAULT 0
#define BT_SET 1
#define USE 1

#define NONE 0

Expand All @@ -12,30 +12,49 @@
td0: tap_dance_0 {
compatible = "zmk,behavior-tap-dance";
#binding-cells = <0>;
tapping-term-ms = <500>;
bindings = <&kp LCTRL>, <&kp LCTRL>, <&mo BT_SET>;
tapping-term-ms = <300>;
bindings = <&kp A>, <&bt BT_SEL 0>;
};
td1: tap_dance_1 {
compatible = "zmk,behavior-tap-dance";
#binding-cells = <0>;
tapping-term-ms = <300>;
bindings = <&kp S>, <&bt BT_SEL 1>;
};
td2: tap_dance_2 {
compatible = "zmk,behavior-tap-dance";
#binding-cells = <0>;
tapping-term-ms = <300>;
bindings = <&kp D>, <&bt BT_SEL 2>;
};
td3: tap_dance_3 {
compatible = "zmk,behavior-tap-dance";
#binding-cells = <0>;
tapping-term-ms = <300>;
bindings = <&kp W>, <&bt BT_CLR>;
};

};

keymap {
compatible = "zmk,keymap";

default_layer {
bindings = <
&kp W
&kp A
&kp S
&kp D
&td3
&td0
&td1
&td2
&to 1
>;
};
bt_cmds_layer {
bt_cmds_layer {
bindings = <
&bt BT_CLR
&bt BT_SEL 0
&bt BT_SEL 1
&bt BT_SEL 2
&none
&kp W
&kp A
&kp S
&kp D
&kp LCTRL
>;
};
};
Expand Down
2 changes: 1 addition & 1 deletion boards/shields/stratapad/stratapad.zmk.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
file_format: "1"
id: stratapad
name: StrataPad
name: MathcstickWorks StrataPad
type: shield
url: https://matchstick.works
requires: [seeeduino_xiao_ble]
Expand Down
8 changes: 4 additions & 4 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
---
include:
- board: seeeduino_xiao_ble
shield: stratapad
artifact-name: stratapad_wasd_keymap
shield: stratapad rgbled_adapter
artifact-name: stratapad_wasd_keymap-${{ steps.date.outputs.date }}
- board: seeeduino_xiao_ble
shield: stratapad
shield: stratapad rgbled_adapter
cmake-args: -DKEYMAP_FILE=../../config/stratapad_arrows.keymap
artifact-name: stratapad_arrows_keymap
artifact-name: stratapad_arrows_keymap-${{ steps.date.outputs.date }}
7 changes: 6 additions & 1 deletion config/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@ manifest:
remotes:
- name: zmkfirmware
url-base: https://github.com/zmkfirmware
- name: caksoylar
url-base: https://github.com/caksoylar
# Additional modules containing boards/shields/custom code can be listed here as well
# See https://docs.zephyrproject.org/3.2.0/develop/west/manifest.html#projects
projects:
- name: zmk
remote: zmkfirmware
revision: main
import: app/west.yml
- name: zmk-rgbled-widget
remote: caksoylar
revision: main
self:
path: config
path: config

0 comments on commit 1261cd8

Please sign in to comment.