brianlow / Rotary

Rotary encoder library for Arduino
233 stars 73 forks source link

Get when finishes full step #20

Open DiogoOliveiraDev opened 2 years ago

DiogoOliveiraDev commented 2 years ago

Hi! It's possible to get when step finishes? Thx

brianlow commented 2 years ago

The library doesn't support that right now (PRs welcome).

You could implement this by recording how many steps occur in the same direction. Reset the count if the direction changes. Full step when count > number of steps for a full rotation