Method | Description | |
---|---|---|
Dispose ( ) : void |
Releases all resource used by the CyrusBuilt.MonoPi.Components.Sensors.SensorComponent object. Call CyrusBuilt.MonoPi.Components.Sensors.SensorComponent.Dispose when you are finished using the CyrusBuilt.MonoPi.Components.Sensors.SensorComponent. The CyrusBuilt.MonoPi.Components.Sensors.SensorComponent.Dispose method leaves the CyrusBuilt.MonoPi.Components.Sensors.SensorComponent in an unusable state. After calling CyrusBuilt.MonoPi.Components.Sensors.SensorComponent.Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Sensors.SensorComponent so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Sensors.SensorComponent was occupying. |
|
InterruptPoll ( ) : void |
Interrupts the poll cycle.
|
|
Poll ( ) : void |
Polls the input pin status.
|
|
SensorComponent ( ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Sensors.SensorComponent class. This is the default constructor.
|
|
SensorComponent ( IGpio pin ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Sensors.SensorComponent class with the CyrusBuilt.MonoPi.IO.GpioMem I/O pin to use.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releaseses all resources used this object.
|
Method | Description | |
---|---|---|
BackgroundExecutePoll ( ) : void |
Executes the poll cycle on a background thread.
|
|
ExecutePoll ( ) : void |
Executes the poll cycle. Does not return until CyrusBuilt.MonoPi.Components.Sensors.SensorComponent.InterruptPoll is called.
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | /// Set true if disposing managed resources in addition to unmanaged. /// |
return | void |
public SensorComponent ( IGpio pin ) : System | ||
pin | IGpio |
/// The |
return | System |