Add rotary encoder irq handler