C# 클래스 CyrusBuilt.MonoPi.Sensors.DS1620

This is a simple driver class for the Dallas Semiconductor DS1620 digital thermometer IC.
상속: IDS1620
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi 1 사용 예제들

공개 메소드들

메소드 설명
DS1620 ( IGpio clock, IGpio data, IGpio reset ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Sensors.DS1620 class with the clock, data, and reset GPIO pins.

Dispose ( ) : void

Releases all resource used by the CyrusBuilt.MonoPi.Sensors.DS1620 object.

Call Dispose when you are finished using the CyrusBuilt.MonoPi.Sensors.DS1620. The Dispose method leaves the CyrusBuilt.MonoPi.Sensors.DS1620 in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Sensors.DS1620 so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Sensors.DS1620 was occupying.

GetTemperature ( ) : Double

Sends the commands to get the temperature from the sensor.

비공개 메소드들

메소드 설명
ReadData ( ) : Int32

Reads 8-bit data from the DS1620.

SendCommand ( Int32 command ) : void

Sends an 8-bit command to the DS1620.

메소드 상세

DS1620() 공개 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Sensors.DS1620 class with the clock, data, and reset GPIO pins.
public DS1620 ( IGpio clock, IGpio data, IGpio reset ) : System
clock IGpio /// The clock pin. ///
data IGpio /// The data pin. ///
reset IGpio /// The reset pin. ///
리턴 System

Dispose() 공개 메소드

Releases all resource used by the CyrusBuilt.MonoPi.Sensors.DS1620 object.
Call Dispose when you are finished using the CyrusBuilt.MonoPi.Sensors.DS1620. The Dispose method leaves the CyrusBuilt.MonoPi.Sensors.DS1620 in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Sensors.DS1620 so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Sensors.DS1620 was occupying.
public Dispose ( ) : void
리턴 void

GetTemperature() 공개 메소드

Sends the commands to get the temperature from the sensor.
/// This instance has been disposed and is no longer usable. ///
public GetTemperature ( ) : Double
리턴 Double