Library for Rotary Encoder
This is an adaptation of Ben Buxton's excellent rotary library and implements additional features for encoder rotation speed.