a little library for interfacing with a rotary encoder