C# 클래스 CyrusBuilt.MonoPi.Components.Motors.StepperMotorBase

A base class for stepper motor components.
상속: MotorBase, IStepperMotor
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi

공개 메소드들

메소드 설명
Rotate ( Double revolutions ) : void

Rotate the specified revolutions.

SetStepInterval ( Int32 millis ) : void

Sets the step interval.

SetStepInterval ( Int32 millis, Int32 nanoseconds ) : void

Sets the step interval.

Step ( Int32 steps ) : void

Step the motor the specified steps.

보호된 메소드들

메소드 설명
OnMotorRotationStarted ( MotorRotateEventArgs e ) : void

Raises the motor rotation started event.

OnMotorRotationStopped ( EventArgs e ) : void

Raises the motor rotation stopped event.

StepperMotorBase ( ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Motors.StepperMotorBase class. This is the default constructor.

메소드 상세

OnMotorRotationStarted() 보호된 메소드

Raises the motor rotation started event.
protected OnMotorRotationStarted ( MotorRotateEventArgs e ) : void
e MotorRotateEventArgs /// The event arguments. ///
리턴 void

OnMotorRotationStopped() 보호된 메소드

Raises the motor rotation stopped event.
protected OnMotorRotationStopped ( EventArgs e ) : void
e System.EventArgs /// The event arguments. ///
리턴 void

Rotate() 공개 메소드

Rotate the specified revolutions.
public Rotate ( Double revolutions ) : void
revolutions Double /// The number of revolutions to rotate. ///
리턴 void

SetStepInterval() 공개 메소드

Sets the step interval.
public SetStepInterval ( Int32 millis ) : void
millis System.Int32 /// The milliseconds between steps. ///
리턴 void

SetStepInterval() 공개 메소드

Sets the step interval.
public SetStepInterval ( Int32 millis, Int32 nanoseconds ) : void
millis System.Int32 /// The milliseconds between steps. ///
nanoseconds System.Int32 /// The nanoseconds between steps. ///
리턴 void

Step() 공개 추상적인 메소드

Step the motor the specified steps.
public abstract Step ( Int32 steps ) : void
steps System.Int32 /// The number of steps to rotate. ///
리턴 void

StepperMotorBase() 보호된 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Motors.StepperMotorBase class. This is the default constructor.
protected StepperMotorBase ( ) : System
리턴 System