Use pin numbers for rotary encoder