Skip to content

Commit

Permalink
encoder definition
Browse files Browse the repository at this point in the history
  • Loading branch information
bullwinkle3000 committed Oct 27, 2024
1 parent 4a6b648 commit 6e9492c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 27 deletions.
29 changes: 15 additions & 14 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions config/boards/shields/wyld_dm/wyld_dm.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,19 @@
// status = "disabled";
// };
//
// right_encoder: encoder_right {
// compatible = "alps,ec11";
// label = "RIGHT_ENCODER";
// a-gpios = <&gpio1 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
// b-gpios = <&gpio1 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
// steps = <60>;
// status = "disabled";
// };
right_encoder: encoder_right {
compatible = "alps,ec11";
label = "RIGHT_ENCODER";
a-gpios = <&gpio0 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
b-gpios = <&gpio1 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
steps = <60>;
status = "disabled";
};

// sensors: sensors {
// compatible = "zmk,keymap-sensors";
// sensors = <&right_encoder>, <&left_encoder>;
// triggers-per-rotation = <15>;
// };
sensors: sensors {
compatible = "zmk,keymap-sensors";
sensors = <&right_encoder>;
triggers-per-rotation = <15>;
};
};

0 comments on commit 6e9492c

Please sign in to comment.