Skip to content

Commit

Permalink
refactor moudle
Browse files Browse the repository at this point in the history
  • Loading branch information
tokyo2006 committed Dec 14, 2024
1 parent 4583962 commit 0d65a60
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
9 changes: 0 additions & 9 deletions config/boards/shields/oddball/oddball.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,7 @@
};

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
label = "KSCAN";

diode-direction = "col2row";
row-gpios
= <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&pro_micro 18 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&pro_micro 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&pro_micro 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
};
};

Expand Down
7 changes: 4 additions & 3 deletions config/boards/shields/oddball/oddball_central_dongle.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: MIT
*/
#include "oddball.dtsi"
#include "oddball_trackball.dtsi"
#include "split_input_common.dtsi"

/ {
chosen {
Expand Down Expand Up @@ -57,5 +57,6 @@
};
};



&trackball_listener {
status = "okay";
};
7 changes: 7 additions & 0 deletions config/boards/shields/oddball/oddball_peripheral_left.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
#include "oddball.dtsi"

&kscan0 {
compatible = "zmk,kscan-gpio-matrix";
row-gpios
= <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&pro_micro 18 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&pro_micro 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&pro_micro 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
col-gpios
= <&pro_micro 19 GPIO_ACTIVE_HIGH>
, <&pro_micro 20 GPIO_ACTIVE_HIGH>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
};

&kscan0 {
compatible = "zmk,kscan-gpio-matrix";
row-gpios
= <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&pro_micro 18 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&pro_micro 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&pro_micro 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
col-gpios
= <&pro_micro 8 GPIO_ACTIVE_HIGH>
, <&pro_micro 7 GPIO_ACTIVE_HIGH>
Expand Down

0 comments on commit 0d65a60

Please sign in to comment.