Skip to content

Commit

Permalink
Fix wrong startup pin pattern after power on
Browse files Browse the repository at this point in the history
  • Loading branch information
luni64 committed Apr 19, 2024
1 parent 033d24f commit 5079fcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Single/Encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ namespace EncoderTool

pinMode(A.pin, inputMode);
pinMode(B.pin, inputMode);
delayMicroseconds(1);

EncoderBase<counter_t>::setCountMode(countMode);
EncoderBase<counter_t>::begin(directRead(A), directRead(B)); // set start state
Expand Down

0 comments on commit 5079fcb

Please sign in to comment.