C# Class CyrusBuilt.MonoPi.Components.Servos.PCA9685GpioServoDriver

Represents a servo driver for servos attached to a PCA9685 servo controller.
Inheritance: IServoDriver
Afficher le fichier Open project: cyrusbuilt/MonoPi Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
UpdateResolution ( ) : void

Updates the resolution.

Method Details

Dispose() public méthode

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
Résultat void

PCA9685GpioServoDriver() public méthode

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. ///
Résultat System

UpdateResolution() protected méthode

Updates the resolution.
protected UpdateResolution ( ) : void
Résultat void