summaryrefslogtreecommitdiff
path: root/app/boards
diff options
context:
space:
mode:
authorCrossR <r.cross@lancaster.ac.uk>2020-08-16 19:15:47 +0100
committerCrossR <r.cross@lancaster.ac.uk>2020-08-16 19:15:47 +0100
commiteff6934066e0d898c6dcf3e450d6381073d2bdef (patch)
tree90523680143bc7827768dd23a7061a58049df1d8 /app/boards
parent892394d9e6b795f3f7c60e5e4d433760b5fc64ed (diff)
Update pins.
Diffstat (limited to 'app/boards')
-rw-r--r--app/boards/shields/sofle/sofle.dtsi15
1 files changed, 8 insertions, 7 deletions
diff --git a/app/boards/shields/sofle/sofle.dtsi b/app/boards/shields/sofle/sofle.dtsi
index cfd7a95..4c220a2 100644
--- a/app/boards/shields/sofle/sofle.dtsi
+++ b/app/boards/shields/sofle/sofle.dtsi
@@ -44,22 +44,23 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(3,7)
;
};
- // TODO: Check these pins!
+ // TODO: Check these pins and resolution!
+
left_encoder: encoder_left {
compatible = "alps,ec11";
label = "LEFT_ENCODER";
- a-gpios = <&pro_micro_d 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
- b-gpios = <&pro_micro_d 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
- resolution = <4>;
+ a-gpios = <&pro_micro_a 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
+ b-gpios = <&pro_micro_a 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
+ resolution = <2>;
status = "disabled";
};
right_encoder: encoder_right {
compatible = "alps,ec11";
label = "RIGHT_ENCODER";
- a-gpios = <&pro_micro_d 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
- b-gpios = <&pro_micro_d 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
- resolution = <4>;
+ a-gpios = <&pro_micro_a 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
+ b-gpios = <&pro_micro_a 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
+ resolution = <2>;
status = "disabled";
};