Rotary encoder using interrupts and Rotary library by Kimosubby

Buxtronix code which does not suffer from rotary coder skip of stages
This code uses the Library 'Rotary.h' created by Buxtronix which stops button bounce and encoder skipping counts either up or down the scale. For example 0, 2, 4, 3, 1, -1, -3 when skipping. Speed of rotation in either direction appears not to suffer skipping.

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:936769" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>