Using rotary encoder

You have not answered that question.