Property | Type | Description | |
---|---|---|---|
PIN_MAP | String>.Dictionary | ||
REVERSE_PIN_MAP | IRaspiGpio>.Dictionary |
Method | Description | |
---|---|---|
Dispose ( ) : void |
Releases all resource used by the CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterProvider object. Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterProvider. The Dispose method leaves the CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterProvider in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterProvider so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterProvider was occupying. |
|
GetServoDriver ( IPin servoPin ) : IServoDriver |
Gets a driver for the requested pin.
|
|
UpdateServo ( String pinName, |
Updates the servo by writing the specified value to the specified pin.
|
Method | Description | |
---|---|---|
EnsureWriterIsCreated ( ) : void |
Ensures the writer is created.
|
|
OnUnrecognizedPinFound ( |
Raises the unrecognized pin found event.
|
Method | Description | |
---|---|---|
DefinePin ( IRaspiGpio pin, String name ) : void |
Helper method for adding pins to the pin maps.
|
|
GetServoPinsFromConfig ( ) : List |
Gets a list of servo pins from the config and validates them against the pin map.
|
|
RPIServoBlasterProvider ( ) : System |
Initializes the CyrusBuilt.MonoPi.Components.Servos.RPIServoBlasterProvider class. This is a static initializer to populate the pin maps (which are also static). This initializer will only be called *ONCE* before any static members are referenced and will not be called again during the lifetime of the application domain. As such, it is NOT advisable to dispose of the pin maps (clear the dictionaries and/or set null) unless you know what you are doing as they are only initialized once.
|
public GetServoDriver ( IPin servoPin ) : IServoDriver | ||
servoPin | IPin | /// The pin the driver is needed for. /// |
return | IServoDriver |
protected OnUnrecognizedPinFound ( |
||
e | /// The event arguments. /// | |
return | void |
public UpdateServo ( String pinName, |
||
pinName | String | /// The name of the pin to write to. /// |
value | /// The value to write to the pin. /// | |
return | void |