Diff. B/w PWM and DIR of motor shield board

PWM sets the speed. The direction pin sets the polarity of the motor output and is usually connected to a digital output.