C# Class DeviceHive.CommonEquipment.Ds18b20

Dallas Semiconductors DS-18B20 digital thermo sensor
Inheritance: ITempSensor
Afficher le fichier Open project: devicehive/devicehive-.net-mf Class Usage Examples

Méthodes publiques

Méthode Description
Ds18b20 ( Microsoft.SPOT.Hardware.OneWire bus, byte address ) : System

Constructs DS-18B20 object for a given 1-wire bus and a device address

Ds18b20 ( Microsoft.SPOT.Hardware.OneWire bus, int index ) : System

Constructs DS-18B20 object for a given 1-wire bus and a device sequence number.

GetTemperature ( ) : float

Returns current temperature

Méthodes protégées

Méthode Description
GetDevices ( ) : ArrayList

Private Methods

Méthode Description
Select ( ) : bool

Select command

Method Details

Ds18b20() public méthode

Constructs DS-18B20 object for a given 1-wire bus and a device address
public Ds18b20 ( Microsoft.SPOT.Hardware.OneWire bus, byte address ) : System
bus Microsoft.SPOT.Hardware.OneWire 1-wire bus to whish the sensor is attached
address byte device address
Résultat System

Ds18b20() public méthode

Constructs DS-18B20 object for a given 1-wire bus and a device sequence number.
public Ds18b20 ( Microsoft.SPOT.Hardware.OneWire bus, int index ) : System
bus Microsoft.SPOT.Hardware.OneWire 1-wire bus to whish the sensor is attached
index int sequence index of a bus element
Résultat System

GetDevices() protected méthode

protected GetDevices ( ) : ArrayList
Résultat System.Collections.ArrayList

GetTemperature() public méthode

Returns current temperature
public GetTemperature ( ) : float
Résultat float