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

Represents a servo driver for servos attached to the Raspberry Pi and driven via ServoBlaster.
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.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.

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

RPIServoBlasterDriver() public méthode

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