C# 클래스 DeviceHive.CommonEquipment.Ds18b20

Dallas Semiconductors DS-18B20 digital thermo sensor
상속: ITempSensor
파일 보기 프로젝트 열기: devicehive/devicehive-.net-mf 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
GetDevices ( ) : ArrayList

비공개 메소드들

메소드 설명
Select ( ) : bool

Select command

메소드 상세

Ds18b20() 공개 메소드

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
리턴 System

Ds18b20() 공개 메소드

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
리턴 System

GetDevices() 보호된 메소드

protected GetDevices ( ) : ArrayList
리턴 System.Collections.ArrayList

GetTemperature() 공개 메소드

Returns current temperature
public GetTemperature ( ) : float
리턴 float