Exmaple of how to use a two pin Rotary Encoder