Skip to content

Commit

Permalink
compile
Browse files Browse the repository at this point in the history
  • Loading branch information
sashalex007 committed Apr 19, 2024
1 parent bcf2224 commit 4a07fd8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 5 additions & 0 deletions config/boards/shields/ergoalex/ergoalex.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
RC(3, 3) RC(3, 4) RC(3, 5) RC(3, 6)
>;
};

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
diode-direction = "col2row";
};
};

2 changes: 0 additions & 2 deletions config/boards/shields/ergoalex/ergoalex_left.overlay
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#include "ergoalex.dtsi"

&kscan0 {
compatible = "zmk,kscan-gpio-matrix";
diode-direction = "col2row";
row-gpios = <&gpio0 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&gpio0 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&gpio1 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
Expand Down
10 changes: 4 additions & 6 deletions config/boards/shields/ergoalex/ergoalex_right.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@
};

&kscan0 {
compatible = "zmk,kscan-gpio-matrix";
diode-direction = "col2row";
row-gpios = <&gpio1 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
row-gpios = <&gpio1 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&gpio0 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&gpio0 29 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&gpio0 29 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&gpio0 17 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;

col-gpios = <&gpio1 13 (GPIO_ACTIVE_HIGH)>,
<&gpio1 11 (GPIO_ACTIVE_HIGH)>,
<&gpio0 9 (GPIO_ACTIVE_HIGH)>,
<&gpio0 10 (GPIO_ACTIVE_HIGH)>,
<&gpio0 9 (GPIO_ACTIVE_HIGH)>,
<&gpio0 10 (GPIO_ACTIVE_HIGH)>,
<&gpio0 31 (GPIO_ACTIVE_HIGH)>;
};

Expand Down

0 comments on commit 4a07fd8

Please sign in to comment.