Method | Description | |
---|---|---|
Close ( ) : void |
Closes the dry contacts on the relay.
|
|
Dispose ( ) : void |
Releases all resource used by the CyrusBuilt.MonoPi.Components.Relays.RelayBase object. Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.Relays.RelayBase. The Dispose method leaves the CyrusBuilt.MonoPi.Components.Relays.RelayBase in an unusable state. After calling CyrusBuilt.MonoPi.Components.Relays.RelayBase.Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Relays.RelayBase so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Relays.RelayBase was occupying. |
|
HasProperty ( String key ) : System.Boolean |
Determines whether this instance has property the specified key.
|
|
IsState ( RelayState state ) : System.Boolean |
Determines whether this relay's state matches the specified state.
|
|
Open ( ) : void |
Opens the dry contacts on the relay.
|
|
Pulse ( ) : void |
Pulses the relay on and off.
|
|
Pulse ( |
Pulses the relay on for the specified number of milliseconds, then back off again.
|
|
ToString ( ) : string |
Returns a String that represents the current CyrusBuilt.MonoPi.Components.Relays.RelayBase.
|
|
Toggle ( ) : void |
Toggles the state of the relay (closed, then open).
|
Method | Description | |
---|---|---|
Dispose ( System.Boolean disposing ) : void |
Releaseses all resources used this object.
|
|
OnPulseStart ( |
Raises the pulse start event.
|
|
OnPulseStop ( |
Raises the pulse stop event.
|
|
OnStateChanged ( |
Raises the state changed event.
|
|
RelayBase ( ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Relays.RelayBase class. This is the default constructor.
|
|
RelayBase ( IGpio pin ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Relays.RelayBase class with the pin being used to control the relay.
|
protected Dispose ( System.Boolean disposing ) : void | ||
disposing | System.Boolean | /// Set true if disposing managed resources in addition to unmanaged. /// |
return | void |
public HasProperty ( String key ) : System.Boolean | ||
key | String | /// The key name of the property to check for. /// |
return | System.Boolean |
public IsState ( RelayState state ) : System.Boolean | ||
state | RelayState | /// The state to check for. /// |
return | System.Boolean |
protected OnPulseStart ( |
||
e | /// The event arguments. /// | |
return | void |
protected OnPulseStop ( |
||
e | /// The event arguments. /// | |
return | void |
protected OnStateChanged ( |
||
e | /// The event arguments. /// | |
return | void |
public Pulse ( |
||
millis | /// The number of milliseconds to wait before switching back off. /// | |
return | void |
protected RelayBase ( IGpio pin ) : System | ||
pin | IGpio | /// The output pin being used to control the relay. /// |
return | System |