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

Represents a servo driver for servos attached to a PCA9685 servo controller.
상속: 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.PCA9685GpioServoDriver. The Dispose method leaves the CyrusBuilt.MonoPi.Components.Servos.PCA9685GpioServoDriver in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Servos.PCA9685GpioServoDriver so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Servos.PCA9685GpioServoDriver was occupying.

PCA9685GpioServoDriver ( PCA9685GpioProvider provider, IPCA9685Pin pin ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Servos.PCA9685GpioServoDriver class with a PCA9685 GPIO provider and pin.

보호된 메소드들

메소드 설명
UpdateResolution ( ) : void

Updates the resolution.

메소드 상세

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.PCA9685GpioServoDriver. The Dispose method leaves the CyrusBuilt.MonoPi.Components.Servos.PCA9685GpioServoDriver in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Servos.PCA9685GpioServoDriver so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Servos.PCA9685GpioServoDriver was occupying.
public Dispose ( ) : void
리턴 void

PCA9685GpioServoDriver() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Servos.PCA9685GpioServoDriver class with a PCA9685 GPIO provider and pin.
/// cannot be null. - or - /// cannot be null. ///
public PCA9685GpioServoDriver ( PCA9685GpioProvider provider, IPCA9685Pin pin ) : System
provider CyrusBuilt.MonoPi.IO.PCA.PCA9685GpioProvider /// The PCA9685 GPIO provider. ///
pin IPCA9685Pin /// The PCA9685 pin (channel) the servo is attached to. ///
리턴 System

UpdateResolution() 보호된 메소드

Updates the resolution.
protected UpdateResolution ( ) : void
리턴 void