encoder and pinout