An Arduino library for interfacing with rotary encoders