C# Класс CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterDriver

Represents a servo driver for servos attached to the Raspberry Pi and driven via ServoBlaster.
Наследование: IServoDriver
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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