Skip to content

Commit

Permalink
Initial studio testing bits.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Jun 7, 2024
1 parent fc26b0d commit dbda504
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 5 deletions.
1 change: 1 addition & 0 deletions config/boards/shields/revxlp/revxlp.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
tap_dances {
shifty: shift_caps_word {
compatible = "zmk,behavior-tap-dance";
friendly-name = "Shift+";
#binding-cells = <0>;
tapping-term-ms = <150>;
bindings = <&kp LSHFT>, <&caps_word>;
Expand Down
127 changes: 124 additions & 3 deletions config/boards/shields/revxlp/revxlp.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <dt-bindings/zmk/matrix_transform.h>
#include <physical_layouts.dtsi>

&xiao_serial { status = "disabled"; };

Expand All @@ -24,9 +25,8 @@

/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,backlight = &backlight;
zmk,physical-layout = &twelve_u_layout;
};

backlight: backlight_leds {
Expand All @@ -36,8 +36,9 @@
};
};

default_transform: keymap_transform_0 {
twelve_u_transform: keymap_transform_12u {
compatible = "zmk,matrix-transform";

columns = <6>;
rows = <7>;

Expand All @@ -49,6 +50,20 @@ RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,5) RC(5,5) RC(5,4) RC(5,3) RC(5,2)
>;
};

ten_u_transform: keymap_transform_10u {
compatible = "zmk,matrix-transform";

columns = <6>;
rows = <7>;

map = <
RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5) RC(1,5) RC(1,4) RC(1,3) RC(1,2) RC(1,1)
RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(3,5) RC(3,4) RC(3,3) RC(3,2) RC(3,1)
RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,5) RC(5,5) RC(5,4) RC(5,3) RC(5,2) RC(5,1)
RC(6,0) RC(6,1) RC(6,2) RC(6,3) RC(6,4) RC(6,5)
>;
};

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
diode-direction = "col2row";
Expand All @@ -72,4 +87,110 @@ RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,5) RC(5,5) RC(5,4) RC(5,3) RC(5,2)
, <&xiao_d 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
};

ten_u_layout: ten_u_layout {
compatible = "zmk,physical-layout";
display-name = "10u";

transform = <&ten_u_transform>;
kscan = <&kscan0>;

keys
= <&key_physical_attrs 100 100 100 53 0 0 0>
, <&key_physical_attrs 100 100 200 28 0 0 0>
, <&key_physical_attrs 100 100 300 03 0 0 0>
, <&key_physical_attrs 100 100 400 28 0 0 0>
, <&key_physical_attrs 100 100 500 38 0 0 0>
, <&key_physical_attrs 100 100 700 38 0 0 0>
, <&key_physical_attrs 100 100 800 28 0 0 0>
, <&key_physical_attrs 100 100 900 03 0 0 0>
, <&key_physical_attrs 100 100 1000 28 0 0 0>
, <&key_physical_attrs 100 100 1100 53 0 0 0>

, <&key_physical_attrs 100 100 100 153 0 0 0>
, <&key_physical_attrs 100 100 200 128 0 0 0>
, <&key_physical_attrs 100 100 300 103 0 0 0>
, <&key_physical_attrs 100 100 400 128 0 0 0>
, <&key_physical_attrs 100 100 500 138 0 0 0>
, <&key_physical_attrs 100 100 700 138 0 0 0>
, <&key_physical_attrs 100 100 800 128 0 0 0>
, <&key_physical_attrs 100 100 900 103 0 0 0>
, <&key_physical_attrs 100 100 1000 128 0 0 0>
, <&key_physical_attrs 100 100 1100 153 0 0 0>

, <&key_physical_attrs 100 100 100 253 0 0 0>
, <&key_physical_attrs 100 100 200 228 0 0 0>
, <&key_physical_attrs 100 100 300 203 0 0 0>
, <&key_physical_attrs 100 100 400 228 0 0 0>
, <&key_physical_attrs 100 100 500 238 0 0 0>
, <&key_physical_attrs 100 100 700 238 0 0 0>
, <&key_physical_attrs 100 100 800 228 0 0 0>
, <&key_physical_attrs 100 100 900 203 0 0 0>
, <&key_physical_attrs 100 100 1000 228 0 0 0>
, <&key_physical_attrs 100 100 1100 253 0 0 0>

, <&key_physical_attrs 100 100 339 358 0 0 0>
, <&key_physical_attrs 100 100 450 385 0 0 0>
, <&key_physical_attrs 100 100 555 414 0 0 0>
, <&key_physical_attrs 100 100 655 414 0 0 0>
, <&key_physical_attrs 100 100 750 385 0 0 0>
, <&key_physical_attrs 100 100 849 358 0 0 0>
;
};

