Method | Description | |
---|---|---|
Dispose ( ) : void |
Releases all resource used by the CyrusBuilt.MonoPi.Components.Temperature.TemperatureSensorBase object. Call CyrusBuilt.MonoPi.Components.Temperature.TemperatureSensorBase.Dispose when you are finished using the CyrusBuilt.MonoPi.Components.Temperature.TemperatureSensorBase. The CyrusBuilt.MonoPi.Components.Temperature.TemperatureSensorBase.Dispose method leaves the CyrusBuilt.MonoPi.Components.Temperature.TemperatureSensorBase in an unusable state. After calling CyrusBuilt.MonoPi.Components.Temperature.TemperatureSensorBase.Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Temperature.TemperatureSensorBase so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Temperature.TemperatureSensorBase was occupying. |
|
GetTemperature ( TemperatureScale scale ) : Double |
Gets the temperature value.
|
|
ToString ( ) : string |
Returns a System.String that represents the current CyrusBuilt.MonoPi.Components.Temperature.TemperatureSensorBase.
|
Method | Description | |
---|---|---|
Dispose ( System.Boolean disposing ) : void |
Releaseses all resources used this object.
|
|
OnTemperatureChanged ( |
Raises the temperature changed event.
|
|
TemperatureSensorBase ( ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Temperature.TemperatureSensorBase class. This is the default constructor.
|
|
TemperatureSensorBase ( IGpio clock, IGpio data, IGpio reset ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Temperature.TemperatureSensorBase class with the clock, data, and reset pins needed for the sensor.
|
protected Dispose ( System.Boolean disposing ) : void | ||
disposing | System.Boolean | /// Set true if disposing managed resources in addition to unmanaged. /// |
return | void |
public GetTemperature ( TemperatureScale scale ) : Double | ||
scale | TemperatureScale | /// The scale to get the temperature measurement in. /// |
return | Double |
protected OnTemperatureChanged ( |
||
e | /// The event arguments. /// | |
return | void |
protected TemperatureSensorBase ( IGpio clock, IGpio data, IGpio reset ) : System | ||
clock | IGpio | /// The GPIO pin used for the clock. /// |
data | IGpio | /// The GPIO pin used for data. /// |
reset | IGpio | /// The GPIO pin used to trigger reset. /// |
return | System |