C# 클래스 CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterDriver

Represents a servo driver for servos attached to the Raspberry Pi and driven via ServoBlaster.
상속: IServoDriver
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterDriver. The Dispose method leaves the CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterDriver in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterDriver so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterDriver was occupying.

RPIServoBlasterDriver ( IRaspiGpio pin, Int32 index, String pinName, RPIServoBlasterProvider provider ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterDriver class with the servo pin, the index of the pin in the servo provider's pin map, The name of the pin, and the servo provider.

메소드 상세

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterDriver. The Dispose method leaves the CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterDriver in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterDriver so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterDriver was occupying.
public Dispose ( ) : void
리턴 void

RPIServoBlasterDriver() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterDriver class with the servo pin, the index of the pin in the servo provider's pin map, The name of the pin, and the servo provider.
/// cannot be null - or - /// cannot be null or empty - or - /// cannot be null. ///
public RPIServoBlasterDriver ( IRaspiGpio pin, Int32 index, String pinName, RPIServoBlasterProvider provider ) : System
pin IRaspiGpio /// The pin the servo is attached to. ///
index System.Int32 /// The index of the pin in the servo provider's pin map. ///
pinName String /// The name of the pin. ///
provider RPIServoBlasterProvider /// The servo provider. ///
리턴 System