twelve_u_layout: twelve_u_layout {
compatible = "zmk,physical-layout";
display-name = "12u";

transform = <&twelve_u_transform>;
kscan = <&kscan0>;

keys
= <&key_physical_attrs 100 100 000 53 0 0 0>
, <&key_physical_attrs 100 100 100 53 0 0 0>
, <&key_physical_attrs 100 100 200 28 0 0 0>
, <&key_physical_attrs 100 100 300 03 0 0 0>
, <&key_physical_attrs 100 100 400 28 0 0 0>
, <&key_physical_attrs 100 100 500 38 0 0 0>
, <&key_physical_attrs 100 100 700 38 0 0 0>
, <&key_physical_attrs 100 100 800 28 0 0 0>
, <&key_physical_attrs 100 100 900 03 0 0 0>
, <&key_physical_attrs 100 100 1000 28 0 0 0>
, <&key_physical_attrs 100 100 1100 53 0 0 0>
, <&key_physical_attrs 100 100 1200 53 0 0 0>

, <&key_physical_attrs 100 100 000 153 0 0 0>
, <&key_physical_attrs 100 100 100 153 0 0 0>
, <&key_physical_attrs 100 100 200 128 0 0 0>
, <&key_physical_attrs 100 100 300 103 0 0 0>
, <&key_physical_attrs 100 100 400 128 0 0 0>
, <&key_physical_attrs 100 100 500 138 0 0 0>
, <&key_physical_attrs 100 100 700 138 0 0 0>
, <&key_physical_attrs 100 100 800 128 0 0 0>
, <&key_physical_attrs 100 100 900 103 0 0 0>
, <&key_physical_attrs 100 100 1000 128 0 0 0>
, <&key_physical_attrs 100 100 1100 153 0 0 0>
, <&key_physical_attrs 100 100 1200 153 0 0 0>

, <&key_physical_attrs 100 100 000 253 0 0 0>
, <&key_physical_attrs 100 100 100 253 0 0 0>
, <&key_physical_attrs 100 100 200 228 0 0 0>
, <&key_physical_attrs 100 100 300 203 0 0 0>
, <&key_physical_attrs 100 100 400 228 0 0 0>
, <&key_physical_attrs 100 100 500 238 0 0 0>
, <&key_physical_attrs 100 100 700 238 0 0 0>
, <&key_physical_attrs 100 100 800 228 0 0 0>
, <&key_physical_attrs 100 100 900 203 0 0 0>
, <&key_physical_attrs 100 100 1000 228 0 0 0>
, <&key_physical_attrs 100 100 1100 253 0 0 0>
, <&key_physical_attrs 100 100 1200 253 0 0 0>

, <&key_physical_attrs 100 100 339 358 0 0 0>
, <&key_physical_attrs 100 100 450 385 0 0 0>
, <&key_physical_attrs 100 100 555 414 0 0 0>
, <&key_physical_attrs 100 100 655 414 0 0 0>
, <&key_physical_attrs 100 100 750 385 0 0 0>
, <&key_physical_attrs 100 100 849 358 0 0 0>
;
};
};
4 changes: 2 additions & 2 deletions config/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ manifest:
url-base: https://github.com/petejohanson
projects:
- name: zmk
remote: zmkfirmware
revision: main
remote: petejohanson
revision: studio/keymap-subsystem
import: app/west.yml
self:
path: config

0 comments on commit dbda504

Please sign in to comment.