Compatible with different, open-collector and push-pull encoders