Rotary encoder mostly works, needs to be debounced