switch on and preset encoder input pins