Arduino library for rotary encoders using interrupts