Skip to content

Commit

Permalink
Update shiva.overlay: WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
1000eyed authored Sep 13, 2024
1 parent bf82545 commit 3af707e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions config/boards/shields/shiva/shiva.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,25 @@
RC(6,0) RC(6,1) RC(7,2) RC(7,3) RC(7,4) RC(6,5)
>;
};

encoder_main: encoder_left {
compatible = "alps,ec11";
label = "LEFT_ENCODER";
a-gpios = <&gpio1 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
b-gpios = <&gpio1 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
steps = <15>;
status = "disabled";
};

sensors {
compatible = "zmk,keymap-sensors";
sensors = <&encoder_main>;
triggers-per-rotation = <15>;
};
};

&encoder_main {
status = "okay";
};

/ {
Expand Down

0 comments on commit 3af707e

Please sign in to comment.