Skip to content

Commit

Permalink
hana: kscan refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
numToStr committed Jun 10, 2024
1 parent 4d3704b commit 13855cc
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 22 deletions.
14 changes: 12 additions & 2 deletions boards/shields/hana/hana.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,18 @@
, <&xiao_d 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;

// NOTE: columns are different for both halves
col-gpios;
// NOTE: Below are LHS columns, RHS columns are different
col-gpios
= <&shift_reg 6 (GPIO_ACTIVE_HIGH)>
, <&shift_reg 5 (GPIO_ACTIVE_HIGH)>
, <&shift_reg 4 (GPIO_ACTIVE_HIGH)>
, <&shift_reg 3 (GPIO_ACTIVE_HIGH)>
, <&shift_reg 2 (GPIO_ACTIVE_HIGH)>
, <&shift_reg 0 (GPIO_ACTIVE_HIGH)>
, <&shift_reg 7 (GPIO_ACTIVE_HIGH)>
, <&shift_reg 1 (GPIO_ACTIVE_HIGH)>
;

};

default_transform: default_transform {
Expand Down
2 changes: 2 additions & 0 deletions boards/shields/hana/hana_central_dongle.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
};
};

/delete-node/ &kscan0;

/ {
chosen {
zmk,kscan = &mock_kscan;
Expand Down
6 changes: 5 additions & 1 deletion boards/shields/hana/hana_central_left.overlay
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
#include "hana_left.dtsi"
#include "hana.dtsi"

&left_encoder {
status = "okay";
};
18 changes: 0 additions & 18 deletions boards/shields/hana/hana_left.dtsi

This file was deleted.

6 changes: 5 additions & 1 deletion boards/shields/hana/hana_peripheral_left.overlay
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
#include "hana_left.dtsi"
#include "hana.dtsi"

&left_encoder {
status = "okay";
};

0 comments on commit 13855cc

Please sign in to comment.