add rotary-encoder example