public StepMotor(IDigitalOutputPort stepPort, IDigitalOutputPort directionPort, int motorSteps, StepResolution stepResolution) { this.direction = false; this.stepResolution = stepResolution; this.motorSteps = motorSteps; this.stepPort = stepPort; this.directionPort = directionPort; }