TwoWayMotorisedBallValve library

Hi there,

I have this motorized ball valve from the link below, and I want to put a PID controller to control how much it opens or closes. I came across this library called TwoWayMotorisedBallValve (see links), which I think could be useful for my project, however, my valve is 2 wires only (functions by reversing polarity), and taking a look at the library, I noticed that it asks for 2 additional wires to indicate if the valve is fully open and fully closed, and another to set the motor speed. My question is, is there any way I can use this library with the valve I have, if not, any ideas on how I could do this?