C# Class OfficeTemperature.Ds18B20

https://www.ghielectronics.com/community/codeshare/entry/438
Inheritance: IDisposable
显示文件 Open project: GolemMediaGmbH/OfficeTemperature Class Usage Examples

Public Methods

Method Description
ConvertAndReadTemperature ( ) : float
Dispose ( ) : void
Ds18B20 ( Cpu pin ) : System
Ds18B20 ( Cpu pin, OneWireBus dev ) : System
Ds18B20 ( Microsoft.SPOT.Hardware.OneWire ow ) : System
Ds18B20 ( Microsoft.SPOT.Hardware.OneWire ow, OneWireBus dev ) : System
ReadTemperature ( ) : float
StartConversion ( ) : void
ToFahrenheit ( float tempC ) : float

Private Methods

Method Description
WriteBytes ( byte data ) : void

Method Details

ConvertAndReadTemperature() public method

public ConvertAndReadTemperature ( ) : float
return float

Dispose() public method

public Dispose ( ) : void
return void

Ds18B20() public method

public Ds18B20 ( Cpu pin ) : System
pin Microsoft.SPOT.Hardware.Cpu
return System

Ds18B20() public method

public Ds18B20 ( Cpu pin, OneWireBus dev ) : System
pin Microsoft.SPOT.Hardware.Cpu
dev OneWireBus
return System

Ds18B20() public method

public Ds18B20 ( Microsoft.SPOT.Hardware.OneWire ow ) : System
ow Microsoft.SPOT.Hardware.OneWire
return System

Ds18B20() public method

public Ds18B20 ( Microsoft.SPOT.Hardware.OneWire ow, OneWireBus dev ) : System
ow Microsoft.SPOT.Hardware.OneWire
dev OneWireBus
return System

ReadTemperature() public method

public ReadTemperature ( ) : float
return float

StartConversion() public method

public StartConversion ( ) : void
return void

ToFahrenheit() public static method

public static ToFahrenheit ( float tempC ) : float
tempC float
return float