Skip to content

Commit

Permalink
point to upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
numToStr committed Sep 9, 2024
1 parent 0cbc97c commit fe23431
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion boards/shields/acorn/acorn_central_dongle.overlay
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "acorn_matrix.dtsi"

/delete-node/ &default_kscan;
/delete-node/ &kscan;

/ {
chosen {
Expand Down
24 changes: 12 additions & 12 deletions boards/shields/acorn/acorn_matrix.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

/ {
chosen {
zmk,physical-layout = &default_layout;
zmk,physical-layout = &six_col_layout;
};

default_layout: default_layout {
six_col_layout: six_col_layout {
compatible = "zmk,physical-layout";
display-name = "6-col";

kscan = <&default_kscan>;
transform = <&default_transform>;
kscan = <&kscan>;
transform = <&six_col_transform>;

keys // w h x y rot rx ry
= <&key_physical_attrs 100 100 0 37 0 0 0>
Expand Down Expand Up @@ -59,12 +59,12 @@
;
};

five_column_layout: five_column_layout {
five_col_layout: five_col_layout {
compatible = "zmk,physical-layout";
display-name = "5-col";

kscan = <&default_kscan>;
transform = <&five_column_transform>;
kscan = <&kscan>;
transform = <&five_col_transform>;

keys // w h x y rot rx ry
= <&key_physical_attrs 100 100 0 37 0 0 0>
Expand Down Expand Up @@ -112,7 +112,7 @@
complete;

twelve {
physical-layout = <&default_layout>;
physical-layout = <&six_col_layout>;
positions
= < 1 2 3 4 5 6 7 8 9 10>
, <13 14 15 16 17 18 19 20 21 22>
Expand All @@ -121,7 +121,7 @@
};

ten {
physical-layout = <&five_column_layout>;
physical-layout = <&five_col_layout>;
positions
= < 0 1 2 3 4 5 6 7 8 9>
, <10 11 12 13 14 15 16 17 18 19>
Expand All @@ -130,7 +130,7 @@
};
};

default_kscan: default_kscan {
kscan: kscan {
compatible = "zmk,kscan-gpio-matrix";
wakeup-source;

Expand All @@ -154,7 +154,7 @@
;
};

default_transform: default_transform {
six_col_transform: six_col_transform {
compatible = "zmk,matrix-transform";
columns = <12>;
rows = <4>;
Expand All @@ -166,7 +166,7 @@
>;
};

five_column_transform: five_column_transform {
five_col_transform: five_col_transform {
compatible = "zmk,matrix-transform";
columns = <10>;
rows = <4>;
Expand Down
8 changes: 6 additions & 2 deletions boards/shields/acorn/acorn_peripheral_right.overlay
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#include "acorn.dtsi"

&default_transform {
&six_col_transform {
col-offset = <6>;
};

&default_kscan {
&five_col_transform {
col-offset = <5>;
};

&kscan {
col-gpios
= <&pro_micro 18 (GPIO_ACTIVE_HIGH)>
, <&pro_micro 15 (GPIO_ACTIVE_HIGH)>
Expand Down
4 changes: 1 addition & 3 deletions config/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ manifest:
remotes:
- name: zmkfirmware
url-base: https://github.com/zmkfirmware
- name: petejohanson
url-base: https://github.com/petejohanson
projects:
- name: zmk
remote: petejohanson
revision: studio/keymap-subsystem
revision: main
import: app/west.yml
self:
path: config

0 comments on commit fe23431

Please sign in to comment.