switched pins fo r encoders.