boraciner:
I don't understand why you would have a function called setEncoderDirection(). In my mind you GET data from an encoder.
beacuse Although I stopped the motor, the rotary encoder generates signal for a second after set pinout values LOW. The recieved signals must be processed.
So I have to remember the last command before STOP
I'm not convinced.
I could understand saveEncoderDirection(), but not setEncoderDirection()
...R