Create RotaryEncoder.cpp

Port of AdaEncoder code