Arduino Rotary encoder with attachInterrupt